function zq(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 a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{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 a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function fl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T_={exports:{}},td={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var XD;function Vq(){if(XD)return td;XD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var o in i)o!=="key"&&(a[o]=i[o])}else a=i;return i=a.ref,{$$typeof:e,type:n,key:s,ref:i!==void 0?i:null,props:a}}return td.Fragment=t,td.jsx=r,td.jsxs=r,td}var YD;function Hq(){return YD||(YD=1,T_.exports=Vq()),T_.exports}var P=Hq(),A_={exports:{}},St={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var KD;function $q(){if(KD)return St;KD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function m(R){return R===null||typeof R!="object"?null:(R=p&&R[p]||R["@@iterator"],typeof R=="function"?R:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,x={};function _(R,se,F){this.props=R,this.context=se,this.refs=x,this.updater=F||g}_.prototype.isReactComponent={},_.prototype.setState=function(R,se){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,se,"setState")},_.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function w(){}w.prototype=_.prototype;function T(R,se,F){this.props=R,this.context=se,this.refs=x,this.updater=F||g}var S=T.prototype=new w;S.constructor=T,y(S,_.prototype),S.isPureReactComponent=!0;var O=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function D(R,se,F,V,q,X){return F=X.ref,{$$typeof:e,type:R,key:se,ref:F!==void 0?F:null,props:X}}function M(R,se){return D(R.type,se,void 0,void 0,void 0,R.props)}function N(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function z(R){var se={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(F){return se[F]})}var H=/\/+/g;function B(R,se){return typeof R=="object"&&R!==null&&R.key!=null?z(""+R.key):se.toString(36)}function te(){}function ne(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(te,te):(R.status="pending",R.then(function(se){R.status==="pending"&&(R.status="fulfilled",R.value=se)},function(se){R.status==="pending"&&(R.status="rejected",R.reason=se)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function le(R,se,F,V,q){var X=typeof R;(X==="undefined"||X==="boolean")&&(R=null);var ae=!1;if(R===null)ae=!0;else switch(X){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(R.$$typeof){case e:case t:ae=!0;break;case h:return ae=R._init,le(ae(R._payload),se,F,V,q)}}if(ae)return q=q(R),ae=V===""?"."+B(R,0):V,O(q)?(F="",ae!=null&&(F=ae.replace(H,"$&/")+"/"),le(q,se,F,"",function(ue){return ue})):q!=null&&(N(q)&&(q=M(q,F+(q.key==null||R&&R.key===q.key?"":(""+q.key).replace(H,"$&/")+"/")+ae)),se.push(q)),1;ae=0;var Se=V===""?".":V+":";if(O(R))for(var Te=0;Te<R.length;Te++)V=R[Te],X=Se+B(V,Te),ae+=le(V,se,F,X,q);else if(Te=m(R),typeof Te=="function")for(R=Te.call(R),Te=0;!(V=R.next()).done;)V=V.value,X=Se+B(V,Te++),ae+=le(V,se,F,X,q);else if(X==="object"){if(typeof R.then=="function")return le(ne(R),se,F,V,q);throw se=String(R),Error("Objects are not valid as a React child (found: "+(se==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":se)+"). If you meant to render a collection of children, use an array instead.")}return ae}function Q(R,se,F){if(R==null)return R;var V=[],q=0;return le(R,V,"","",function(X){return se.call(F,X,q++)}),V}function ee(R){if(R._status===-1){var se=R._result;se=se(),se.then(function(F){(R._status===0||R._status===-1)&&(R._status=1,R._result=F)},function(F){(R._status===0||R._status===-1)&&(R._status=2,R._result=F)}),R._status===-1&&(R._status=0,R._result=se)}if(R._status===1)return R._result.default;throw R._result}var ce=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var se=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(se))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function J(){}return St.Children={map:Q,forEach:function(R,se,F){Q(R,function(){se.apply(this,arguments)},F)},count:function(R){var se=0;return Q(R,function(){se++}),se},toArray:function(R){return Q(R,function(se){return se})||[]},only:function(R){if(!N(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},St.Component=_,St.Fragment=r,St.Profiler=i,St.PureComponent=T,St.StrictMode=n,St.Suspense=c,St.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,St.__COMPILER_RUNTIME={__proto__:null,c:function(R){return C.H.useMemoCache(R)}},St.cache=function(R){return function(){return R.apply(null,arguments)}},St.cloneElement=function(R,se,F){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var V=y({},R.props),q=R.key,X=void 0;if(se!=null)for(ae in se.ref!==void 0&&(X=void 0),se.key!==void 0&&(q=""+se.key),se)!k.call(se,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&se.ref===void 0||(V[ae]=se[ae]);var ae=arguments.length-2;if(ae===1)V.children=F;else if(1<ae){for(var Se=Array(ae),Te=0;Te<ae;Te++)Se[Te]=arguments[Te+2];V.children=Se}return D(R.type,q,void 0,void 0,X,V)},St.createContext=function(R){return R={$$typeof:s,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:a,_context:R},R},St.createElement=function(R,se,F){var V,q={},X=null;if(se!=null)for(V in se.key!==void 0&&(X=""+se.key),se)k.call(se,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(q[V]=se[V]);var ae=arguments.length-2;if(ae===1)q.children=F;else if(1<ae){for(var Se=Array(ae),Te=0;Te<ae;Te++)Se[Te]=arguments[Te+2];q.children=Se}if(R&&R.defaultProps)for(V in ae=R.defaultProps,ae)q[V]===void 0&&(q[V]=ae[V]);return D(R,X,void 0,void 0,null,q)},St.createRef=function(){return{current:null}},St.forwardRef=function(R){return{$$typeof:o,render:R}},St.isValidElement=N,St.lazy=function(R){return{$$typeof:h,_payload:{_status:-1,_result:R},_init:ee}},St.memo=function(R,se){return{$$typeof:f,type:R,compare:se===void 0?null:se}},St.startTransition=function(R){var se=C.T,F={};C.T=F;try{var V=R(),q=C.S;q!==null&&q(F,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(J,ce)}catch(X){ce(X)}finally{C.T=se}},St.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},St.use=function(R){return C.H.use(R)},St.useActionState=function(R,se,F){return C.H.useActionState(R,se,F)},St.useCallback=function(R,se){return C.H.useCallback(R,se)},St.useContext=function(R){return C.H.useContext(R)},St.useDebugValue=function(){},St.useDeferredValue=function(R,se){return C.H.useDeferredValue(R,se)},St.useEffect=function(R,se,F){var V=C.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return V.useEffect(R,se)},St.useId=function(){return C.H.useId()},St.useImperativeHandle=function(R,se,F){return C.H.useImperativeHandle(R,se,F)},St.useInsertionEffect=function(R,se){return C.H.useInsertionEffect(R,se)},St.useLayoutEffect=function(R,se){return C.H.useLayoutEffect(R,se)},St.useMemo=function(R,se){return C.H.useMemo(R,se)},St.useOptimistic=function(R,se){return C.H.useOptimistic(R,se)},St.useReducer=function(R,se,F){return C.H.useReducer(R,se,F)},St.useRef=function(R){return C.H.useRef(R)},St.useState=function(R){return C.H.useState(R)},St.useSyncExternalStore=function(R,se,F){return C.H.useSyncExternalStore(R,se,F)},St.useTransition=function(){return C.H.useTransition()},St.version="19.1.0",St}var ZD;function V0(){return ZD||(ZD=1,A_.exports=$q()),A_.exports}var A=V0();const cS=fl(A),Wq=zq({__proto__:null,default:cS},[A]);var C_={exports:{}},rd={},O_={exports:{}},k_={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var QD;function qq(){return QD||(QD=1,function(e){function t(Q,ee){var ce=Q.length;Q.push(ee);e:for(;0<ce;){var J=ce-1>>>1,R=Q[J];if(0<i(R,ee))Q[J]=ee,Q[ce]=R,ce=J;else break e}}function r(Q){return Q.length===0?null:Q[0]}function n(Q){if(Q.length===0)return null;var ee=Q[0],ce=Q.pop();if(ce!==ee){Q[0]=ce;e:for(var J=0,R=Q.length,se=R>>>1;J<se;){var F=2*(J+1)-1,V=Q[F],q=F+1,X=Q[q];if(0>i(V,ce))q<R&&0>i(X,V)?(Q[J]=X,Q[q]=ce,J=q):(Q[J]=V,Q[F]=ce,J=F);else if(q<R&&0>i(X,ce))Q[J]=X,Q[q]=ce,J=q;else break e}}return ee}function i(Q,ee){var ce=Q.sortIndex-ee.sortIndex;return ce!==0?ce:Q.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var c=[],f=[],h=1,p=null,m=3,g=!1,y=!1,x=!1,_=!1,w=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function O(Q){for(var ee=r(f);ee!==null;){if(ee.callback===null)n(f);else if(ee.startTime<=Q)n(f),ee.sortIndex=ee.expirationTime,t(c,ee);else break;ee=r(f)}}function C(Q){if(x=!1,O(Q),!y)if(r(c)!==null)y=!0,k||(k=!0,B());else{var ee=r(f);ee!==null&&le(C,ee.startTime-Q)}}var k=!1,D=-1,M=5,N=-1;function z(){return _?!0:!(e.unstable_now()-N<M)}function H(){if(_=!1,k){var Q=e.unstable_now();N=Q;var ee=!0;try{e:{y=!1,x&&(x=!1,T(D),D=-1),g=!0;var ce=m;try{t:{for(O(Q),p=r(c);p!==null&&!(p.expirationTime>Q&&z());){var J=p.callback;if(typeof J=="function"){p.callback=null,m=p.priorityLevel;var R=J(p.expirationTime<=Q);if(Q=e.unstable_now(),typeof R=="function"){p.callback=R,O(Q),ee=!0;break t}p===r(c)&&n(c),O(Q)}else n(c);p=r(c)}if(p!==null)ee=!0;else{var se=r(f);se!==null&&le(C,se.startTime-Q),ee=!1}}break e}finally{p=null,m=ce,g=!1}ee=void 0}}finally{ee?B():k=!1}}}var B;if(typeof S=="function")B=function(){S(H)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=H,B=function(){ne.postMessage(null)}}else B=function(){w(H,0)};function le(Q,ee){D=w(function(){Q(e.unstable_now())},ee)}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(Q){Q.callback=null},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(Q){switch(m){case 1:case 2:case 3:var ee=3;break;default:ee=m}var ce=m;m=ee;try{return Q()}finally{m=ce}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(Q,ee){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var ce=m;m=Q;try{return ee()}finally{m=ce}},e.unstable_scheduleCallback=function(Q,ee,ce){var J=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?J+ce:J):ce=J,Q){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ce+R,Q={id:h++,callback:ee,priorityLevel:Q,startTime:ce,expirationTime:R,sortIndex:-1},ce>J?(Q.sortIndex=ce,t(f,Q),r(c)===null&&Q===r(f)&&(x?(T(D),D=-1):x=!0,le(C,ce-J))):(Q.sortIndex=R,t(c,Q),y||g||(y=!0,k||(k=!0,B()))),Q},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(Q){var ee=m;return function(){var ce=m;m=ee;try{return Q.apply(this,arguments)}finally{m=ce}}}}(k_)),k_}var JD;function Gq(){return JD||(JD=1,O_.exports=qq()),O_.exports}var D_={exports:{}},fi={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var eP;function Xq(){if(eP)return fi;eP=1;var e=V0();function t(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(c,f,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:c,containerInfo:f,implementation:h}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return fi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,fi.createPortal=function(c,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(c,f,null,h)},fi.flushSync=function(c){var f=s.T,h=n.p;try{if(s.T=null,n.p=2,c)return c()}finally{s.T=f,n.p=h,n.d.f()}},fi.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,n.d.C(c,f))},fi.prefetchDNS=function(c){typeof c=="string"&&n.d.D(c)},fi.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var h=f.as,p=o(h,f.crossOrigin),m=typeof f.integrity=="string"?f.integrity:void 0,g=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?n.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:m,fetchPriority:g}):h==="script"&&n.d.X(c,{crossOrigin:p,integrity:m,fetchPriority:g,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},fi.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=o(f.as,f.crossOrigin);n.d.M(c,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&n.d.M(c)},fi.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,p=o(h,f.crossOrigin);n.d.L(c,h,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},fi.preloadModule=function(c,f){if(typeof c=="string")if(f){var h=o(f.as,f.crossOrigin);n.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else n.d.m(c)},fi.requestFormReset=function(c){n.d.r(c)},fi.unstable_batchedUpdates=function(c,f){return c(f)},fi.useFormState=function(c,f,h){return s.H.useFormState(c,f,h)},fi.useFormStatus=function(){return s.H.useHostTransitionStatus()},fi.version="19.1.0",fi}var tP;function HF(){if(tP)return D_.exports;tP=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),D_.exports=Xq(),D_.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rP;function Yq(){if(rP)return rd;rP=1;var e=Gq(),t=V0(),r=HF();function n(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function a(l){var u=l,d=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(d=u.return),l=u.return;while(l)}return u.tag===3?d:null}function s(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function o(l){if(a(l)!==l)throw Error(n(188))}function c(l){var u=l.alternate;if(!u){if(u=a(l),u===null)throw Error(n(188));return u!==l?null:l}for(var d=l,v=u;;){var b=d.return;if(b===null)break;var E=b.alternate;if(E===null){if(v=b.return,v!==null){d=v;continue}break}if(b.child===E.child){for(E=b.child;E;){if(E===d)return o(b),l;if(E===v)return o(b),u;E=E.sibling}throw Error(n(188))}if(d.return!==v.return)d=b,v=E;else{for(var L=!1,U=b.child;U;){if(U===d){L=!0,d=b,v=E;break}if(U===v){L=!0,v=b,d=E;break}U=U.sibling}if(!L){for(U=E.child;U;){if(U===d){L=!0,d=E,v=b;break}if(U===v){L=!0,v=E,d=b;break}U=U.sibling}if(!L)throw Error(n(189))}}if(d.alternate!==v)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?l:u}function f(l){var u=l.tag;if(u===5||u===26||u===27||u===6)return l;for(l=l.child;l!==null;){if(u=f(l),u!==null)return u;l=l.sibling}return null}var h=Object.assign,p=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),T=Symbol.for("react.consumer"),S=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function B(l){return l===null||typeof l!="object"?null:(l=H&&l[H]||l["@@iterator"],typeof l=="function"?l:null)}var te=Symbol.for("react.client.reference");function ne(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===te?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case y:return"Fragment";case _:return"Profiler";case x:return"StrictMode";case C:return"Suspense";case k:return"SuspenseList";case N:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case g:return"Portal";case S:return(l.displayName||"Context")+".Provider";case T:return(l._context.displayName||"Context")+".Consumer";case O:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case D:return u=l.displayName||null,u!==null?u:ne(l.type)||"Memo";case M:u=l._payload,l=l._init;try{return ne(l(u))}catch{}}return null}var le=Array.isArray,Q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},J=[],R=-1;function se(l){return{current:l}}function F(l){0>R||(l.current=J[R],J[R]=null,R--)}function V(l,u){R++,J[R]=l.current,l.current=u}var q=se(null),X=se(null),ae=se(null),Se=se(null);function Te(l,u){switch(V(ae,u),V(X,l),V(q,null),u.nodeType){case 9:case 11:l=(l=u.documentElement)&&(l=l.namespaceURI)?wD(l):0;break;default:if(l=u.tagName,u=u.namespaceURI)u=wD(u),l=SD(u,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}F(q),V(q,l)}function ue(){F(q),F(X),F(ae)}function xe(l){l.memoizedState!==null&&V(Se,l);var u=q.current,d=SD(u,l.type);u!==d&&(V(X,l),V(q,d))}function Ne(l){X.current===l&&(F(q),F(X)),Se.current===l&&(F(Se),Kh._currentValue=ce)}var j=Object.prototype.hasOwnProperty,ze=e.unstable_scheduleCallback,Le=e.unstable_cancelCallback,He=e.unstable_shouldYield,Xe=e.unstable_requestPaint,ie=e.unstable_now,yt=e.unstable_getCurrentPriorityLevel,Yt=e.unstable_ImmediatePriority,Sr=e.unstable_UserBlockingPriority,Tt=e.unstable_NormalPriority,Nn=e.unstable_LowPriority,Dr=e.unstable_IdlePriority,vr=e.log,It=e.unstable_setDisableYieldValue,xr=null,ge=null;function Ie(l){if(typeof vr=="function"&&It(l),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(xr,l)}catch{}}var Re=Math.clz32?Math.clz32:Ge,je=Math.log,Ye=Math.LN2;function Ge(l){return l>>>=0,l===0?32:31-(je(l)/Ye|0)|0}var at=256,vt=4194304;function nr(l){var u=l&42;if(u!==0)return u;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function cn(l,u,d){var v=l.pendingLanes;if(v===0)return 0;var b=0,E=l.suspendedLanes,L=l.pingedLanes;l=l.warmLanes;var U=v&134217727;return U!==0?(v=U&~E,v!==0?b=nr(v):(L&=U,L!==0?b=nr(L):d||(d=U&~l,d!==0&&(b=nr(d))))):(U=v&~E,U!==0?b=nr(U):L!==0?b=nr(L):d||(d=v&~l,d!==0&&(b=nr(d)))),b===0?0:u!==0&&u!==b&&(u&E)===0&&(E=b&-b,d=u&-u,E>=d||E===32&&(d&4194048)!==0)?u:b}function un(l,u){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&u)===0}function Xi(l,u){switch(l){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xt(){var l=at;return at<<=1,(at&4194048)===0&&(at=256),l}function Mi(){var l=vt;return vt<<=1,(vt&62914560)===0&&(vt=4194304),l}function wn(l){for(var u=[],d=0;31>d;d++)u.push(l);return u}function Ur(l,u){l.pendingLanes|=u,u!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Zr(l,u,d,v,b,E){var L=l.pendingLanes;l.pendingLanes=d,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=d,l.entangledLanes&=d,l.errorRecoveryDisabledLanes&=d,l.shellSuspendCounter=0;var U=l.entanglements,re=l.expirationTimes,ye=l.hiddenUpdates;for(d=L&~d;0<d;){var Oe=31-Re(d),Pe=1<<Oe;U[Oe]=0,re[Oe]=-1;var be=ye[Oe];if(be!==null)for(ye[Oe]=null,Oe=0;Oe<be.length;Oe++){var we=be[Oe];we!==null&&(we.lane&=-536870913)}d&=~Pe}v!==0&&Yi(l,v,0),E!==0&&b===0&&l.tag!==0&&(l.suspendedLanes|=E&~(L&~u))}function Yi(l,u,d){l.pendingLanes|=u,l.suspendedLanes&=~u;var v=31-Re(u);l.entangledLanes|=u,l.entanglements[v]=l.entanglements[v]|1073741824|d&4194090}function oi(l,u){var d=l.entangledLanes|=u;for(l=l.entanglements;d;){var v=31-Re(d),b=1<<v;b&u|l[v]&u&&(l[v]|=u),d&=~b}}function Fn(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Ri(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function gt(){var l=ee.p;return l!==0?l:(l=window.event,l===void 0?32:VD(l.type))}function st(l,u){var d=ee.p;try{return ee.p=l,u()}finally{ee.p=d}}var _t=Math.random().toString(36).slice(2),Ue="__reactFiber$"+_t,et="__reactProps$"+_t,tt="__reactContainer$"+_t,ft="__reactEvents$"+_t,zr="__reactListeners$"+_t,I="__reactHandles$"+_t,K="__reactResources$"+_t,W="__reactMarker$"+_t;function G(l){delete l[Ue],delete l[et],delete l[ft],delete l[zr],delete l[I]}function Y(l){var u=l[Ue];if(u)return u;for(var d=l.parentNode;d;){if(u=d[tt]||d[Ue]){if(d=u.alternate,u.child!==null||d!==null&&d.child!==null)for(l=CD(l);l!==null;){if(d=l[Ue])return d;l=CD(l)}return u}l=d,d=l.parentNode}return null}function Z(l){if(l=l[Ue]||l[tt]){var u=l.tag;if(u===5||u===6||u===13||u===26||u===27||u===3)return l}return null}function de(l){var u=l.tag;if(u===5||u===26||u===27||u===6)return l.stateNode;throw Error(n(33))}function _e(l){var u=l[K];return u||(u=l[K]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function fe(l){l[W]=!0}var ve=new Set,pe={};function ke(l,u){Fe(l,u),Fe(l+"Capture",u)}function Fe(l,u){for(pe[l]=u,l=0;l<u.length;l++)ve.add(u[l])}var qe=RegExp("^[: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]*$"),Be={},Ve={};function Ze(l){return j.call(Ve,l)?!0:j.call(Be,l)?!1:qe.test(l)?Ve[l]=!0:(Be[l]=!0,!1)}function At(l,u,d){if(Ze(u))if(d===null)l.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":l.removeAttribute(u);return;case"boolean":var v=u.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){l.removeAttribute(u);return}}l.setAttribute(u,""+d)}}function Vt(l,u,d){if(d===null)l.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(u);return}l.setAttribute(u,""+d)}}function Kt(l,u,d,v){if(v===null)l.removeAttribute(d);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(d);return}l.setAttributeNS(u,d,""+v)}}var Ni,Sn;function Ln(l){if(Ni===void 0)try{throw Error()}catch(d){var u=d.stack.trim().match(/\n( *(at )?)/);Ni=u&&u[1]||"",Sn=-1<d.stack.indexOf(`
    at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ni+l+Sn}var li=!1;function ci(l,u){if(!l||li)return"";li=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(u){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(we){var be=we}Reflect.construct(l,[],Pe)}else{try{Pe.call()}catch(we){be=we}l.call(Pe.prototype)}}else{try{throw Error()}catch(we){be=we}(Pe=l())&&typeof Pe.catch=="function"&&Pe.catch(function(){})}}catch(we){if(we&&be&&typeof we.stack=="string")return[we.stack,be.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=v.DetermineComponentFrameRoot(),L=E[0],U=E[1];if(L&&U){var re=L.split(`
`),ye=U.split(`
`);for(b=v=0;v<re.length&&!re[v].includes("DetermineComponentFrameRoot");)v++;for(;b<ye.length&&!ye[b].includes("DetermineComponentFrameRoot");)b++;if(v===re.length||b===ye.length)for(v=re.length-1,b=ye.length-1;1<=v&&0<=b&&re[v]!==ye[b];)b--;for(;1<=v&&0<=b;v--,b--)if(re[v]!==ye[b]){if(v!==1||b!==1)do if(v--,b--,0>b||re[v]!==ye[b]){var Oe=`
`+re[v].replace(" at new "," at ");return l.displayName&&Oe.includes("<anonymous>")&&(Oe=Oe.replace("<anonymous>",l.displayName)),Oe}while(1<=v&&0<=b);break}}}finally{li=!1,Error.prepareStackTrace=d}return(d=l?l.displayName||l.name:"")?Ln(d):""}function Ms(l){switch(l.tag){case 26:case 27:case 5:return Ln(l.type);case 16:return Ln("Lazy");case 13:return Ln("Suspense");case 19:return Ln("SuspenseList");case 0:case 15:return ci(l.type,!1);case 11:return ci(l.type.render,!1);case 1:return ci(l.type,!0);case 31:return Ln("Activity");default:return""}}function gC(l){try{var u="";do u+=Ms(l),l=l.return;while(l);return u}catch(d){return`
Error generating stack: `+d.message+`
`+d.stack}}function Ga(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function vC(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function L$(l){var u=vC(l)?"checked":"value",d=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),v=""+l[u];if(!l.hasOwnProperty(u)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var b=d.get,E=d.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return b.call(this)},set:function(L){v=""+L,E.call(this,L)}}),Object.defineProperty(l,u,{enumerable:d.enumerable}),{getValue:function(){return v},setValue:function(L){v=""+L},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function Mm(l){l._valueTracker||(l._valueTracker=L$(l))}function xC(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var d=u.getValue(),v="";return l&&(v=vC(l)?l.checked?"true":"false":l.value),l=v,l!==d?(u.setValue(l),!0):!1}function Rm(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var I$=/[\n"\\]/g;function Xa(l){return l.replace(I$,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function wy(l,u,d,v,b,E,L,U){l.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?l.type=L:l.removeAttribute("type"),u!=null?L==="number"?(u===0&&l.value===""||l.value!=u)&&(l.value=""+Ga(u)):l.value!==""+Ga(u)&&(l.value=""+Ga(u)):L!=="submit"&&L!=="reset"||l.removeAttribute("value"),u!=null?Sy(l,L,Ga(u)):d!=null?Sy(l,L,Ga(d)):v!=null&&l.removeAttribute("value"),b==null&&E!=null&&(l.defaultChecked=!!E),b!=null&&(l.checked=b&&typeof b!="function"&&typeof b!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?l.name=""+Ga(U):l.removeAttribute("name")}function yC(l,u,d,v,b,E,L,U){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(l.type=E),u!=null||d!=null){if(!(E!=="submit"&&E!=="reset"||u!=null))return;d=d!=null?""+Ga(d):"",u=u!=null?""+Ga(u):d,U||u===l.value||(l.value=u),l.defaultValue=u}v=v??b,v=typeof v!="function"&&typeof v!="symbol"&&!!v,l.checked=U?l.checked:!!v,l.defaultChecked=!!v,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(l.name=L)}function Sy(l,u,d){u==="number"&&Rm(l.ownerDocument)===l||l.defaultValue===""+d||(l.defaultValue=""+d)}function sf(l,u,d,v){if(l=l.options,u){u={};for(var b=0;b<d.length;b++)u["$"+d[b]]=!0;for(d=0;d<l.length;d++)b=u.hasOwnProperty("$"+l[d].value),l[d].selected!==b&&(l[d].selected=b),b&&v&&(l[d].defaultSelected=!0)}else{for(d=""+Ga(d),u=null,b=0;b<l.length;b++){if(l[b].value===d){l[b].selected=!0,v&&(l[b].defaultSelected=!0);return}u!==null||l[b].disabled||(u=l[b])}u!==null&&(u.selected=!0)}}function _C(l,u,d){if(u!=null&&(u=""+Ga(u),u!==l.value&&(l.value=u),d==null)){l.defaultValue!==u&&(l.defaultValue=u);return}l.defaultValue=d!=null?""+Ga(d):""}function bC(l,u,d,v){if(u==null){if(v!=null){if(d!=null)throw Error(n(92));if(le(v)){if(1<v.length)throw Error(n(93));v=v[0]}d=v}d==null&&(d=""),u=d}d=Ga(u),l.defaultValue=d,v=l.textContent,v===d&&v!==""&&v!==null&&(l.value=v)}function of(l,u){if(u){var d=l.firstChild;if(d&&d===l.lastChild&&d.nodeType===3){d.nodeValue=u;return}}l.textContent=u}var B$=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wC(l,u,d){var v=u.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?v?l.setProperty(u,""):u==="float"?l.cssFloat="":l[u]="":v?l.setProperty(u,d):typeof d!="number"||d===0||B$.has(u)?u==="float"?l.cssFloat=d:l[u]=(""+d).trim():l[u]=d+"px"}function SC(l,u,d){if(u!=null&&typeof u!="object")throw Error(n(62));if(l=l.style,d!=null){for(var v in d)!d.hasOwnProperty(v)||u!=null&&u.hasOwnProperty(v)||(v.indexOf("--")===0?l.setProperty(v,""):v==="float"?l.cssFloat="":l[v]="");for(var b in u)v=u[b],u.hasOwnProperty(b)&&d[b]!==v&&wC(l,b,v)}else for(var E in u)u.hasOwnProperty(E)&&wC(l,E,u[E])}function Ey(l){if(l.indexOf("-")===-1)return!1;switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var j$=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),U$=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nm(l){return U$.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var Ty=null;function Ay(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var lf=null,cf=null;function EC(l){var u=Z(l);if(u&&(l=u.stateNode)){var d=l[et]||null;e:switch(l=u.stateNode,u.type){case"input":if(wy(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),u=d.name,d.type==="radio"&&u!=null){for(d=l;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Xa(""+u)+'"][type="radio"]'),u=0;u<d.length;u++){var v=d[u];if(v!==l&&v.form===l.form){var b=v[et]||null;if(!b)throw Error(n(90));wy(v,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(u=0;u<d.length;u++)v=d[u],v.form===l.form&&xC(v)}break e;case"textarea":_C(l,d.value,d.defaultValue);break e;case"select":u=d.value,u!=null&&sf(l,!!d.multiple,u,!1)}}}var Cy=!1;function TC(l,u,d){if(Cy)return l(u,d);Cy=!0;try{var v=l(u);return v}finally{if(Cy=!1,(lf!==null||cf!==null)&&(y1(),lf&&(u=lf,l=cf,cf=lf=null,EC(u),l)))for(u=0;u<l.length;u++)EC(l[u])}}function ch(l,u){var d=l.stateNode;if(d===null)return null;var v=d[et]||null;if(v===null)return null;d=v[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(l=l.type,v=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!v;break e;default:l=!1}if(l)return null;if(d&&typeof d!="function")throw Error(n(231,u,typeof d));return d}var To=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oy=!1;if(To)try{var uh={};Object.defineProperty(uh,"passive",{get:function(){Oy=!0}}),window.addEventListener("test",uh,uh),window.removeEventListener("test",uh,uh)}catch{Oy=!1}var Sl=null,ky=null,Fm=null;function AC(){if(Fm)return Fm;var l,u=ky,d=u.length,v,b="value"in Sl?Sl.value:Sl.textContent,E=b.length;for(l=0;l<d&&u[l]===b[l];l++);var L=d-l;for(v=1;v<=L&&u[d-v]===b[E-v];v++);return Fm=b.slice(l,1<v?1-v:void 0)}function Lm(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function Im(){return!0}function CC(){return!1}function Ki(l){function u(d,v,b,E,L){this._reactName=d,this._targetInst=b,this.type=v,this.nativeEvent=E,this.target=L,this.currentTarget=null;for(var U in l)l.hasOwnProperty(U)&&(d=l[U],this[U]=d?d(E):E[U]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Im:CC,this.isPropagationStopped=CC,this}return h(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Im)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Im)},persist:function(){},isPersistent:Im}),u}var Oc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bm=Ki(Oc),fh=h({},Oc,{view:0,detail:0}),z$=Ki(fh),Dy,Py,hh,jm=h({},fh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ry,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==hh&&(hh&&l.type==="mousemove"?(Dy=l.screenX-hh.screenX,Py=l.screenY-hh.screenY):Py=Dy=0,hh=l),Dy)},movementY:function(l){return"movementY"in l?l.movementY:Py}}),OC=Ki(jm),V$=h({},jm,{dataTransfer:0}),H$=Ki(V$),$$=h({},fh,{relatedTarget:0}),My=Ki($$),W$=h({},Oc,{animationName:0,elapsedTime:0,pseudoElement:0}),q$=Ki(W$),G$=h({},Oc,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),X$=Ki(G$),Y$=h({},Oc,{data:0}),kC=Ki(Y$),K$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z$={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"},Q$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J$(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=Q$[l])?!!u[l]:!1}function Ry(){return J$}var eW=h({},fh,{key:function(l){if(l.key){var u=K$[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=Lm(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Z$[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ry,charCode:function(l){return l.type==="keypress"?Lm(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Lm(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),tW=Ki(eW),rW=h({},jm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),DC=Ki(rW),nW=h({},fh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ry}),iW=Ki(nW),aW=h({},Oc,{propertyName:0,elapsedTime:0,pseudoElement:0}),sW=Ki(aW),oW=h({},jm,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),lW=Ki(oW),cW=h({},Oc,{newState:0,oldState:0}),uW=Ki(cW),fW=[9,13,27,32],Ny=To&&"CompositionEvent"in window,dh=null;To&&"documentMode"in document&&(dh=document.documentMode);var hW=To&&"TextEvent"in window&&!dh,PC=To&&(!Ny||dh&&8<dh&&11>=dh),MC=" ",RC=!1;function NC(l,u){switch(l){case"keyup":return fW.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FC(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var uf=!1;function dW(l,u){switch(l){case"compositionend":return FC(u);case"keypress":return u.which!==32?null:(RC=!0,MC);case"textInput":return l=u.data,l===MC&&RC?null:l;default:return null}}function pW(l,u){if(uf)return l==="compositionend"||!Ny&&NC(l,u)?(l=AC(),Fm=ky=Sl=null,uf=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return PC&&u.locale!=="ko"?null:u.data;default:return null}}var mW={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 LC(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!mW[l.type]:u==="textarea"}function IC(l,u,d,v){lf?cf?cf.push(v):cf=[v]:lf=v,u=T1(u,"onChange"),0<u.length&&(d=new Bm("onChange","change",null,d,v),l.push({event:d,listeners:u}))}var ph=null,mh=null;function gW(l){vD(l,0)}function Um(l){var u=de(l);if(xC(u))return l}function BC(l,u){if(l==="change")return u}var jC=!1;if(To){var Fy;if(To){var Ly="oninput"in document;if(!Ly){var UC=document.createElement("div");UC.setAttribute("oninput","return;"),Ly=typeof UC.oninput=="function"}Fy=Ly}else Fy=!1;jC=Fy&&(!document.documentMode||9<document.documentMode)}function zC(){ph&&(ph.detachEvent("onpropertychange",VC),mh=ph=null)}function VC(l){if(l.propertyName==="value"&&Um(mh)){var u=[];IC(u,mh,l,Ay(l)),TC(gW,u)}}function vW(l,u,d){l==="focusin"?(zC(),ph=u,mh=d,ph.attachEvent("onpropertychange",VC)):l==="focusout"&&zC()}function xW(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Um(mh)}function yW(l,u){if(l==="click")return Um(u)}function _W(l,u){if(l==="input"||l==="change")return Um(u)}function bW(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var ma=typeof Object.is=="function"?Object.is:bW;function gh(l,u){if(ma(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var d=Object.keys(l),v=Object.keys(u);if(d.length!==v.length)return!1;for(v=0;v<d.length;v++){var b=d[v];if(!j.call(u,b)||!ma(l[b],u[b]))return!1}return!0}function HC(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function $C(l,u){var d=HC(l);l=0;for(var v;d;){if(d.nodeType===3){if(v=l+d.textContent.length,l<=u&&v>=u)return{node:d,offset:u-l};l=v}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=HC(d)}}function WC(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?WC(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function qC(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var u=Rm(l.document);u instanceof l.HTMLIFrameElement;){try{var d=typeof u.contentWindow.location.href=="string"}catch{d=!1}if(d)l=u.contentWindow;else break;u=Rm(l.document)}return u}function Iy(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}var wW=To&&"documentMode"in document&&11>=document.documentMode,ff=null,By=null,vh=null,jy=!1;function GC(l,u,d){var v=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;jy||ff==null||ff!==Rm(v)||(v=ff,"selectionStart"in v&&Iy(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),vh&&gh(vh,v)||(vh=v,v=T1(By,"onSelect"),0<v.length&&(u=new Bm("onSelect","select",null,u,d),l.push({event:u,listeners:v}),u.target=ff)))}function kc(l,u){var d={};return d[l.toLowerCase()]=u.toLowerCase(),d["Webkit"+l]="webkit"+u,d["Moz"+l]="moz"+u,d}var hf={animationend:kc("Animation","AnimationEnd"),animationiteration:kc("Animation","AnimationIteration"),animationstart:kc("Animation","AnimationStart"),transitionrun:kc("Transition","TransitionRun"),transitionstart:kc("Transition","TransitionStart"),transitioncancel:kc("Transition","TransitionCancel"),transitionend:kc("Transition","TransitionEnd")},Uy={},XC={};To&&(XC=document.createElement("div").style,"AnimationEvent"in window||(delete hf.animationend.animation,delete hf.animationiteration.animation,delete hf.animationstart.animation),"TransitionEvent"in window||delete hf.transitionend.transition);function Dc(l){if(Uy[l])return Uy[l];if(!hf[l])return l;var u=hf[l],d;for(d in u)if(u.hasOwnProperty(d)&&d in XC)return Uy[l]=u[d];return l}var YC=Dc("animationend"),KC=Dc("animationiteration"),ZC=Dc("animationstart"),SW=Dc("transitionrun"),EW=Dc("transitionstart"),TW=Dc("transitioncancel"),QC=Dc("transitionend"),JC=new Map,zy="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zy.push("scrollEnd");function Rs(l,u){JC.set(l,u),ke(u,[l])}var eO=new WeakMap;function Ya(l,u){if(typeof l=="object"&&l!==null){var d=eO.get(l);return d!==void 0?d:(u={value:l,source:u,stack:gC(u)},eO.set(l,u),u)}return{value:l,source:u,stack:gC(u)}}var Ka=[],df=0,Vy=0;function zm(){for(var l=df,u=Vy=df=0;u<l;){var d=Ka[u];Ka[u++]=null;var v=Ka[u];Ka[u++]=null;var b=Ka[u];Ka[u++]=null;var E=Ka[u];if(Ka[u++]=null,v!==null&&b!==null){var L=v.pending;L===null?b.next=b:(b.next=L.next,L.next=b),v.pending=b}E!==0&&tO(d,b,E)}}function Vm(l,u,d,v){Ka[df++]=l,Ka[df++]=u,Ka[df++]=d,Ka[df++]=v,Vy|=v,l.lanes|=v,l=l.alternate,l!==null&&(l.lanes|=v)}function Hy(l,u,d,v){return Vm(l,u,d,v),Hm(l)}function pf(l,u){return Vm(l,null,null,u),Hm(l)}function tO(l,u,d){l.lanes|=d;var v=l.alternate;v!==null&&(v.lanes|=d);for(var b=!1,E=l.return;E!==null;)E.childLanes|=d,v=E.alternate,v!==null&&(v.childLanes|=d),E.tag===22&&(l=E.stateNode,l===null||l._visibility&1||(b=!0)),l=E,E=E.return;return l.tag===3?(E=l.stateNode,b&&u!==null&&(b=31-Re(d),l=E.hiddenUpdates,v=l[b],v===null?l[b]=[u]:v.push(u),u.lane=d|536870912),E):null}function Hm(l){if(50<Vh)throw Vh=0,Y2=null,Error(n(185));for(var u=l.return;u!==null;)l=u,u=l.return;return l.tag===3?l.stateNode:null}var mf={};function AW(l,u,d,v){this.tag=l,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ga(l,u,d,v){return new AW(l,u,d,v)}function $y(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ao(l,u){var d=l.alternate;return d===null?(d=ga(l.tag,u,l.key,l.mode),d.elementType=l.elementType,d.type=l.type,d.stateNode=l.stateNode,d.alternate=l,l.alternate=d):(d.pendingProps=u,d.type=l.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=l.flags&65011712,d.childLanes=l.childLanes,d.lanes=l.lanes,d.child=l.child,d.memoizedProps=l.memoizedProps,d.memoizedState=l.memoizedState,d.updateQueue=l.updateQueue,u=l.dependencies,d.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},d.sibling=l.sibling,d.index=l.index,d.ref=l.ref,d.refCleanup=l.refCleanup,d}function rO(l,u){l.flags&=65011714;var d=l.alternate;return d===null?(l.childLanes=0,l.lanes=u,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=d.childLanes,l.lanes=d.lanes,l.child=d.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=d.memoizedProps,l.memoizedState=d.memoizedState,l.updateQueue=d.updateQueue,l.type=d.type,u=d.dependencies,l.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),l}function $m(l,u,d,v,b,E){var L=0;if(v=l,typeof l=="function")$y(l)&&(L=1);else if(typeof l=="string")L=Oq(l,d,q.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case N:return l=ga(31,d,u,b),l.elementType=N,l.lanes=E,l;case y:return Pc(d.children,b,E,u);case x:L=8,b|=24;break;case _:return l=ga(12,d,u,b|2),l.elementType=_,l.lanes=E,l;case C:return l=ga(13,d,u,b),l.elementType=C,l.lanes=E,l;case k:return l=ga(19,d,u,b),l.elementType=k,l.lanes=E,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case w:case S:L=10;break e;case T:L=9;break e;case O:L=11;break e;case D:L=14;break e;case M:L=16,v=null;break e}L=29,d=Error(n(130,l===null?"null":typeof l,"")),v=null}return u=ga(L,d,u,b),u.elementType=l,u.type=v,u.lanes=E,u}function Pc(l,u,d,v){return l=ga(7,l,v,u),l.lanes=d,l}function Wy(l,u,d){return l=ga(6,l,null,u),l.lanes=d,l}function qy(l,u,d){return u=ga(4,l.children!==null?l.children:[],l.key,u),u.lanes=d,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}var gf=[],vf=0,Wm=null,qm=0,Za=[],Qa=0,Mc=null,Co=1,Oo="";function Rc(l,u){gf[vf++]=qm,gf[vf++]=Wm,Wm=l,qm=u}function nO(l,u,d){Za[Qa++]=Co,Za[Qa++]=Oo,Za[Qa++]=Mc,Mc=l;var v=Co;l=Oo;var b=32-Re(v)-1;v&=~(1<<b),d+=1;var E=32-Re(u)+b;if(30<E){var L=b-b%5;E=(v&(1<<L)-1).toString(32),v>>=L,b-=L,Co=1<<32-Re(u)+b|d<<b|v,Oo=E+l}else Co=1<<E|d<<b|v,Oo=l}function Gy(l){l.return!==null&&(Rc(l,1),nO(l,1,0))}function Xy(l){for(;l===Wm;)Wm=gf[--vf],gf[vf]=null,qm=gf[--vf],gf[vf]=null;for(;l===Mc;)Mc=Za[--Qa],Za[Qa]=null,Oo=Za[--Qa],Za[Qa]=null,Co=Za[--Qa],Za[Qa]=null}var Fi=null,Vr=null,qt=!1,Nc=null,Ks=!1,Yy=Error(n(519));function Fc(l){var u=Error(n(418,""));throw _h(Ya(u,l)),Yy}function iO(l){var u=l.stateNode,d=l.type,v=l.memoizedProps;switch(u[Ue]=l,u[et]=v,d){case"dialog":Ft("cancel",u),Ft("close",u);break;case"iframe":case"object":case"embed":Ft("load",u);break;case"video":case"audio":for(d=0;d<$h.length;d++)Ft($h[d],u);break;case"source":Ft("error",u);break;case"img":case"image":case"link":Ft("error",u),Ft("load",u);break;case"details":Ft("toggle",u);break;case"input":Ft("invalid",u),yC(u,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),Mm(u);break;case"select":Ft("invalid",u);break;case"textarea":Ft("invalid",u),bC(u,v.value,v.defaultValue,v.children),Mm(u)}d=v.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||u.textContent===""+d||v.suppressHydrationWarning===!0||bD(u.textContent,d)?(v.popover!=null&&(Ft("beforetoggle",u),Ft("toggle",u)),v.onScroll!=null&&Ft("scroll",u),v.onScrollEnd!=null&&Ft("scrollend",u),v.onClick!=null&&(u.onclick=A1),u=!0):u=!1,u||Fc(l)}function aO(l){for(Fi=l.return;Fi;)switch(Fi.tag){case 5:case 13:Ks=!1;return;case 27:case 3:Ks=!0;return;default:Fi=Fi.return}}function xh(l){if(l!==Fi)return!1;if(!qt)return aO(l),qt=!0,!1;var u=l.tag,d;if((d=u!==3&&u!==27)&&((d=u===5)&&(d=l.type,d=!(d!=="form"&&d!=="button")||f_(l.type,l.memoizedProps)),d=!d),d&&Vr&&Fc(l),aO(l),u===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));e:{for(l=l.nextSibling,u=0;l;){if(l.nodeType===8)if(d=l.data,d==="/$"){if(u===0){Vr=Fs(l.nextSibling);break e}u--}else d!=="$"&&d!=="$!"&&d!=="$?"||u++;l=l.nextSibling}Vr=null}}else u===27?(u=Vr,jl(l.type)?(l=m_,m_=null,Vr=l):Vr=u):Vr=Fi?Fs(l.stateNode.nextSibling):null;return!0}function yh(){Vr=Fi=null,qt=!1}function sO(){var l=Nc;return l!==null&&(Ji===null?Ji=l:Ji.push.apply(Ji,l),Nc=null),l}function _h(l){Nc===null?Nc=[l]:Nc.push(l)}var Ky=se(null),Lc=null,ko=null;function El(l,u,d){V(Ky,u._currentValue),u._currentValue=d}function Do(l){l._currentValue=Ky.current,F(Ky)}function Zy(l,u,d){for(;l!==null;){var v=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,v!==null&&(v.childLanes|=u)):v!==null&&(v.childLanes&u)!==u&&(v.childLanes|=u),l===d)break;l=l.return}}function Qy(l,u,d,v){var b=l.child;for(b!==null&&(b.return=l);b!==null;){var E=b.dependencies;if(E!==null){var L=b.child;E=E.firstContext;e:for(;E!==null;){var U=E;E=b;for(var re=0;re<u.length;re++)if(U.context===u[re]){E.lanes|=d,U=E.alternate,U!==null&&(U.lanes|=d),Zy(E.return,d,l),v||(L=null);break e}E=U.next}}else if(b.tag===18){if(L=b.return,L===null)throw Error(n(341));L.lanes|=d,E=L.alternate,E!==null&&(E.lanes|=d),Zy(L,d,l),L=null}else L=b.child;if(L!==null)L.return=b;else for(L=b;L!==null;){if(L===l){L=null;break}if(b=L.sibling,b!==null){b.return=L.return,L=b;break}L=L.return}b=L}}function bh(l,u,d,v){l=null;for(var b=u,E=!1;b!==null;){if(!E){if((b.flags&524288)!==0)E=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var L=b.alternate;if(L===null)throw Error(n(387));if(L=L.memoizedProps,L!==null){var U=b.type;ma(b.pendingProps.value,L.value)||(l!==null?l.push(U):l=[U])}}else if(b===Se.current){if(L=b.alternate,L===null)throw Error(n(387));L.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(l!==null?l.push(Kh):l=[Kh])}b=b.return}l!==null&&Qy(u,l,d,v),u.flags|=262144}function Gm(l){for(l=l.firstContext;l!==null;){if(!ma(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Ic(l){Lc=l,ko=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function ui(l){return oO(Lc,l)}function Xm(l,u){return Lc===null&&Ic(l),oO(l,u)}function oO(l,u){var d=u._currentValue;if(u={context:u,memoizedValue:d,next:null},ko===null){if(l===null)throw Error(n(308));ko=u,l.dependencies={lanes:0,firstContext:u},l.flags|=524288}else ko=ko.next=u;return d}var CW=typeof AbortController<"u"?AbortController:function(){var l=[],u=this.signal={aborted:!1,addEventListener:function(d,v){l.push(v)}};this.abort=function(){u.aborted=!0,l.forEach(function(d){return d()})}},OW=e.unstable_scheduleCallback,kW=e.unstable_NormalPriority,En={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jy(){return{controller:new CW,data:new Map,refCount:0}}function wh(l){l.refCount--,l.refCount===0&&OW(kW,function(){l.controller.abort()})}var Sh=null,e2=0,xf=0,yf=null;function DW(l,u){if(Sh===null){var d=Sh=[];e2=0,xf=r_(),yf={status:"pending",value:void 0,then:function(v){d.push(v)}}}return e2++,u.then(lO,lO),u}function lO(){if(--e2===0&&Sh!==null){yf!==null&&(yf.status="fulfilled");var l=Sh;Sh=null,xf=0,yf=null;for(var u=0;u<l.length;u++)(0,l[u])()}}function PW(l,u){var d=[],v={status:"pending",value:null,reason:null,then:function(b){d.push(b)}};return l.then(function(){v.status="fulfilled",v.value=u;for(var b=0;b<d.length;b++)(0,d[b])(u)},function(b){for(v.status="rejected",v.reason=b,b=0;b<d.length;b++)(0,d[b])(void 0)}),v}var cO=Q.S;Q.S=function(l,u){typeof u=="object"&&u!==null&&typeof u.then=="function"&&DW(l,u),cO!==null&&cO(l,u)};var Bc=se(null);function t2(){var l=Bc.current;return l!==null?l:pr.pooledCache}function Ym(l,u){u===null?V(Bc,Bc.current):V(Bc,u.pool)}function uO(){var l=t2();return l===null?null:{parent:En._currentValue,pool:l}}var Eh=Error(n(460)),fO=Error(n(474)),Km=Error(n(542)),r2={then:function(){}};function hO(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Zm(){}function dO(l,u,d){switch(d=l[d],d===void 0?l.push(u):d!==u&&(u.then(Zm,Zm),u=d),u.status){case"fulfilled":return u.value;case"rejected":throw l=u.reason,mO(l),l;default:if(typeof u.status=="string")u.then(Zm,Zm);else{if(l=pr,l!==null&&100<l.shellSuspendCounter)throw Error(n(482));l=u,l.status="pending",l.then(function(v){if(u.status==="pending"){var b=u;b.status="fulfilled",b.value=v}},function(v){if(u.status==="pending"){var b=u;b.status="rejected",b.reason=v}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw l=u.reason,mO(l),l}throw Th=u,Eh}}var Th=null;function pO(){if(Th===null)throw Error(n(459));var l=Th;return Th=null,l}function mO(l){if(l===Eh||l===Km)throw Error(n(483))}var Tl=!1;function n2(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function i2(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Al(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Cl(l,u,d){var v=l.updateQueue;if(v===null)return null;if(v=v.shared,(Zt&2)!==0){var b=v.pending;return b===null?u.next=u:(u.next=b.next,b.next=u),v.pending=u,u=Hm(l),tO(l,null,d),u}return Vm(l,v,u,d),Hm(l)}function Ah(l,u,d){if(u=u.updateQueue,u!==null&&(u=u.shared,(d&4194048)!==0)){var v=u.lanes;v&=l.pendingLanes,d|=v,u.lanes=d,oi(l,d)}}function a2(l,u){var d=l.updateQueue,v=l.alternate;if(v!==null&&(v=v.updateQueue,d===v)){var b=null,E=null;if(d=d.firstBaseUpdate,d!==null){do{var L={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};E===null?b=E=L:E=E.next=L,d=d.next}while(d!==null);E===null?b=E=u:E=E.next=u}else b=E=u;d={baseState:v.baseState,firstBaseUpdate:b,lastBaseUpdate:E,shared:v.shared,callbacks:v.callbacks},l.updateQueue=d;return}l=d.lastBaseUpdate,l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=u}var s2=!1;function Ch(){if(s2){var l=yf;if(l!==null)throw l}}function Oh(l,u,d,v){s2=!1;var b=l.updateQueue;Tl=!1;var E=b.firstBaseUpdate,L=b.lastBaseUpdate,U=b.shared.pending;if(U!==null){b.shared.pending=null;var re=U,ye=re.next;re.next=null,L===null?E=ye:L.next=ye,L=re;var Oe=l.alternate;Oe!==null&&(Oe=Oe.updateQueue,U=Oe.lastBaseUpdate,U!==L&&(U===null?Oe.firstBaseUpdate=ye:U.next=ye,Oe.lastBaseUpdate=re))}if(E!==null){var Pe=b.baseState;L=0,Oe=ye=re=null,U=E;do{var be=U.lane&-536870913,we=be!==U.lane;if(we?(jt&be)===be:(v&be)===be){be!==0&&be===xf&&(s2=!0),Oe!==null&&(Oe=Oe.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var dt=l,ot=U;be=u;var sr=d;switch(ot.tag){case 1:if(dt=ot.payload,typeof dt=="function"){Pe=dt.call(sr,Pe,be);break e}Pe=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=ot.payload,be=typeof dt=="function"?dt.call(sr,Pe,be):dt,be==null)break e;Pe=h({},Pe,be);break e;case 2:Tl=!0}}be=U.callback,be!==null&&(l.flags|=64,we&&(l.flags|=8192),we=b.callbacks,we===null?b.callbacks=[be]:we.push(be))}else we={lane:be,tag:U.tag,payload:U.payload,callback:U.callback,next:null},Oe===null?(ye=Oe=we,re=Pe):Oe=Oe.next=we,L|=be;if(U=U.next,U===null){if(U=b.shared.pending,U===null)break;we=U,U=we.next,we.next=null,b.lastBaseUpdate=we,b.shared.pending=null}}while(!0);Oe===null&&(re=Pe),b.baseState=re,b.firstBaseUpdate=ye,b.lastBaseUpdate=Oe,E===null&&(b.shared.lanes=0),Fl|=L,l.lanes=L,l.memoizedState=Pe}}function gO(l,u){if(typeof l!="function")throw Error(n(191,l));l.call(u)}function vO(l,u){var d=l.callbacks;if(d!==null)for(l.callbacks=null,l=0;l<d.length;l++)gO(d[l],u)}var _f=se(null),Qm=se(0);function xO(l,u){l=Io,V(Qm,l),V(_f,u),Io=l|u.baseLanes}function o2(){V(Qm,Io),V(_f,_f.current)}function l2(){Io=Qm.current,F(_f),F(Qm)}var Ol=0,Ct=null,ir=null,fn=null,Jm=!1,bf=!1,jc=!1,e1=0,kh=0,wf=null,MW=0;function Qr(){throw Error(n(321))}function c2(l,u){if(u===null)return!1;for(var d=0;d<u.length&&d<l.length;d++)if(!ma(l[d],u[d]))return!1;return!0}function u2(l,u,d,v,b,E){return Ol=E,Ct=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,Q.H=l===null||l.memoizedState===null?tk:rk,jc=!1,E=d(v,b),jc=!1,bf&&(E=_O(u,d,v,b)),yO(l),E}function yO(l){Q.H=s1;var u=ir!==null&&ir.next!==null;if(Ol=0,fn=ir=Ct=null,Jm=!1,kh=0,wf=null,u)throw Error(n(300));l===null||In||(l=l.dependencies,l!==null&&Gm(l)&&(In=!0))}function _O(l,u,d,v){Ct=l;var b=0;do{if(bf&&(wf=null),kh=0,bf=!1,25<=b)throw Error(n(301));if(b+=1,fn=ir=null,l.updateQueue!=null){var E=l.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}Q.H=jW,E=u(d,v)}while(bf);return E}function RW(){var l=Q.H,u=l.useState()[0];return u=typeof u.then=="function"?Dh(u):u,l=l.useState()[0],(ir!==null?ir.memoizedState:null)!==l&&(Ct.flags|=1024),u}function f2(){var l=e1!==0;return e1=0,l}function h2(l,u,d){u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~d}function d2(l){if(Jm){for(l=l.memoizedState;l!==null;){var u=l.queue;u!==null&&(u.pending=null),l=l.next}Jm=!1}Ol=0,fn=ir=Ct=null,bf=!1,kh=e1=0,wf=null}function Zi(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fn===null?Ct.memoizedState=fn=l:fn=fn.next=l,fn}function hn(){if(ir===null){var l=Ct.alternate;l=l!==null?l.memoizedState:null}else l=ir.next;var u=fn===null?Ct.memoizedState:fn.next;if(u!==null)fn=u,ir=l;else{if(l===null)throw Ct.alternate===null?Error(n(467)):Error(n(310));ir=l,l={memoizedState:ir.memoizedState,baseState:ir.baseState,baseQueue:ir.baseQueue,queue:ir.queue,next:null},fn===null?Ct.memoizedState=fn=l:fn=fn.next=l}return fn}function p2(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dh(l){var u=kh;return kh+=1,wf===null&&(wf=[]),l=dO(wf,l,u),u=Ct,(fn===null?u.memoizedState:fn.next)===null&&(u=u.alternate,Q.H=u===null||u.memoizedState===null?tk:rk),l}function t1(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Dh(l);if(l.$$typeof===S)return ui(l)}throw Error(n(438,String(l)))}function m2(l){var u=null,d=Ct.updateQueue;if(d!==null&&(u=d.memoCache),u==null){var v=Ct.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(u={data:v.data.map(function(b){return b.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),d===null&&(d=p2(),Ct.updateQueue=d),d.memoCache=u,d=u.data[u.index],d===void 0)for(d=u.data[u.index]=Array(l),v=0;v<l;v++)d[v]=z;return u.index++,d}function Po(l,u){return typeof u=="function"?u(l):u}function r1(l){var u=hn();return g2(u,ir,l)}function g2(l,u,d){var v=l.queue;if(v===null)throw Error(n(311));v.lastRenderedReducer=d;var b=l.baseQueue,E=v.pending;if(E!==null){if(b!==null){var L=b.next;b.next=E.next,E.next=L}u.baseQueue=b=E,v.pending=null}if(E=l.baseState,b===null)l.memoizedState=E;else{u=b.next;var U=L=null,re=null,ye=u,Oe=!1;do{var Pe=ye.lane&-536870913;if(Pe!==ye.lane?(jt&Pe)===Pe:(Ol&Pe)===Pe){var be=ye.revertLane;if(be===0)re!==null&&(re=re.next={lane:0,revertLane:0,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null}),Pe===xf&&(Oe=!0);else if((Ol&be)===be){ye=ye.next,be===xf&&(Oe=!0);continue}else Pe={lane:0,revertLane:ye.revertLane,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null},re===null?(U=re=Pe,L=E):re=re.next=Pe,Ct.lanes|=be,Fl|=be;Pe=ye.action,jc&&d(E,Pe),E=ye.hasEagerState?ye.eagerState:d(E,Pe)}else be={lane:Pe,revertLane:ye.revertLane,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null},re===null?(U=re=be,L=E):re=re.next=be,Ct.lanes|=Pe,Fl|=Pe;ye=ye.next}while(ye!==null&&ye!==u);if(re===null?L=E:re.next=U,!ma(E,l.memoizedState)&&(In=!0,Oe&&(d=yf,d!==null)))throw d;l.memoizedState=E,l.baseState=L,l.baseQueue=re,v.lastRenderedState=E}return b===null&&(v.lanes=0),[l.memoizedState,v.dispatch]}function v2(l){var u=hn(),d=u.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=l;var v=d.dispatch,b=d.pending,E=u.memoizedState;if(b!==null){d.pending=null;var L=b=b.next;do E=l(E,L.action),L=L.next;while(L!==b);ma(E,u.memoizedState)||(In=!0),u.memoizedState=E,u.baseQueue===null&&(u.baseState=E),d.lastRenderedState=E}return[E,v]}function bO(l,u,d){var v=Ct,b=hn(),E=qt;if(E){if(d===void 0)throw Error(n(407));d=d()}else d=u();var L=!ma((ir||b).memoizedState,d);L&&(b.memoizedState=d,In=!0),b=b.queue;var U=EO.bind(null,v,b,l);if(Ph(2048,8,U,[l]),b.getSnapshot!==u||L||fn!==null&&fn.memoizedState.tag&1){if(v.flags|=2048,Sf(9,n1(),SO.bind(null,v,b,d,u),null),pr===null)throw Error(n(349));E||(Ol&124)!==0||wO(v,u,d)}return d}function wO(l,u,d){l.flags|=16384,l={getSnapshot:u,value:d},u=Ct.updateQueue,u===null?(u=p2(),Ct.updateQueue=u,u.stores=[l]):(d=u.stores,d===null?u.stores=[l]:d.push(l))}function SO(l,u,d,v){u.value=d,u.getSnapshot=v,TO(u)&&AO(l)}function EO(l,u,d){return d(function(){TO(u)&&AO(l)})}function TO(l){var u=l.getSnapshot;l=l.value;try{var d=u();return!ma(l,d)}catch{return!0}}function AO(l){var u=pf(l,2);u!==null&&ba(u,l,2)}function x2(l){var u=Zi();if(typeof l=="function"){var d=l;if(l=d(),jc){Ie(!0);try{d()}finally{Ie(!1)}}}return u.memoizedState=u.baseState=l,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:l},u}function CO(l,u,d,v){return l.baseState=d,g2(l,ir,typeof v=="function"?v:Po)}function NW(l,u,d,v,b){if(a1(l))throw Error(n(485));if(l=u.action,l!==null){var E={payload:b,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){E.listeners.push(L)}};Q.T!==null?d(!0):E.isTransition=!1,v(E),d=u.pending,d===null?(E.next=u.pending=E,OO(u,E)):(E.next=d.next,u.pending=d.next=E)}}function OO(l,u){var d=u.action,v=u.payload,b=l.state;if(u.isTransition){var E=Q.T,L={};Q.T=L;try{var U=d(b,v),re=Q.S;re!==null&&re(L,U),kO(l,u,U)}catch(ye){y2(l,u,ye)}finally{Q.T=E}}else try{E=d(b,v),kO(l,u,E)}catch(ye){y2(l,u,ye)}}function kO(l,u,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(v){DO(l,u,v)},function(v){return y2(l,u,v)}):DO(l,u,d)}function DO(l,u,d){u.status="fulfilled",u.value=d,PO(u),l.state=d,u=l.pending,u!==null&&(d=u.next,d===u?l.pending=null:(d=d.next,u.next=d,OO(l,d)))}function y2(l,u,d){var v=l.pending;if(l.pending=null,v!==null){v=v.next;do u.status="rejected",u.reason=d,PO(u),u=u.next;while(u!==v)}l.action=null}function PO(l){l=l.listeners;for(var u=0;u<l.length;u++)(0,l[u])()}function MO(l,u){return u}function RO(l,u){if(qt){var d=pr.formState;if(d!==null){e:{var v=Ct;if(qt){if(Vr){t:{for(var b=Vr,E=Ks;b.nodeType!==8;){if(!E){b=null;break t}if(b=Fs(b.nextSibling),b===null){b=null;break t}}E=b.data,b=E==="F!"||E==="F"?b:null}if(b){Vr=Fs(b.nextSibling),v=b.data==="F!";break e}}Fc(v)}v=!1}v&&(u=d[0])}}return d=Zi(),d.memoizedState=d.baseState=u,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:MO,lastRenderedState:u},d.queue=v,d=QO.bind(null,Ct,v),v.dispatch=d,v=x2(!1),E=E2.bind(null,Ct,!1,v.queue),v=Zi(),b={state:u,dispatch:null,action:l,pending:null},v.queue=b,d=NW.bind(null,Ct,b,E,d),b.dispatch=d,v.memoizedState=l,[u,d,!1]}function NO(l){var u=hn();return FO(u,ir,l)}function FO(l,u,d){if(u=g2(l,u,MO)[0],l=r1(Po)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var v=Dh(u)}catch(L){throw L===Eh?Km:L}else v=u;u=hn();var b=u.queue,E=b.dispatch;return d!==u.memoizedState&&(Ct.flags|=2048,Sf(9,n1(),FW.bind(null,b,d),null)),[v,E,l]}function FW(l,u){l.action=u}function LO(l){var u=hn(),d=ir;if(d!==null)return FO(u,d,l);hn(),u=u.memoizedState,d=hn();var v=d.queue.dispatch;return d.memoizedState=l,[u,v,!1]}function Sf(l,u,d,v){return l={tag:l,create:d,deps:v,inst:u,next:null},u=Ct.updateQueue,u===null&&(u=p2(),Ct.updateQueue=u),d=u.lastEffect,d===null?u.lastEffect=l.next=l:(v=d.next,d.next=l,l.next=v,u.lastEffect=l),l}function n1(){return{destroy:void 0,resource:void 0}}function IO(){return hn().memoizedState}function i1(l,u,d,v){var b=Zi();v=v===void 0?null:v,Ct.flags|=l,b.memoizedState=Sf(1|u,n1(),d,v)}function Ph(l,u,d,v){var b=hn();v=v===void 0?null:v;var E=b.memoizedState.inst;ir!==null&&v!==null&&c2(v,ir.memoizedState.deps)?b.memoizedState=Sf(u,E,d,v):(Ct.flags|=l,b.memoizedState=Sf(1|u,E,d,v))}function BO(l,u){i1(8390656,8,l,u)}function jO(l,u){Ph(2048,8,l,u)}function UO(l,u){return Ph(4,2,l,u)}function zO(l,u){return Ph(4,4,l,u)}function VO(l,u){if(typeof u=="function"){l=l();var d=u(l);return function(){typeof d=="function"?d():u(null)}}if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function HO(l,u,d){d=d!=null?d.concat([l]):null,Ph(4,4,VO.bind(null,u,l),d)}function _2(){}function $O(l,u){var d=hn();u=u===void 0?null:u;var v=d.memoizedState;return u!==null&&c2(u,v[1])?v[0]:(d.memoizedState=[l,u],l)}function WO(l,u){var d=hn();u=u===void 0?null:u;var v=d.memoizedState;if(u!==null&&c2(u,v[1]))return v[0];if(v=l(),jc){Ie(!0);try{l()}finally{Ie(!1)}}return d.memoizedState=[v,u],v}function b2(l,u,d){return d===void 0||(Ol&1073741824)!==0?l.memoizedState=u:(l.memoizedState=d,l=Xk(),Ct.lanes|=l,Fl|=l,d)}function qO(l,u,d,v){return ma(d,u)?d:_f.current!==null?(l=b2(l,d,v),ma(l,u)||(In=!0),l):(Ol&42)===0?(In=!0,l.memoizedState=d):(l=Xk(),Ct.lanes|=l,Fl|=l,u)}function GO(l,u,d,v,b){var E=ee.p;ee.p=E!==0&&8>E?E:8;var L=Q.T,U={};Q.T=U,E2(l,!1,u,d);try{var re=b(),ye=Q.S;if(ye!==null&&ye(U,re),re!==null&&typeof re=="object"&&typeof re.then=="function"){var Oe=PW(re,v);Mh(l,u,Oe,_a(l))}else Mh(l,u,v,_a(l))}catch(Pe){Mh(l,u,{then:function(){},status:"rejected",reason:Pe},_a())}finally{ee.p=E,Q.T=L}}function LW(){}function w2(l,u,d,v){if(l.tag!==5)throw Error(n(476));var b=XO(l).queue;GO(l,b,u,ce,d===null?LW:function(){return YO(l),d(v)})}function XO(l){var u=l.memoizedState;if(u!==null)return u;u={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:ce},next:null};var d={};return u.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:d},next:null},l.memoizedState=u,l=l.alternate,l!==null&&(l.memoizedState=u),u}function YO(l){var u=XO(l).next.queue;Mh(l,u,{},_a())}function S2(){return ui(Kh)}function KO(){return hn().memoizedState}function ZO(){return hn().memoizedState}function IW(l){for(var u=l.return;u!==null;){switch(u.tag){case 24:case 3:var d=_a();l=Al(d);var v=Cl(u,l,d);v!==null&&(ba(v,u,d),Ah(v,u,d)),u={cache:Jy()},l.payload=u;return}u=u.return}}function BW(l,u,d){var v=_a();d={lane:v,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null},a1(l)?JO(u,d):(d=Hy(l,u,d,v),d!==null&&(ba(d,l,v),ek(d,u,v)))}function QO(l,u,d){var v=_a();Mh(l,u,d,v)}function Mh(l,u,d,v){var b={lane:v,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null};if(a1(l))JO(u,b);else{var E=l.alternate;if(l.lanes===0&&(E===null||E.lanes===0)&&(E=u.lastRenderedReducer,E!==null))try{var L=u.lastRenderedState,U=E(L,d);if(b.hasEagerState=!0,b.eagerState=U,ma(U,L))return Vm(l,u,b,0),pr===null&&zm(),!1}catch{}finally{}if(d=Hy(l,u,b,v),d!==null)return ba(d,l,v),ek(d,u,v),!0}return!1}function E2(l,u,d,v){if(v={lane:2,revertLane:r_(),action:v,hasEagerState:!1,eagerState:null,next:null},a1(l)){if(u)throw Error(n(479))}else u=Hy(l,d,v,2),u!==null&&ba(u,l,2)}function a1(l){var u=l.alternate;return l===Ct||u!==null&&u===Ct}function JO(l,u){bf=Jm=!0;var d=l.pending;d===null?u.next=u:(u.next=d.next,d.next=u),l.pending=u}function ek(l,u,d){if((d&4194048)!==0){var v=u.lanes;v&=l.pendingLanes,d|=v,u.lanes=d,oi(l,d)}}var s1={readContext:ui,use:t1,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useLayoutEffect:Qr,useInsertionEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useSyncExternalStore:Qr,useId:Qr,useHostTransitionStatus:Qr,useFormState:Qr,useActionState:Qr,useOptimistic:Qr,useMemoCache:Qr,useCacheRefresh:Qr},tk={readContext:ui,use:t1,useCallback:function(l,u){return Zi().memoizedState=[l,u===void 0?null:u],l},useContext:ui,useEffect:BO,useImperativeHandle:function(l,u,d){d=d!=null?d.concat([l]):null,i1(4194308,4,VO.bind(null,u,l),d)},useLayoutEffect:function(l,u){return i1(4194308,4,l,u)},useInsertionEffect:function(l,u){i1(4,2,l,u)},useMemo:function(l,u){var d=Zi();u=u===void 0?null:u;var v=l();if(jc){Ie(!0);try{l()}finally{Ie(!1)}}return d.memoizedState=[v,u],v},useReducer:function(l,u,d){var v=Zi();if(d!==void 0){var b=d(u);if(jc){Ie(!0);try{d(u)}finally{Ie(!1)}}}else b=u;return v.memoizedState=v.baseState=b,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:b},v.queue=l,l=l.dispatch=BW.bind(null,Ct,l),[v.memoizedState,l]},useRef:function(l){var u=Zi();return l={current:l},u.memoizedState=l},useState:function(l){l=x2(l);var u=l.queue,d=QO.bind(null,Ct,u);return u.dispatch=d,[l.memoizedState,d]},useDebugValue:_2,useDeferredValue:function(l,u){var d=Zi();return b2(d,l,u)},useTransition:function(){var l=x2(!1);return l=GO.bind(null,Ct,l.queue,!0,!1),Zi().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,u,d){var v=Ct,b=Zi();if(qt){if(d===void 0)throw Error(n(407));d=d()}else{if(d=u(),pr===null)throw Error(n(349));(jt&124)!==0||wO(v,u,d)}b.memoizedState=d;var E={value:d,getSnapshot:u};return b.queue=E,BO(EO.bind(null,v,E,l),[l]),v.flags|=2048,Sf(9,n1(),SO.bind(null,v,E,d,u),null),d},useId:function(){var l=Zi(),u=pr.identifierPrefix;if(qt){var d=Oo,v=Co;d=(v&~(1<<32-Re(v)-1)).toString(32)+d,u="«"+u+"R"+d,d=e1++,0<d&&(u+="H"+d.toString(32)),u+="»"}else d=MW++,u="«"+u+"r"+d.toString(32)+"»";return l.memoizedState=u},useHostTransitionStatus:S2,useFormState:RO,useActionState:RO,useOptimistic:function(l){var u=Zi();u.memoizedState=u.baseState=l;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=d,u=E2.bind(null,Ct,!0,d),d.dispatch=u,[l,u]},useMemoCache:m2,useCacheRefresh:function(){return Zi().memoizedState=IW.bind(null,Ct)}},rk={readContext:ui,use:t1,useCallback:$O,useContext:ui,useEffect:jO,useImperativeHandle:HO,useInsertionEffect:UO,useLayoutEffect:zO,useMemo:WO,useReducer:r1,useRef:IO,useState:function(){return r1(Po)},useDebugValue:_2,useDeferredValue:function(l,u){var d=hn();return qO(d,ir.memoizedState,l,u)},useTransition:function(){var l=r1(Po)[0],u=hn().memoizedState;return[typeof l=="boolean"?l:Dh(l),u]},useSyncExternalStore:bO,useId:KO,useHostTransitionStatus:S2,useFormState:NO,useActionState:NO,useOptimistic:function(l,u){var d=hn();return CO(d,ir,l,u)},useMemoCache:m2,useCacheRefresh:ZO},jW={readContext:ui,use:t1,useCallback:$O,useContext:ui,useEffect:jO,useImperativeHandle:HO,useInsertionEffect:UO,useLayoutEffect:zO,useMemo:WO,useReducer:v2,useRef:IO,useState:function(){return v2(Po)},useDebugValue:_2,useDeferredValue:function(l,u){var d=hn();return ir===null?b2(d,l,u):qO(d,ir.memoizedState,l,u)},useTransition:function(){var l=v2(Po)[0],u=hn().memoizedState;return[typeof l=="boolean"?l:Dh(l),u]},useSyncExternalStore:bO,useId:KO,useHostTransitionStatus:S2,useFormState:LO,useActionState:LO,useOptimistic:function(l,u){var d=hn();return ir!==null?CO(d,ir,l,u):(d.baseState=l,[l,d.queue.dispatch])},useMemoCache:m2,useCacheRefresh:ZO},Ef=null,Rh=0;function o1(l){var u=Rh;return Rh+=1,Ef===null&&(Ef=[]),dO(Ef,l,u)}function Nh(l,u){u=u.props.ref,l.ref=u!==void 0?u:null}function l1(l,u){throw u.$$typeof===p?Error(n(525)):(l=Object.prototype.toString.call(u),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l)))}function nk(l){var u=l._init;return u(l._payload)}function ik(l){function u(he,oe){if(l){var me=he.deletions;me===null?(he.deletions=[oe],he.flags|=16):me.push(oe)}}function d(he,oe){if(!l)return null;for(;oe!==null;)u(he,oe),oe=oe.sibling;return null}function v(he){for(var oe=new Map;he!==null;)he.key!==null?oe.set(he.key,he):oe.set(he.index,he),he=he.sibling;return oe}function b(he,oe){return he=Ao(he,oe),he.index=0,he.sibling=null,he}function E(he,oe,me){return he.index=me,l?(me=he.alternate,me!==null?(me=me.index,me<oe?(he.flags|=67108866,oe):me):(he.flags|=67108866,oe)):(he.flags|=1048576,oe)}function L(he){return l&&he.alternate===null&&(he.flags|=67108866),he}function U(he,oe,me,De){return oe===null||oe.tag!==6?(oe=Wy(me,he.mode,De),oe.return=he,oe):(oe=b(oe,me),oe.return=he,oe)}function re(he,oe,me,De){var Je=me.type;return Je===y?Oe(he,oe,me.props.children,De,me.key):oe!==null&&(oe.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===M&&nk(Je)===oe.type)?(oe=b(oe,me.props),Nh(oe,me),oe.return=he,oe):(oe=$m(me.type,me.key,me.props,null,he.mode,De),Nh(oe,me),oe.return=he,oe)}function ye(he,oe,me,De){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==me.containerInfo||oe.stateNode.implementation!==me.implementation?(oe=qy(me,he.mode,De),oe.return=he,oe):(oe=b(oe,me.children||[]),oe.return=he,oe)}function Oe(he,oe,me,De,Je){return oe===null||oe.tag!==7?(oe=Pc(me,he.mode,De,Je),oe.return=he,oe):(oe=b(oe,me),oe.return=he,oe)}function Pe(he,oe,me){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return oe=Wy(""+oe,he.mode,me),oe.return=he,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case m:return me=$m(oe.type,oe.key,oe.props,null,he.mode,me),Nh(me,oe),me.return=he,me;case g:return oe=qy(oe,he.mode,me),oe.return=he,oe;case M:var De=oe._init;return oe=De(oe._payload),Pe(he,oe,me)}if(le(oe)||B(oe))return oe=Pc(oe,he.mode,me,null),oe.return=he,oe;if(typeof oe.then=="function")return Pe(he,o1(oe),me);if(oe.$$typeof===S)return Pe(he,Xm(he,oe),me);l1(he,oe)}return null}function be(he,oe,me,De){var Je=oe!==null?oe.key:null;if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return Je!==null?null:U(he,oe,""+me,De);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case m:return me.key===Je?re(he,oe,me,De):null;case g:return me.key===Je?ye(he,oe,me,De):null;case M:return Je=me._init,me=Je(me._payload),be(he,oe,me,De)}if(le(me)||B(me))return Je!==null?null:Oe(he,oe,me,De,null);if(typeof me.then=="function")return be(he,oe,o1(me),De);if(me.$$typeof===S)return be(he,oe,Xm(he,me),De);l1(he,me)}return null}function we(he,oe,me,De,Je){if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return he=he.get(me)||null,U(oe,he,""+De,Je);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case m:return he=he.get(De.key===null?me:De.key)||null,re(oe,he,De,Je);case g:return he=he.get(De.key===null?me:De.key)||null,ye(oe,he,De,Je);case M:var Dt=De._init;return De=Dt(De._payload),we(he,oe,me,De,Je)}if(le(De)||B(De))return he=he.get(me)||null,Oe(oe,he,De,Je,null);if(typeof De.then=="function")return we(he,oe,me,o1(De),Je);if(De.$$typeof===S)return we(he,oe,me,Xm(oe,De),Je);l1(oe,De)}return null}function dt(he,oe,me,De){for(var Je=null,Dt=null,nt=oe,lt=oe=0,jn=null;nt!==null&&lt<me.length;lt++){nt.index>lt?(jn=nt,nt=null):jn=nt.sibling;var Ht=be(he,nt,me[lt],De);if(Ht===null){nt===null&&(nt=jn);break}l&&nt&&Ht.alternate===null&&u(he,nt),oe=E(Ht,oe,lt),Dt===null?Je=Ht:Dt.sibling=Ht,Dt=Ht,nt=jn}if(lt===me.length)return d(he,nt),qt&&Rc(he,lt),Je;if(nt===null){for(;lt<me.length;lt++)nt=Pe(he,me[lt],De),nt!==null&&(oe=E(nt,oe,lt),Dt===null?Je=nt:Dt.sibling=nt,Dt=nt);return qt&&Rc(he,lt),Je}for(nt=v(nt);lt<me.length;lt++)jn=we(nt,he,lt,me[lt],De),jn!==null&&(l&&jn.alternate!==null&&nt.delete(jn.key===null?lt:jn.key),oe=E(jn,oe,lt),Dt===null?Je=jn:Dt.sibling=jn,Dt=jn);return l&&nt.forEach(function($l){return u(he,$l)}),qt&&Rc(he,lt),Je}function ot(he,oe,me,De){if(me==null)throw Error(n(151));for(var Je=null,Dt=null,nt=oe,lt=oe=0,jn=null,Ht=me.next();nt!==null&&!Ht.done;lt++,Ht=me.next()){nt.index>lt?(jn=nt,nt=null):jn=nt.sibling;var $l=be(he,nt,Ht.value,De);if($l===null){nt===null&&(nt=jn);break}l&&nt&&$l.alternate===null&&u(he,nt),oe=E($l,oe,lt),Dt===null?Je=$l:Dt.sibling=$l,Dt=$l,nt=jn}if(Ht.done)return d(he,nt),qt&&Rc(he,lt),Je;if(nt===null){for(;!Ht.done;lt++,Ht=me.next())Ht=Pe(he,Ht.value,De),Ht!==null&&(oe=E(Ht,oe,lt),Dt===null?Je=Ht:Dt.sibling=Ht,Dt=Ht);return qt&&Rc(he,lt),Je}for(nt=v(nt);!Ht.done;lt++,Ht=me.next())Ht=we(nt,he,lt,Ht.value,De),Ht!==null&&(l&&Ht.alternate!==null&&nt.delete(Ht.key===null?lt:Ht.key),oe=E(Ht,oe,lt),Dt===null?Je=Ht:Dt.sibling=Ht,Dt=Ht);return l&&nt.forEach(function(Uq){return u(he,Uq)}),qt&&Rc(he,lt),Je}function sr(he,oe,me,De){if(typeof me=="object"&&me!==null&&me.type===y&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case m:e:{for(var Je=me.key;oe!==null;){if(oe.key===Je){if(Je=me.type,Je===y){if(oe.tag===7){d(he,oe.sibling),De=b(oe,me.props.children),De.return=he,he=De;break e}}else if(oe.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===M&&nk(Je)===oe.type){d(he,oe.sibling),De=b(oe,me.props),Nh(De,me),De.return=he,he=De;break e}d(he,oe);break}else u(he,oe);oe=oe.sibling}me.type===y?(De=Pc(me.props.children,he.mode,De,me.key),De.return=he,he=De):(De=$m(me.type,me.key,me.props,null,he.mode,De),Nh(De,me),De.return=he,he=De)}return L(he);case g:e:{for(Je=me.key;oe!==null;){if(oe.key===Je)if(oe.tag===4&&oe.stateNode.containerInfo===me.containerInfo&&oe.stateNode.implementation===me.implementation){d(he,oe.sibling),De=b(oe,me.children||[]),De.return=he,he=De;break e}else{d(he,oe);break}else u(he,oe);oe=oe.sibling}De=qy(me,he.mode,De),De.return=he,he=De}return L(he);case M:return Je=me._init,me=Je(me._payload),sr(he,oe,me,De)}if(le(me))return dt(he,oe,me,De);if(B(me)){if(Je=B(me),typeof Je!="function")throw Error(n(150));return me=Je.call(me),ot(he,oe,me,De)}if(typeof me.then=="function")return sr(he,oe,o1(me),De);if(me.$$typeof===S)return sr(he,oe,Xm(he,me),De);l1(he,me)}return typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint"?(me=""+me,oe!==null&&oe.tag===6?(d(he,oe.sibling),De=b(oe,me),De.return=he,he=De):(d(he,oe),De=Wy(me,he.mode,De),De.return=he,he=De),L(he)):d(he,oe)}return function(he,oe,me,De){try{Rh=0;var Je=sr(he,oe,me,De);return Ef=null,Je}catch(nt){if(nt===Eh||nt===Km)throw nt;var Dt=ga(29,nt,null,he.mode);return Dt.lanes=De,Dt.return=he,Dt}finally{}}}var Tf=ik(!0),ak=ik(!1),Ja=se(null),Zs=null;function kl(l){var u=l.alternate;V(Tn,Tn.current&1),V(Ja,l),Zs===null&&(u===null||_f.current!==null||u.memoizedState!==null)&&(Zs=l)}function sk(l){if(l.tag===22){if(V(Tn,Tn.current),V(Ja,l),Zs===null){var u=l.alternate;u!==null&&u.memoizedState!==null&&(Zs=l)}}else Dl()}function Dl(){V(Tn,Tn.current),V(Ja,Ja.current)}function Mo(l){F(Ja),Zs===l&&(Zs=null),F(Tn)}var Tn=se(0);function c1(l){for(var u=l;u!==null;){if(u.tag===13){var d=u.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||p_(d)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}function T2(l,u,d,v){u=l.memoizedState,d=d(v,u),d=d==null?u:h({},u,d),l.memoizedState=d,l.lanes===0&&(l.updateQueue.baseState=d)}var A2={enqueueSetState:function(l,u,d){l=l._reactInternals;var v=_a(),b=Al(v);b.payload=u,d!=null&&(b.callback=d),u=Cl(l,b,v),u!==null&&(ba(u,l,v),Ah(u,l,v))},enqueueReplaceState:function(l,u,d){l=l._reactInternals;var v=_a(),b=Al(v);b.tag=1,b.payload=u,d!=null&&(b.callback=d),u=Cl(l,b,v),u!==null&&(ba(u,l,v),Ah(u,l,v))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var d=_a(),v=Al(d);v.tag=2,u!=null&&(v.callback=u),u=Cl(l,v,d),u!==null&&(ba(u,l,d),Ah(u,l,d))}};function ok(l,u,d,v,b,E,L){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(v,E,L):u.prototype&&u.prototype.isPureReactComponent?!gh(d,v)||!gh(b,E):!0}function lk(l,u,d,v){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(d,v),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(d,v),u.state!==l&&A2.enqueueReplaceState(u,u.state,null)}function Uc(l,u){var d=u;if("ref"in u){d={};for(var v in u)v!=="ref"&&(d[v]=u[v])}if(l=l.defaultProps){d===u&&(d=h({},d));for(var b in l)d[b]===void 0&&(d[b]=l[b])}return d}var u1=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function ck(l){u1(l)}function uk(l){console.error(l)}function fk(l){u1(l)}function f1(l,u){try{var d=l.onUncaughtError;d(u.value,{componentStack:u.stack})}catch(v){setTimeout(function(){throw v})}}function hk(l,u,d){try{var v=l.onCaughtError;v(d.value,{componentStack:d.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function C2(l,u,d){return d=Al(d),d.tag=3,d.payload={element:null},d.callback=function(){f1(l,u)},d}function dk(l){return l=Al(l),l.tag=3,l}function pk(l,u,d,v){var b=d.type.getDerivedStateFromError;if(typeof b=="function"){var E=v.value;l.payload=function(){return b(E)},l.callback=function(){hk(u,d,v)}}var L=d.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(l.callback=function(){hk(u,d,v),typeof b!="function"&&(Ll===null?Ll=new Set([this]):Ll.add(this));var U=v.stack;this.componentDidCatch(v.value,{componentStack:U!==null?U:""})})}function UW(l,u,d,v,b){if(d.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(u=d.alternate,u!==null&&bh(u,d,b,!0),d=Ja.current,d!==null){switch(d.tag){case 13:return Zs===null?Z2():d.alternate===null&&Hr===0&&(Hr=3),d.flags&=-257,d.flags|=65536,d.lanes=b,v===r2?d.flags|=16384:(u=d.updateQueue,u===null?d.updateQueue=new Set([v]):u.add(v),J2(l,v,b)),!1;case 22:return d.flags|=65536,v===r2?d.flags|=16384:(u=d.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([v])},d.updateQueue=u):(d=u.retryQueue,d===null?u.retryQueue=new Set([v]):d.add(v)),J2(l,v,b)),!1}throw Error(n(435,d.tag))}return J2(l,v,b),Z2(),!1}if(qt)return u=Ja.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=b,v!==Yy&&(l=Error(n(422),{cause:v}),_h(Ya(l,d)))):(v!==Yy&&(u=Error(n(423),{cause:v}),_h(Ya(u,d))),l=l.current.alternate,l.flags|=65536,b&=-b,l.lanes|=b,v=Ya(v,d),b=C2(l.stateNode,v,b),a2(l,b),Hr!==4&&(Hr=2)),!1;var E=Error(n(520),{cause:v});if(E=Ya(E,d),zh===null?zh=[E]:zh.push(E),Hr!==4&&(Hr=2),u===null)return!0;v=Ya(v,d),d=u;do{switch(d.tag){case 3:return d.flags|=65536,l=b&-b,d.lanes|=l,l=C2(d.stateNode,v,l),a2(d,l),!1;case 1:if(u=d.type,E=d.stateNode,(d.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Ll===null||!Ll.has(E))))return d.flags|=65536,b&=-b,d.lanes|=b,b=dk(b),pk(b,l,d,v),a2(d,b),!1}d=d.return}while(d!==null);return!1}var mk=Error(n(461)),In=!1;function Kn(l,u,d,v){u.child=l===null?ak(u,null,d,v):Tf(u,l.child,d,v)}function gk(l,u,d,v,b){d=d.render;var E=u.ref;if("ref"in v){var L={};for(var U in v)U!=="ref"&&(L[U]=v[U])}else L=v;return Ic(u),v=u2(l,u,d,L,E,b),U=f2(),l!==null&&!In?(h2(l,u,b),Ro(l,u,b)):(qt&&U&&Gy(u),u.flags|=1,Kn(l,u,v,b),u.child)}function vk(l,u,d,v,b){if(l===null){var E=d.type;return typeof E=="function"&&!$y(E)&&E.defaultProps===void 0&&d.compare===null?(u.tag=15,u.type=E,xk(l,u,E,v,b)):(l=$m(d.type,null,v,u,u.mode,b),l.ref=u.ref,l.return=u,u.child=l)}if(E=l.child,!F2(l,b)){var L=E.memoizedProps;if(d=d.compare,d=d!==null?d:gh,d(L,v)&&l.ref===u.ref)return Ro(l,u,b)}return u.flags|=1,l=Ao(E,v),l.ref=u.ref,l.return=u,u.child=l}function xk(l,u,d,v,b){if(l!==null){var E=l.memoizedProps;if(gh(E,v)&&l.ref===u.ref)if(In=!1,u.pendingProps=v=E,F2(l,b))(l.flags&131072)!==0&&(In=!0);else return u.lanes=l.lanes,Ro(l,u,b)}return O2(l,u,d,v,b)}function yk(l,u,d){var v=u.pendingProps,b=v.children,E=l!==null?l.memoizedState:null;if(v.mode==="hidden"){if((u.flags&128)!==0){if(v=E!==null?E.baseLanes|d:d,l!==null){for(b=u.child=l.child,E=0;b!==null;)E=E|b.lanes|b.childLanes,b=b.sibling;u.childLanes=E&~v}else u.childLanes=0,u.child=null;return _k(l,u,v,d)}if((d&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},l!==null&&Ym(u,E!==null?E.cachePool:null),E!==null?xO(u,E):o2(),sk(u);else return u.lanes=u.childLanes=536870912,_k(l,u,E!==null?E.baseLanes|d:d,d)}else E!==null?(Ym(u,E.cachePool),xO(u,E),Dl(),u.memoizedState=null):(l!==null&&Ym(u,null),o2(),Dl());return Kn(l,u,b,d),u.child}function _k(l,u,d,v){var b=t2();return b=b===null?null:{parent:En._currentValue,pool:b},u.memoizedState={baseLanes:d,cachePool:b},l!==null&&Ym(u,null),o2(),sk(u),l!==null&&bh(l,u,v,!0),null}function h1(l,u){var d=u.ref;if(d===null)l!==null&&l.ref!==null&&(u.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(n(284));(l===null||l.ref!==d)&&(u.flags|=4194816)}}function O2(l,u,d,v,b){return Ic(u),d=u2(l,u,d,v,void 0,b),v=f2(),l!==null&&!In?(h2(l,u,b),Ro(l,u,b)):(qt&&v&&Gy(u),u.flags|=1,Kn(l,u,d,b),u.child)}function bk(l,u,d,v,b,E){return Ic(u),u.updateQueue=null,d=_O(u,v,d,b),yO(l),v=f2(),l!==null&&!In?(h2(l,u,E),Ro(l,u,E)):(qt&&v&&Gy(u),u.flags|=1,Kn(l,u,d,E),u.child)}function wk(l,u,d,v,b){if(Ic(u),u.stateNode===null){var E=mf,L=d.contextType;typeof L=="object"&&L!==null&&(E=ui(L)),E=new d(v,E),u.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=A2,u.stateNode=E,E._reactInternals=u,E=u.stateNode,E.props=v,E.state=u.memoizedState,E.refs={},n2(u),L=d.contextType,E.context=typeof L=="object"&&L!==null?ui(L):mf,E.state=u.memoizedState,L=d.getDerivedStateFromProps,typeof L=="function"&&(T2(u,d,L,v),E.state=u.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(L=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),L!==E.state&&A2.enqueueReplaceState(E,E.state,null),Oh(u,v,E,b),Ch(),E.state=u.memoizedState),typeof E.componentDidMount=="function"&&(u.flags|=4194308),v=!0}else if(l===null){E=u.stateNode;var U=u.memoizedProps,re=Uc(d,U);E.props=re;var ye=E.context,Oe=d.contextType;L=mf,typeof Oe=="object"&&Oe!==null&&(L=ui(Oe));var Pe=d.getDerivedStateFromProps;Oe=typeof Pe=="function"||typeof E.getSnapshotBeforeUpdate=="function",U=u.pendingProps!==U,Oe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U||ye!==L)&&lk(u,E,v,L),Tl=!1;var be=u.memoizedState;E.state=be,Oh(u,v,E,b),Ch(),ye=u.memoizedState,U||be!==ye||Tl?(typeof Pe=="function"&&(T2(u,d,Pe,v),ye=u.memoizedState),(re=Tl||ok(u,d,re,v,be,ye,L))?(Oe||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(u.flags|=4194308)):(typeof E.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=v,u.memoizedState=ye),E.props=v,E.state=ye,E.context=L,v=re):(typeof E.componentDidMount=="function"&&(u.flags|=4194308),v=!1)}else{E=u.stateNode,i2(l,u),L=u.memoizedProps,Oe=Uc(d,L),E.props=Oe,Pe=u.pendingProps,be=E.context,ye=d.contextType,re=mf,typeof ye=="object"&&ye!==null&&(re=ui(ye)),U=d.getDerivedStateFromProps,(ye=typeof U=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(L!==Pe||be!==re)&&lk(u,E,v,re),Tl=!1,be=u.memoizedState,E.state=be,Oh(u,v,E,b),Ch();var we=u.memoizedState;L!==Pe||be!==we||Tl||l!==null&&l.dependencies!==null&&Gm(l.dependencies)?(typeof U=="function"&&(T2(u,d,U,v),we=u.memoizedState),(Oe=Tl||ok(u,d,Oe,v,be,we,re)||l!==null&&l.dependencies!==null&&Gm(l.dependencies))?(ye||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(v,we,re),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(v,we,re)),typeof E.componentDidUpdate=="function"&&(u.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof E.componentDidUpdate!="function"||L===l.memoizedProps&&be===l.memoizedState||(u.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||L===l.memoizedProps&&be===l.memoizedState||(u.flags|=1024),u.memoizedProps=v,u.memoizedState=we),E.props=v,E.state=we,E.context=re,v=Oe):(typeof E.componentDidUpdate!="function"||L===l.memoizedProps&&be===l.memoizedState||(u.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||L===l.memoizedProps&&be===l.memoizedState||(u.flags|=1024),v=!1)}return E=v,h1(l,u),v=(u.flags&128)!==0,E||v?(E=u.stateNode,d=v&&typeof d.getDerivedStateFromError!="function"?null:E.render(),u.flags|=1,l!==null&&v?(u.child=Tf(u,l.child,null,b),u.child=Tf(u,null,d,b)):Kn(l,u,d,b),u.memoizedState=E.state,l=u.child):l=Ro(l,u,b),l}function Sk(l,u,d,v){return yh(),u.flags|=256,Kn(l,u,d,v),u.child}var k2={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function D2(l){return{baseLanes:l,cachePool:uO()}}function P2(l,u,d){return l=l!==null?l.childLanes&~d:0,u&&(l|=es),l}function Ek(l,u,d){var v=u.pendingProps,b=!1,E=(u.flags&128)!==0,L;if((L=E)||(L=l!==null&&l.memoizedState===null?!1:(Tn.current&2)!==0),L&&(b=!0,u.flags&=-129),L=(u.flags&32)!==0,u.flags&=-33,l===null){if(qt){if(b?kl(u):Dl(),qt){var U=Vr,re;if(re=U){e:{for(re=U,U=Ks;re.nodeType!==8;){if(!U){U=null;break e}if(re=Fs(re.nextSibling),re===null){U=null;break e}}U=re}U!==null?(u.memoizedState={dehydrated:U,treeContext:Mc!==null?{id:Co,overflow:Oo}:null,retryLane:536870912,hydrationErrors:null},re=ga(18,null,null,0),re.stateNode=U,re.return=u,u.child=re,Fi=u,Vr=null,re=!0):re=!1}re||Fc(u)}if(U=u.memoizedState,U!==null&&(U=U.dehydrated,U!==null))return p_(U)?u.lanes=32:u.lanes=536870912,null;Mo(u)}return U=v.children,v=v.fallback,b?(Dl(),b=u.mode,U=d1({mode:"hidden",children:U},b),v=Pc(v,b,d,null),U.return=u,v.return=u,U.sibling=v,u.child=U,b=u.child,b.memoizedState=D2(d),b.childLanes=P2(l,L,d),u.memoizedState=k2,v):(kl(u),M2(u,U))}if(re=l.memoizedState,re!==null&&(U=re.dehydrated,U!==null)){if(E)u.flags&256?(kl(u),u.flags&=-257,u=R2(l,u,d)):u.memoizedState!==null?(Dl(),u.child=l.child,u.flags|=128,u=null):(Dl(),b=v.fallback,U=u.mode,v=d1({mode:"visible",children:v.children},U),b=Pc(b,U,d,null),b.flags|=2,v.return=u,b.return=u,v.sibling=b,u.child=v,Tf(u,l.child,null,d),v=u.child,v.memoizedState=D2(d),v.childLanes=P2(l,L,d),u.memoizedState=k2,u=b);else if(kl(u),p_(U)){if(L=U.nextSibling&&U.nextSibling.dataset,L)var ye=L.dgst;L=ye,v=Error(n(419)),v.stack="",v.digest=L,_h({value:v,source:null,stack:null}),u=R2(l,u,d)}else if(In||bh(l,u,d,!1),L=(d&l.childLanes)!==0,In||L){if(L=pr,L!==null&&(v=d&-d,v=(v&42)!==0?1:Fn(v),v=(v&(L.suspendedLanes|d))!==0?0:v,v!==0&&v!==re.retryLane))throw re.retryLane=v,pf(l,v),ba(L,l,v),mk;U.data==="$?"||Z2(),u=R2(l,u,d)}else U.data==="$?"?(u.flags|=192,u.child=l.child,u=null):(l=re.treeContext,Vr=Fs(U.nextSibling),Fi=u,qt=!0,Nc=null,Ks=!1,l!==null&&(Za[Qa++]=Co,Za[Qa++]=Oo,Za[Qa++]=Mc,Co=l.id,Oo=l.overflow,Mc=u),u=M2(u,v.children),u.flags|=4096);return u}return b?(Dl(),b=v.fallback,U=u.mode,re=l.child,ye=re.sibling,v=Ao(re,{mode:"hidden",children:v.children}),v.subtreeFlags=re.subtreeFlags&65011712,ye!==null?b=Ao(ye,b):(b=Pc(b,U,d,null),b.flags|=2),b.return=u,v.return=u,v.sibling=b,u.child=v,v=b,b=u.child,U=l.child.memoizedState,U===null?U=D2(d):(re=U.cachePool,re!==null?(ye=En._currentValue,re=re.parent!==ye?{parent:ye,pool:ye}:re):re=uO(),U={baseLanes:U.baseLanes|d,cachePool:re}),b.memoizedState=U,b.childLanes=P2(l,L,d),u.memoizedState=k2,v):(kl(u),d=l.child,l=d.sibling,d=Ao(d,{mode:"visible",children:v.children}),d.return=u,d.sibling=null,l!==null&&(L=u.deletions,L===null?(u.deletions=[l],u.flags|=16):L.push(l)),u.child=d,u.memoizedState=null,d)}function M2(l,u){return u=d1({mode:"visible",children:u},l.mode),u.return=l,l.child=u}function d1(l,u){return l=ga(22,l,null,u),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function R2(l,u,d){return Tf(u,l.child,null,d),l=M2(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function Tk(l,u,d){l.lanes|=u;var v=l.alternate;v!==null&&(v.lanes|=u),Zy(l.return,u,d)}function N2(l,u,d,v,b){var E=l.memoizedState;E===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:v,tail:d,tailMode:b}:(E.isBackwards=u,E.rendering=null,E.renderingStartTime=0,E.last=v,E.tail=d,E.tailMode=b)}function Ak(l,u,d){var v=u.pendingProps,b=v.revealOrder,E=v.tail;if(Kn(l,u,v.children,d),v=Tn.current,(v&2)!==0)v=v&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Tk(l,d,u);else if(l.tag===19)Tk(l,d,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}v&=1}switch(V(Tn,v),b){case"forwards":for(d=u.child,b=null;d!==null;)l=d.alternate,l!==null&&c1(l)===null&&(b=d),d=d.sibling;d=b,d===null?(b=u.child,u.child=null):(b=d.sibling,d.sibling=null),N2(u,!1,b,d,E);break;case"backwards":for(d=null,b=u.child,u.child=null;b!==null;){if(l=b.alternate,l!==null&&c1(l)===null){u.child=b;break}l=b.sibling,b.sibling=d,d=b,b=l}N2(u,!0,d,null,E);break;case"together":N2(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Ro(l,u,d){if(l!==null&&(u.dependencies=l.dependencies),Fl|=u.lanes,(d&u.childLanes)===0)if(l!==null){if(bh(l,u,d,!1),(d&u.childLanes)===0)return null}else return null;if(l!==null&&u.child!==l.child)throw Error(n(153));if(u.child!==null){for(l=u.child,d=Ao(l,l.pendingProps),u.child=d,d.return=u;l.sibling!==null;)l=l.sibling,d=d.sibling=Ao(l,l.pendingProps),d.return=u;d.sibling=null}return u.child}function F2(l,u){return(l.lanes&u)!==0?!0:(l=l.dependencies,!!(l!==null&&Gm(l)))}function zW(l,u,d){switch(u.tag){case 3:Te(u,u.stateNode.containerInfo),El(u,En,l.memoizedState.cache),yh();break;case 27:case 5:xe(u);break;case 4:Te(u,u.stateNode.containerInfo);break;case 10:El(u,u.type,u.memoizedProps.value);break;case 13:var v=u.memoizedState;if(v!==null)return v.dehydrated!==null?(kl(u),u.flags|=128,null):(d&u.child.childLanes)!==0?Ek(l,u,d):(kl(u),l=Ro(l,u,d),l!==null?l.sibling:null);kl(u);break;case 19:var b=(l.flags&128)!==0;if(v=(d&u.childLanes)!==0,v||(bh(l,u,d,!1),v=(d&u.childLanes)!==0),b){if(v)return Ak(l,u,d);u.flags|=128}if(b=u.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),V(Tn,Tn.current),v)break;return null;case 22:case 23:return u.lanes=0,yk(l,u,d);case 24:El(u,En,l.memoizedState.cache)}return Ro(l,u,d)}function Ck(l,u,d){if(l!==null)if(l.memoizedProps!==u.pendingProps)In=!0;else{if(!F2(l,d)&&(u.flags&128)===0)return In=!1,zW(l,u,d);In=(l.flags&131072)!==0}else In=!1,qt&&(u.flags&1048576)!==0&&nO(u,qm,u.index);switch(u.lanes=0,u.tag){case 16:e:{l=u.pendingProps;var v=u.elementType,b=v._init;if(v=b(v._payload),u.type=v,typeof v=="function")$y(v)?(l=Uc(v,l),u.tag=1,u=wk(null,u,v,l,d)):(u.tag=0,u=O2(null,u,v,l,d));else{if(v!=null){if(b=v.$$typeof,b===O){u.tag=11,u=gk(null,u,v,l,d);break e}else if(b===D){u.tag=14,u=vk(null,u,v,l,d);break e}}throw u=ne(v)||v,Error(n(306,u,""))}}return u;case 0:return O2(l,u,u.type,u.pendingProps,d);case 1:return v=u.type,b=Uc(v,u.pendingProps),wk(l,u,v,b,d);case 3:e:{if(Te(u,u.stateNode.containerInfo),l===null)throw Error(n(387));v=u.pendingProps;var E=u.memoizedState;b=E.element,i2(l,u),Oh(u,v,null,d);var L=u.memoizedState;if(v=L.cache,El(u,En,v),v!==E.cache&&Qy(u,[En],d,!0),Ch(),v=L.element,E.isDehydrated)if(E={element:v,isDehydrated:!1,cache:L.cache},u.updateQueue.baseState=E,u.memoizedState=E,u.flags&256){u=Sk(l,u,v,d);break e}else if(v!==b){b=Ya(Error(n(424)),u),_h(b),u=Sk(l,u,v,d);break e}else{switch(l=u.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(Vr=Fs(l.firstChild),Fi=u,qt=!0,Nc=null,Ks=!0,d=ak(u,null,v,d),u.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(yh(),v===b){u=Ro(l,u,d);break e}Kn(l,u,v,d)}u=u.child}return u;case 26:return h1(l,u),l===null?(d=PD(u.type,null,u.pendingProps,null))?u.memoizedState=d:qt||(d=u.type,l=u.pendingProps,v=C1(ae.current).createElement(d),v[Ue]=u,v[et]=l,Qn(v,d,l),fe(v),u.stateNode=v):u.memoizedState=PD(u.type,l.memoizedProps,u.pendingProps,l.memoizedState),null;case 27:return xe(u),l===null&&qt&&(v=u.stateNode=OD(u.type,u.pendingProps,ae.current),Fi=u,Ks=!0,b=Vr,jl(u.type)?(m_=b,Vr=Fs(v.firstChild)):Vr=b),Kn(l,u,u.pendingProps.children,d),h1(l,u),l===null&&(u.flags|=4194304),u.child;case 5:return l===null&&qt&&((b=v=Vr)&&(v=mq(v,u.type,u.pendingProps,Ks),v!==null?(u.stateNode=v,Fi=u,Vr=Fs(v.firstChild),Ks=!1,b=!0):b=!1),b||Fc(u)),xe(u),b=u.type,E=u.pendingProps,L=l!==null?l.memoizedProps:null,v=E.children,f_(b,E)?v=null:L!==null&&f_(b,L)&&(u.flags|=32),u.memoizedState!==null&&(b=u2(l,u,RW,null,null,d),Kh._currentValue=b),h1(l,u),Kn(l,u,v,d),u.child;case 6:return l===null&&qt&&((l=d=Vr)&&(d=gq(d,u.pendingProps,Ks),d!==null?(u.stateNode=d,Fi=u,Vr=null,l=!0):l=!1),l||Fc(u)),null;case 13:return Ek(l,u,d);case 4:return Te(u,u.stateNode.containerInfo),v=u.pendingProps,l===null?u.child=Tf(u,null,v,d):Kn(l,u,v,d),u.child;case 11:return gk(l,u,u.type,u.pendingProps,d);case 7:return Kn(l,u,u.pendingProps,d),u.child;case 8:return Kn(l,u,u.pendingProps.children,d),u.child;case 12:return Kn(l,u,u.pendingProps.children,d),u.child;case 10:return v=u.pendingProps,El(u,u.type,v.value),Kn(l,u,v.children,d),u.child;case 9:return b=u.type._context,v=u.pendingProps.children,Ic(u),b=ui(b),v=v(b),u.flags|=1,Kn(l,u,v,d),u.child;case 14:return vk(l,u,u.type,u.pendingProps,d);case 15:return xk(l,u,u.type,u.pendingProps,d);case 19:return Ak(l,u,d);case 31:return v=u.pendingProps,d=u.mode,v={mode:v.mode,children:v.children},l===null?(d=d1(v,d),d.ref=u.ref,u.child=d,d.return=u,u=d):(d=Ao(l.child,v),d.ref=u.ref,u.child=d,d.return=u,u=d),u;case 22:return yk(l,u,d);case 24:return Ic(u),v=ui(En),l===null?(b=t2(),b===null&&(b=pr,E=Jy(),b.pooledCache=E,E.refCount++,E!==null&&(b.pooledCacheLanes|=d),b=E),u.memoizedState={parent:v,cache:b},n2(u),El(u,En,b)):((l.lanes&d)!==0&&(i2(l,u),Oh(u,null,null,d),Ch()),b=l.memoizedState,E=u.memoizedState,b.parent!==v?(b={parent:v,cache:v},u.memoizedState=b,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=b),El(u,En,v)):(v=E.cache,El(u,En,v),v!==b.cache&&Qy(u,[En],d,!0))),Kn(l,u,u.pendingProps.children,d),u.child;case 29:throw u.pendingProps}throw Error(n(156,u.tag))}function No(l){l.flags|=4}function Ok(l,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!LD(u)){if(u=Ja.current,u!==null&&((jt&4194048)===jt?Zs!==null:(jt&62914560)!==jt&&(jt&536870912)===0||u!==Zs))throw Th=r2,fO;l.flags|=8192}}function p1(l,u){u!==null&&(l.flags|=4),l.flags&16384&&(u=l.tag!==22?Mi():536870912,l.lanes|=u,kf|=u)}function Fh(l,u){if(!qt)switch(l.tailMode){case"hidden":u=l.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?l.tail=null:d.sibling=null;break;case"collapsed":d=l.tail;for(var v=null;d!==null;)d.alternate!==null&&(v=d),d=d.sibling;v===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:v.sibling=null}}function Pr(l){var u=l.alternate!==null&&l.alternate.child===l.child,d=0,v=0;if(u)for(var b=l.child;b!==null;)d|=b.lanes|b.childLanes,v|=b.subtreeFlags&65011712,v|=b.flags&65011712,b.return=l,b=b.sibling;else for(b=l.child;b!==null;)d|=b.lanes|b.childLanes,v|=b.subtreeFlags,v|=b.flags,b.return=l,b=b.sibling;return l.subtreeFlags|=v,l.childLanes=d,u}function VW(l,u,d){var v=u.pendingProps;switch(Xy(u),u.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pr(u),null;case 1:return Pr(u),null;case 3:return d=u.stateNode,v=null,l!==null&&(v=l.memoizedState.cache),u.memoizedState.cache!==v&&(u.flags|=2048),Do(En),ue(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(l===null||l.child===null)&&(xh(u)?No(u):l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,sO())),Pr(u),null;case 26:return d=u.memoizedState,l===null?(No(u),d!==null?(Pr(u),Ok(u,d)):(Pr(u),u.flags&=-16777217)):d?d!==l.memoizedState?(No(u),Pr(u),Ok(u,d)):(Pr(u),u.flags&=-16777217):(l.memoizedProps!==v&&No(u),Pr(u),u.flags&=-16777217),null;case 27:Ne(u),d=ae.current;var b=u.type;if(l!==null&&u.stateNode!=null)l.memoizedProps!==v&&No(u);else{if(!v){if(u.stateNode===null)throw Error(n(166));return Pr(u),null}l=q.current,xh(u)?iO(u):(l=OD(b,v,d),u.stateNode=l,No(u))}return Pr(u),null;case 5:if(Ne(u),d=u.type,l!==null&&u.stateNode!=null)l.memoizedProps!==v&&No(u);else{if(!v){if(u.stateNode===null)throw Error(n(166));return Pr(u),null}if(l=q.current,xh(u))iO(u);else{switch(b=C1(ae.current),l){case 1:l=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:l=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":l=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":l=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":l=b.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof v.is=="string"?b.createElement("select",{is:v.is}):b.createElement("select"),v.multiple?l.multiple=!0:v.size&&(l.size=v.size);break;default:l=typeof v.is=="string"?b.createElement(d,{is:v.is}):b.createElement(d)}}l[Ue]=u,l[et]=v;e:for(b=u.child;b!==null;){if(b.tag===5||b.tag===6)l.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===u)break e;for(;b.sibling===null;){if(b.return===null||b.return===u)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}u.stateNode=l;e:switch(Qn(l,d,v),d){case"button":case"input":case"select":case"textarea":l=!!v.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&No(u)}}return Pr(u),u.flags&=-16777217,null;case 6:if(l&&u.stateNode!=null)l.memoizedProps!==v&&No(u);else{if(typeof v!="string"&&u.stateNode===null)throw Error(n(166));if(l=ae.current,xh(u)){if(l=u.stateNode,d=u.memoizedProps,v=null,b=Fi,b!==null)switch(b.tag){case 27:case 5:v=b.memoizedProps}l[Ue]=u,l=!!(l.nodeValue===d||v!==null&&v.suppressHydrationWarning===!0||bD(l.nodeValue,d)),l||Fc(u)}else l=C1(l).createTextNode(v),l[Ue]=u,u.stateNode=l}return Pr(u),null;case 13:if(v=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(b=xh(u),v!==null&&v.dehydrated!==null){if(l===null){if(!b)throw Error(n(318));if(b=u.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(n(317));b[Ue]=u}else yh(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Pr(u),b=!1}else b=sO(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=b),b=!0;if(!b)return u.flags&256?(Mo(u),u):(Mo(u),null)}if(Mo(u),(u.flags&128)!==0)return u.lanes=d,u;if(d=v!==null,l=l!==null&&l.memoizedState!==null,d){v=u.child,b=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(b=v.alternate.memoizedState.cachePool.pool);var E=null;v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(E=v.memoizedState.cachePool.pool),E!==b&&(v.flags|=2048)}return d!==l&&d&&(u.child.flags|=8192),p1(u,u.updateQueue),Pr(u),null;case 4:return ue(),l===null&&s_(u.stateNode.containerInfo),Pr(u),null;case 10:return Do(u.type),Pr(u),null;case 19:if(F(Tn),b=u.memoizedState,b===null)return Pr(u),null;if(v=(u.flags&128)!==0,E=b.rendering,E===null)if(v)Fh(b,!1);else{if(Hr!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if(E=c1(l),E!==null){for(u.flags|=128,Fh(b,!1),l=E.updateQueue,u.updateQueue=l,p1(u,l),u.subtreeFlags=0,l=d,d=u.child;d!==null;)rO(d,l),d=d.sibling;return V(Tn,Tn.current&1|2),u.child}l=l.sibling}b.tail!==null&&ie()>v1&&(u.flags|=128,v=!0,Fh(b,!1),u.lanes=4194304)}else{if(!v)if(l=c1(E),l!==null){if(u.flags|=128,v=!0,l=l.updateQueue,u.updateQueue=l,p1(u,l),Fh(b,!0),b.tail===null&&b.tailMode==="hidden"&&!E.alternate&&!qt)return Pr(u),null}else 2*ie()-b.renderingStartTime>v1&&d!==536870912&&(u.flags|=128,v=!0,Fh(b,!1),u.lanes=4194304);b.isBackwards?(E.sibling=u.child,u.child=E):(l=b.last,l!==null?l.sibling=E:u.child=E,b.last=E)}return b.tail!==null?(u=b.tail,b.rendering=u,b.tail=u.sibling,b.renderingStartTime=ie(),u.sibling=null,l=Tn.current,V(Tn,v?l&1|2:l&1),u):(Pr(u),null);case 22:case 23:return Mo(u),l2(),v=u.memoizedState!==null,l!==null?l.memoizedState!==null!==v&&(u.flags|=8192):v&&(u.flags|=8192),v?(d&536870912)!==0&&(u.flags&128)===0&&(Pr(u),u.subtreeFlags&6&&(u.flags|=8192)):Pr(u),d=u.updateQueue,d!==null&&p1(u,d.retryQueue),d=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==d&&(u.flags|=2048),l!==null&&F(Bc),null;case 24:return d=null,l!==null&&(d=l.memoizedState.cache),u.memoizedState.cache!==d&&(u.flags|=2048),Do(En),Pr(u),null;case 25:return null;case 30:return null}throw Error(n(156,u.tag))}function HW(l,u){switch(Xy(u),u.tag){case 1:return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return Do(En),ue(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 26:case 27:case 5:return Ne(u),null;case 13:if(Mo(u),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(n(340));yh()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return F(Tn),null;case 4:return ue(),null;case 10:return Do(u.type),null;case 22:case 23:return Mo(u),l2(),l!==null&&F(Bc),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 24:return Do(En),null;case 25:return null;default:return null}}function kk(l,u){switch(Xy(u),u.tag){case 3:Do(En),ue();break;case 26:case 27:case 5:Ne(u);break;case 4:ue();break;case 13:Mo(u);break;case 19:F(Tn);break;case 10:Do(u.type);break;case 22:case 23:Mo(u),l2(),l!==null&&F(Bc);break;case 24:Do(En)}}function Lh(l,u){try{var d=u.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var b=v.next;d=b;do{if((d.tag&l)===l){v=void 0;var E=d.create,L=d.inst;v=E(),L.destroy=v}d=d.next}while(d!==b)}}catch(U){ur(u,u.return,U)}}function Pl(l,u,d){try{var v=u.updateQueue,b=v!==null?v.lastEffect:null;if(b!==null){var E=b.next;v=E;do{if((v.tag&l)===l){var L=v.inst,U=L.destroy;if(U!==void 0){L.destroy=void 0,b=u;var re=d,ye=U;try{ye()}catch(Oe){ur(b,re,Oe)}}}v=v.next}while(v!==E)}}catch(Oe){ur(u,u.return,Oe)}}function Dk(l){var u=l.updateQueue;if(u!==null){var d=l.stateNode;try{vO(u,d)}catch(v){ur(l,l.return,v)}}}function Pk(l,u,d){d.props=Uc(l.type,l.memoizedProps),d.state=l.memoizedState;try{d.componentWillUnmount()}catch(v){ur(l,u,v)}}function Ih(l,u){try{var d=l.ref;if(d!==null){switch(l.tag){case 26:case 27:case 5:var v=l.stateNode;break;case 30:v=l.stateNode;break;default:v=l.stateNode}typeof d=="function"?l.refCleanup=d(v):d.current=v}}catch(b){ur(l,u,b)}}function Qs(l,u){var d=l.ref,v=l.refCleanup;if(d!==null)if(typeof v=="function")try{v()}catch(b){ur(l,u,b)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(b){ur(l,u,b)}else d.current=null}function Mk(l){var u=l.type,d=l.memoizedProps,v=l.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":d.autoFocus&&v.focus();break e;case"img":d.src?v.src=d.src:d.srcSet&&(v.srcset=d.srcSet)}}catch(b){ur(l,l.return,b)}}function L2(l,u,d){try{var v=l.stateNode;uq(v,l.type,d,u),v[et]=u}catch(b){ur(l,l.return,b)}}function Rk(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&jl(l.type)||l.tag===4}function I2(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||Rk(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&jl(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function B2(l,u,d){var v=l.tag;if(v===5||v===6)l=l.stateNode,u?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(l,u):(u=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,u.appendChild(l),d=d._reactRootContainer,d!=null||u.onclick!==null||(u.onclick=A1));else if(v!==4&&(v===27&&jl(l.type)&&(d=l.stateNode,u=null),l=l.child,l!==null))for(B2(l,u,d),l=l.sibling;l!==null;)B2(l,u,d),l=l.sibling}function m1(l,u,d){var v=l.tag;if(v===5||v===6)l=l.stateNode,u?d.insertBefore(l,u):d.appendChild(l);else if(v!==4&&(v===27&&jl(l.type)&&(d=l.stateNode),l=l.child,l!==null))for(m1(l,u,d),l=l.sibling;l!==null;)m1(l,u,d),l=l.sibling}function Nk(l){var u=l.stateNode,d=l.memoizedProps;try{for(var v=l.type,b=u.attributes;b.length;)u.removeAttributeNode(b[0]);Qn(u,v,d),u[Ue]=l,u[et]=d}catch(E){ur(l,l.return,E)}}var Fo=!1,Jr=!1,j2=!1,Fk=typeof WeakSet=="function"?WeakSet:Set,Bn=null;function $W(l,u){if(l=l.containerInfo,c_=R1,l=qC(l),Iy(l)){if("selectionStart"in l)var d={start:l.selectionStart,end:l.selectionEnd};else e:{d=(d=l.ownerDocument)&&d.defaultView||window;var v=d.getSelection&&d.getSelection();if(v&&v.rangeCount!==0){d=v.anchorNode;var b=v.anchorOffset,E=v.focusNode;v=v.focusOffset;try{d.nodeType,E.nodeType}catch{d=null;break e}var L=0,U=-1,re=-1,ye=0,Oe=0,Pe=l,be=null;t:for(;;){for(var we;Pe!==d||b!==0&&Pe.nodeType!==3||(U=L+b),Pe!==E||v!==0&&Pe.nodeType!==3||(re=L+v),Pe.nodeType===3&&(L+=Pe.nodeValue.length),(we=Pe.firstChild)!==null;)be=Pe,Pe=we;for(;;){if(Pe===l)break t;if(be===d&&++ye===b&&(U=L),be===E&&++Oe===v&&(re=L),(we=Pe.nextSibling)!==null)break;Pe=be,be=Pe.parentNode}Pe=we}d=U===-1||re===-1?null:{start:U,end:re}}else d=null}d=d||{start:0,end:0}}else d=null;for(u_={focusedElem:l,selectionRange:d},R1=!1,Bn=u;Bn!==null;)if(u=Bn,l=u.child,(u.subtreeFlags&1024)!==0&&l!==null)l.return=u,Bn=l;else for(;Bn!==null;){switch(u=Bn,E=u.alternate,l=u.flags,u.tag){case 0:break;case 11:case 15:break;case 1:if((l&1024)!==0&&E!==null){l=void 0,d=u,b=E.memoizedProps,E=E.memoizedState,v=d.stateNode;try{var dt=Uc(d.type,b,d.elementType===d.type);l=v.getSnapshotBeforeUpdate(dt,E),v.__reactInternalSnapshotBeforeUpdate=l}catch(ot){ur(d,d.return,ot)}}break;case 3:if((l&1024)!==0){if(l=u.stateNode.containerInfo,d=l.nodeType,d===9)d_(l);else if(d===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":d_(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(n(163))}if(l=u.sibling,l!==null){l.return=u.return,Bn=l;break}Bn=u.return}}function Lk(l,u,d){var v=d.flags;switch(d.tag){case 0:case 11:case 15:Ml(l,d),v&4&&Lh(5,d);break;case 1:if(Ml(l,d),v&4)if(l=d.stateNode,u===null)try{l.componentDidMount()}catch(L){ur(d,d.return,L)}else{var b=Uc(d.type,u.memoizedProps);u=u.memoizedState;try{l.componentDidUpdate(b,u,l.__reactInternalSnapshotBeforeUpdate)}catch(L){ur(d,d.return,L)}}v&64&&Dk(d),v&512&&Ih(d,d.return);break;case 3:if(Ml(l,d),v&64&&(l=d.updateQueue,l!==null)){if(u=null,d.child!==null)switch(d.child.tag){case 27:case 5:u=d.child.stateNode;break;case 1:u=d.child.stateNode}try{vO(l,u)}catch(L){ur(d,d.return,L)}}break;case 27:u===null&&v&4&&Nk(d);case 26:case 5:Ml(l,d),u===null&&v&4&&Mk(d),v&512&&Ih(d,d.return);break;case 12:Ml(l,d);break;case 13:Ml(l,d),v&4&&jk(l,d),v&64&&(l=d.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(d=JW.bind(null,d),vq(l,d))));break;case 22:if(v=d.memoizedState!==null||Fo,!v){u=u!==null&&u.memoizedState!==null||Jr,b=Fo;var E=Jr;Fo=v,(Jr=u)&&!E?Rl(l,d,(d.subtreeFlags&8772)!==0):Ml(l,d),Fo=b,Jr=E}break;case 30:break;default:Ml(l,d)}}function Ik(l){var u=l.alternate;u!==null&&(l.alternate=null,Ik(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&G(u)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var Er=null,Qi=!1;function Lo(l,u,d){for(d=d.child;d!==null;)Bk(l,u,d),d=d.sibling}function Bk(l,u,d){if(ge&&typeof ge.onCommitFiberUnmount=="function")try{ge.onCommitFiberUnmount(xr,d)}catch{}switch(d.tag){case 26:Jr||Qs(d,u),Lo(l,u,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Jr||Qs(d,u);var v=Er,b=Qi;jl(d.type)&&(Er=d.stateNode,Qi=!1),Lo(l,u,d),qh(d.stateNode),Er=v,Qi=b;break;case 5:Jr||Qs(d,u);case 6:if(v=Er,b=Qi,Er=null,Lo(l,u,d),Er=v,Qi=b,Er!==null)if(Qi)try{(Er.nodeType===9?Er.body:Er.nodeName==="HTML"?Er.ownerDocument.body:Er).removeChild(d.stateNode)}catch(E){ur(d,u,E)}else try{Er.removeChild(d.stateNode)}catch(E){ur(d,u,E)}break;case 18:Er!==null&&(Qi?(l=Er,AD(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,d.stateNode),ed(l)):AD(Er,d.stateNode));break;case 4:v=Er,b=Qi,Er=d.stateNode.containerInfo,Qi=!0,Lo(l,u,d),Er=v,Qi=b;break;case 0:case 11:case 14:case 15:Jr||Pl(2,d,u),Jr||Pl(4,d,u),Lo(l,u,d);break;case 1:Jr||(Qs(d,u),v=d.stateNode,typeof v.componentWillUnmount=="function"&&Pk(d,u,v)),Lo(l,u,d);break;case 21:Lo(l,u,d);break;case 22:Jr=(v=Jr)||d.memoizedState!==null,Lo(l,u,d),Jr=v;break;default:Lo(l,u,d)}}function jk(l,u){if(u.memoizedState===null&&(l=u.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{ed(l)}catch(d){ur(u,u.return,d)}}function WW(l){switch(l.tag){case 13:case 19:var u=l.stateNode;return u===null&&(u=l.stateNode=new Fk),u;case 22:return l=l.stateNode,u=l._retryCache,u===null&&(u=l._retryCache=new Fk),u;default:throw Error(n(435,l.tag))}}function U2(l,u){var d=WW(l);u.forEach(function(v){var b=eq.bind(null,l,v);d.has(v)||(d.add(v),v.then(b,b))})}function va(l,u){var d=u.deletions;if(d!==null)for(var v=0;v<d.length;v++){var b=d[v],E=l,L=u,U=L;e:for(;U!==null;){switch(U.tag){case 27:if(jl(U.type)){Er=U.stateNode,Qi=!1;break e}break;case 5:Er=U.stateNode,Qi=!1;break e;case 3:case 4:Er=U.stateNode.containerInfo,Qi=!0;break e}U=U.return}if(Er===null)throw Error(n(160));Bk(E,L,b),Er=null,Qi=!1,E=b.alternate,E!==null&&(E.return=null),b.return=null}if(u.subtreeFlags&13878)for(u=u.child;u!==null;)Uk(u,l),u=u.sibling}var Ns=null;function Uk(l,u){var d=l.alternate,v=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:va(u,l),xa(l),v&4&&(Pl(3,l,l.return),Lh(3,l),Pl(5,l,l.return));break;case 1:va(u,l),xa(l),v&512&&(Jr||d===null||Qs(d,d.return)),v&64&&Fo&&(l=l.updateQueue,l!==null&&(v=l.callbacks,v!==null&&(d=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=d===null?v:d.concat(v))));break;case 26:var b=Ns;if(va(u,l),xa(l),v&512&&(Jr||d===null||Qs(d,d.return)),v&4){var E=d!==null?d.memoizedState:null;if(v=l.memoizedState,d===null)if(v===null)if(l.stateNode===null){e:{v=l.type,d=l.memoizedProps,b=b.ownerDocument||b;t:switch(v){case"title":E=b.getElementsByTagName("title")[0],(!E||E[W]||E[Ue]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=b.createElement(v),b.head.insertBefore(E,b.querySelector("head > title"))),Qn(E,v,d),E[Ue]=l,fe(E),v=E;break e;case"link":var L=ND("link","href",b).get(v+(d.href||""));if(L){for(var U=0;U<L.length;U++)if(E=L[U],E.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&E.getAttribute("rel")===(d.rel==null?null:d.rel)&&E.getAttribute("title")===(d.title==null?null:d.title)&&E.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){L.splice(U,1);break t}}E=b.createElement(v),Qn(E,v,d),b.head.appendChild(E);break;case"meta":if(L=ND("meta","content",b).get(v+(d.content||""))){for(U=0;U<L.length;U++)if(E=L[U],E.getAttribute("content")===(d.content==null?null:""+d.content)&&E.getAttribute("name")===(d.name==null?null:d.name)&&E.getAttribute("property")===(d.property==null?null:d.property)&&E.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&E.getAttribute("charset")===(d.charSet==null?null:d.charSet)){L.splice(U,1);break t}}E=b.createElement(v),Qn(E,v,d),b.head.appendChild(E);break;default:throw Error(n(468,v))}E[Ue]=l,fe(E),v=E}l.stateNode=v}else FD(b,l.type,l.stateNode);else l.stateNode=RD(b,v,l.memoizedProps);else E!==v?(E===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):E.count--,v===null?FD(b,l.type,l.stateNode):RD(b,v,l.memoizedProps)):v===null&&l.stateNode!==null&&L2(l,l.memoizedProps,d.memoizedProps)}break;case 27:va(u,l),xa(l),v&512&&(Jr||d===null||Qs(d,d.return)),d!==null&&v&4&&L2(l,l.memoizedProps,d.memoizedProps);break;case 5:if(va(u,l),xa(l),v&512&&(Jr||d===null||Qs(d,d.return)),l.flags&32){b=l.stateNode;try{of(b,"")}catch(we){ur(l,l.return,we)}}v&4&&l.stateNode!=null&&(b=l.memoizedProps,L2(l,b,d!==null?d.memoizedProps:b)),v&1024&&(j2=!0);break;case 6:if(va(u,l),xa(l),v&4){if(l.stateNode===null)throw Error(n(162));v=l.memoizedProps,d=l.stateNode;try{d.nodeValue=v}catch(we){ur(l,l.return,we)}}break;case 3:if(D1=null,b=Ns,Ns=O1(u.containerInfo),va(u,l),Ns=b,xa(l),v&4&&d!==null&&d.memoizedState.isDehydrated)try{ed(u.containerInfo)}catch(we){ur(l,l.return,we)}j2&&(j2=!1,zk(l));break;case 4:v=Ns,Ns=O1(l.stateNode.containerInfo),va(u,l),xa(l),Ns=v;break;case 12:va(u,l),xa(l);break;case 13:va(u,l),xa(l),l.child.flags&8192&&l.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(q2=ie()),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,U2(l,v)));break;case 22:b=l.memoizedState!==null;var re=d!==null&&d.memoizedState!==null,ye=Fo,Oe=Jr;if(Fo=ye||b,Jr=Oe||re,va(u,l),Jr=Oe,Fo=ye,xa(l),v&8192)e:for(u=l.stateNode,u._visibility=b?u._visibility&-2:u._visibility|1,b&&(d===null||re||Fo||Jr||zc(l)),d=null,u=l;;){if(u.tag===5||u.tag===26){if(d===null){re=d=u;try{if(E=re.stateNode,b)L=E.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{U=re.stateNode;var Pe=re.memoizedProps.style,be=Pe!=null&&Pe.hasOwnProperty("display")?Pe.display:null;U.style.display=be==null||typeof be=="boolean"?"":(""+be).trim()}}catch(we){ur(re,re.return,we)}}}else if(u.tag===6){if(d===null){re=u;try{re.stateNode.nodeValue=b?"":re.memoizedProps}catch(we){ur(re,re.return,we)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===l)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break e;for(;u.sibling===null;){if(u.return===null||u.return===l)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}v&4&&(v=l.updateQueue,v!==null&&(d=v.retryQueue,d!==null&&(v.retryQueue=null,U2(l,d))));break;case 19:va(u,l),xa(l),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,U2(l,v)));break;case 30:break;case 21:break;default:va(u,l),xa(l)}}function xa(l){var u=l.flags;if(u&2){try{for(var d,v=l.return;v!==null;){if(Rk(v)){d=v;break}v=v.return}if(d==null)throw Error(n(160));switch(d.tag){case 27:var b=d.stateNode,E=I2(l);m1(l,E,b);break;case 5:var L=d.stateNode;d.flags&32&&(of(L,""),d.flags&=-33);var U=I2(l);m1(l,U,L);break;case 3:case 4:var re=d.stateNode.containerInfo,ye=I2(l);B2(l,ye,re);break;default:throw Error(n(161))}}catch(Oe){ur(l,l.return,Oe)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function zk(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var u=l;zk(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),l=l.sibling}}function Ml(l,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)Lk(l,u.alternate,u),u=u.sibling}function zc(l){for(l=l.child;l!==null;){var u=l;switch(u.tag){case 0:case 11:case 14:case 15:Pl(4,u,u.return),zc(u);break;case 1:Qs(u,u.return);var d=u.stateNode;typeof d.componentWillUnmount=="function"&&Pk(u,u.return,d),zc(u);break;case 27:qh(u.stateNode);case 26:case 5:Qs(u,u.return),zc(u);break;case 22:u.memoizedState===null&&zc(u);break;case 30:zc(u);break;default:zc(u)}l=l.sibling}}function Rl(l,u,d){for(d=d&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var v=u.alternate,b=l,E=u,L=E.flags;switch(E.tag){case 0:case 11:case 15:Rl(b,E,d),Lh(4,E);break;case 1:if(Rl(b,E,d),v=E,b=v.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(ye){ur(v,v.return,ye)}if(v=E,b=v.updateQueue,b!==null){var U=v.stateNode;try{var re=b.shared.hiddenCallbacks;if(re!==null)for(b.shared.hiddenCallbacks=null,b=0;b<re.length;b++)gO(re[b],U)}catch(ye){ur(v,v.return,ye)}}d&&L&64&&Dk(E),Ih(E,E.return);break;case 27:Nk(E);case 26:case 5:Rl(b,E,d),d&&v===null&&L&4&&Mk(E),Ih(E,E.return);break;case 12:Rl(b,E,d);break;case 13:Rl(b,E,d),d&&L&4&&jk(b,E);break;case 22:E.memoizedState===null&&Rl(b,E,d),Ih(E,E.return);break;case 30:break;default:Rl(b,E,d)}u=u.sibling}}function z2(l,u){var d=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),l=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(l=u.memoizedState.cachePool.pool),l!==d&&(l!=null&&l.refCount++,d!=null&&wh(d))}function V2(l,u){l=null,u.alternate!==null&&(l=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==l&&(u.refCount++,l!=null&&wh(l))}function Js(l,u,d,v){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)Vk(l,u,d,v),u=u.sibling}function Vk(l,u,d,v){var b=u.flags;switch(u.tag){case 0:case 11:case 15:Js(l,u,d,v),b&2048&&Lh(9,u);break;case 1:Js(l,u,d,v);break;case 3:Js(l,u,d,v),b&2048&&(l=null,u.alternate!==null&&(l=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==l&&(u.refCount++,l!=null&&wh(l)));break;case 12:if(b&2048){Js(l,u,d,v),l=u.stateNode;try{var E=u.memoizedProps,L=E.id,U=E.onPostCommit;typeof U=="function"&&U(L,u.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(re){ur(u,u.return,re)}}else Js(l,u,d,v);break;case 13:Js(l,u,d,v);break;case 23:break;case 22:E=u.stateNode,L=u.alternate,u.memoizedState!==null?E._visibility&2?Js(l,u,d,v):Bh(l,u):E._visibility&2?Js(l,u,d,v):(E._visibility|=2,Af(l,u,d,v,(u.subtreeFlags&10256)!==0)),b&2048&&z2(L,u);break;case 24:Js(l,u,d,v),b&2048&&V2(u.alternate,u);break;default:Js(l,u,d,v)}}function Af(l,u,d,v,b){for(b=b&&(u.subtreeFlags&10256)!==0,u=u.child;u!==null;){var E=l,L=u,U=d,re=v,ye=L.flags;switch(L.tag){case 0:case 11:case 15:Af(E,L,U,re,b),Lh(8,L);break;case 23:break;case 22:var Oe=L.stateNode;L.memoizedState!==null?Oe._visibility&2?Af(E,L,U,re,b):Bh(E,L):(Oe._visibility|=2,Af(E,L,U,re,b)),b&&ye&2048&&z2(L.alternate,L);break;case 24:Af(E,L,U,re,b),b&&ye&2048&&V2(L.alternate,L);break;default:Af(E,L,U,re,b)}u=u.sibling}}function Bh(l,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var d=l,v=u,b=v.flags;switch(v.tag){case 22:Bh(d,v),b&2048&&z2(v.alternate,v);break;case 24:Bh(d,v),b&2048&&V2(v.alternate,v);break;default:Bh(d,v)}u=u.sibling}}var jh=8192;function Cf(l){if(l.subtreeFlags&jh)for(l=l.child;l!==null;)Hk(l),l=l.sibling}function Hk(l){switch(l.tag){case 26:Cf(l),l.flags&jh&&l.memoizedState!==null&&Dq(Ns,l.memoizedState,l.memoizedProps);break;case 5:Cf(l);break;case 3:case 4:var u=Ns;Ns=O1(l.stateNode.containerInfo),Cf(l),Ns=u;break;case 22:l.memoizedState===null&&(u=l.alternate,u!==null&&u.memoizedState!==null?(u=jh,jh=16777216,Cf(l),jh=u):Cf(l));break;default:Cf(l)}}function $k(l){var u=l.alternate;if(u!==null&&(l=u.child,l!==null)){u.child=null;do u=l.sibling,l.sibling=null,l=u;while(l!==null)}}function Uh(l){var u=l.deletions;if((l.flags&16)!==0){if(u!==null)for(var d=0;d<u.length;d++){var v=u[d];Bn=v,qk(v,l)}$k(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Wk(l),l=l.sibling}function Wk(l){switch(l.tag){case 0:case 11:case 15:Uh(l),l.flags&2048&&Pl(9,l,l.return);break;case 3:Uh(l);break;case 12:Uh(l);break;case 22:var u=l.stateNode;l.memoizedState!==null&&u._visibility&2&&(l.return===null||l.return.tag!==13)?(u._visibility&=-3,g1(l)):Uh(l);break;default:Uh(l)}}function g1(l){var u=l.deletions;if((l.flags&16)!==0){if(u!==null)for(var d=0;d<u.length;d++){var v=u[d];Bn=v,qk(v,l)}$k(l)}for(l=l.child;l!==null;){switch(u=l,u.tag){case 0:case 11:case 15:Pl(8,u,u.return),g1(u);break;case 22:d=u.stateNode,d._visibility&2&&(d._visibility&=-3,g1(u));break;default:g1(u)}l=l.sibling}}function qk(l,u){for(;Bn!==null;){var d=Bn;switch(d.tag){case 0:case 11:case 15:Pl(8,d,u);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var v=d.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:wh(d.memoizedState.cache)}if(v=d.child,v!==null)v.return=d,Bn=v;else e:for(d=l;Bn!==null;){v=Bn;var b=v.sibling,E=v.return;if(Ik(v),v===d){Bn=null;break e}if(b!==null){b.return=E,Bn=b;break e}Bn=E}}}var qW={getCacheForType:function(l){var u=ui(En),d=u.data.get(l);return d===void 0&&(d=l(),u.data.set(l,d)),d}},GW=typeof WeakMap=="function"?WeakMap:Map,Zt=0,pr=null,Nt=null,jt=0,Qt=0,ya=null,Nl=!1,Of=!1,H2=!1,Io=0,Hr=0,Fl=0,Vc=0,$2=0,es=0,kf=0,zh=null,Ji=null,W2=!1,q2=0,v1=1/0,x1=null,Ll=null,Zn=0,Il=null,Df=null,Pf=0,G2=0,X2=null,Gk=null,Vh=0,Y2=null;function _a(){if((Zt&2)!==0&&jt!==0)return jt&-jt;if(Q.T!==null){var l=xf;return l!==0?l:r_()}return gt()}function Xk(){es===0&&(es=(jt&536870912)===0||qt?xt():536870912);var l=Ja.current;return l!==null&&(l.flags|=32),es}function ba(l,u,d){(l===pr&&(Qt===2||Qt===9)||l.cancelPendingCommit!==null)&&(Mf(l,0),Bl(l,jt,es,!1)),Ur(l,d),((Zt&2)===0||l!==pr)&&(l===pr&&((Zt&2)===0&&(Vc|=d),Hr===4&&Bl(l,jt,es,!1)),eo(l))}function Yk(l,u,d){if((Zt&6)!==0)throw Error(n(327));var v=!d&&(u&124)===0&&(u&l.expiredLanes)===0||un(l,u),b=v?KW(l,u):Q2(l,u,!0),E=v;do{if(b===0){Of&&!v&&Bl(l,u,0,!1);break}else{if(d=l.current.alternate,E&&!XW(d)){b=Q2(l,u,!1),E=!1;continue}if(b===2){if(E=u,l.errorRecoveryDisabledLanes&E)var L=0;else L=l.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){u=L;e:{var U=l;b=zh;var re=U.current.memoizedState.isDehydrated;if(re&&(Mf(U,L).flags|=256),L=Q2(U,L,!1),L!==2){if(H2&&!re){U.errorRecoveryDisabledLanes|=E,Vc|=E,b=4;break e}E=Ji,Ji=b,E!==null&&(Ji===null?Ji=E:Ji.push.apply(Ji,E))}b=L}if(E=!1,b!==2)continue}}if(b===1){Mf(l,0),Bl(l,u,0,!0);break}e:{switch(v=l,E=b,E){case 0:case 1:throw Error(n(345));case 4:if((u&4194048)!==u)break;case 6:Bl(v,u,es,!Nl);break e;case 2:Ji=null;break;case 3:case 5:break;default:throw Error(n(329))}if((u&62914560)===u&&(b=q2+300-ie(),10<b)){if(Bl(v,u,es,!Nl),cn(v,0,!0)!==0)break e;v.timeoutHandle=ED(Kk.bind(null,v,d,Ji,x1,W2,u,es,Vc,kf,Nl,E,2,-0,0),b);break e}Kk(v,d,Ji,x1,W2,u,es,Vc,kf,Nl,E,0,-0,0)}}break}while(!0);eo(l)}function Kk(l,u,d,v,b,E,L,U,re,ye,Oe,Pe,be,we){if(l.timeoutHandle=-1,Pe=u.subtreeFlags,(Pe&8192||(Pe&16785408)===16785408)&&(Yh={stylesheets:null,count:0,unsuspend:kq},Hk(u),Pe=Pq(),Pe!==null)){l.cancelPendingCommit=Pe(nD.bind(null,l,u,E,d,v,b,L,U,re,Oe,1,be,we)),Bl(l,E,L,!ye);return}nD(l,u,E,d,v,b,L,U,re)}function XW(l){for(var u=l;;){var d=u.tag;if((d===0||d===11||d===15)&&u.flags&16384&&(d=u.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var v=0;v<d.length;v++){var b=d[v],E=b.getSnapshot;b=b.value;try{if(!ma(E(),b))return!1}catch{return!1}}if(d=u.child,u.subtreeFlags&16384&&d!==null)d.return=u,u=d;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Bl(l,u,d,v){u&=~$2,u&=~Vc,l.suspendedLanes|=u,l.pingedLanes&=~u,v&&(l.warmLanes|=u),v=l.expirationTimes;for(var b=u;0<b;){var E=31-Re(b),L=1<<E;v[E]=-1,b&=~L}d!==0&&Yi(l,d,u)}function y1(){return(Zt&6)===0?(Hh(0),!1):!0}function K2(){if(Nt!==null){if(Qt===0)var l=Nt.return;else l=Nt,ko=Lc=null,d2(l),Ef=null,Rh=0,l=Nt;for(;l!==null;)kk(l.alternate,l),l=l.return;Nt=null}}function Mf(l,u){var d=l.timeoutHandle;d!==-1&&(l.timeoutHandle=-1,hq(d)),d=l.cancelPendingCommit,d!==null&&(l.cancelPendingCommit=null,d()),K2(),pr=l,Nt=d=Ao(l.current,null),jt=u,Qt=0,ya=null,Nl=!1,Of=un(l,u),H2=!1,kf=es=$2=Vc=Fl=Hr=0,Ji=zh=null,W2=!1,(u&8)!==0&&(u|=u&32);var v=l.entangledLanes;if(v!==0)for(l=l.entanglements,v&=u;0<v;){var b=31-Re(v),E=1<<b;u|=l[b],v&=~E}return Io=u,zm(),d}function Zk(l,u){Ct=null,Q.H=s1,u===Eh||u===Km?(u=pO(),Qt=3):u===fO?(u=pO(),Qt=4):Qt=u===mk?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,ya=u,Nt===null&&(Hr=1,f1(l,Ya(u,l.current)))}function Qk(){var l=Q.H;return Q.H=s1,l===null?s1:l}function Jk(){var l=Q.A;return Q.A=qW,l}function Z2(){Hr=4,Nl||(jt&4194048)!==jt&&Ja.current!==null||(Of=!0),(Fl&134217727)===0&&(Vc&134217727)===0||pr===null||Bl(pr,jt,es,!1)}function Q2(l,u,d){var v=Zt;Zt|=2;var b=Qk(),E=Jk();(pr!==l||jt!==u)&&(x1=null,Mf(l,u)),u=!1;var L=Hr;e:do try{if(Qt!==0&&Nt!==null){var U=Nt,re=ya;switch(Qt){case 8:K2(),L=6;break e;case 3:case 2:case 9:case 6:Ja.current===null&&(u=!0);var ye=Qt;if(Qt=0,ya=null,Rf(l,U,re,ye),d&&Of){L=0;break e}break;default:ye=Qt,Qt=0,ya=null,Rf(l,U,re,ye)}}YW(),L=Hr;break}catch(Oe){Zk(l,Oe)}while(!0);return u&&l.shellSuspendCounter++,ko=Lc=null,Zt=v,Q.H=b,Q.A=E,Nt===null&&(pr=null,jt=0,zm()),L}function YW(){for(;Nt!==null;)eD(Nt)}function KW(l,u){var d=Zt;Zt|=2;var v=Qk(),b=Jk();pr!==l||jt!==u?(x1=null,v1=ie()+500,Mf(l,u)):Of=un(l,u);e:do try{if(Qt!==0&&Nt!==null){u=Nt;var E=ya;t:switch(Qt){case 1:Qt=0,ya=null,Rf(l,u,E,1);break;case 2:case 9:if(hO(E)){Qt=0,ya=null,tD(u);break}u=function(){Qt!==2&&Qt!==9||pr!==l||(Qt=7),eo(l)},E.then(u,u);break e;case 3:Qt=7;break e;case 4:Qt=5;break e;case 7:hO(E)?(Qt=0,ya=null,tD(u)):(Qt=0,ya=null,Rf(l,u,E,7));break;case 5:var L=null;switch(Nt.tag){case 26:L=Nt.memoizedState;case 5:case 27:var U=Nt;if(!L||LD(L)){Qt=0,ya=null;var re=U.sibling;if(re!==null)Nt=re;else{var ye=U.return;ye!==null?(Nt=ye,_1(ye)):Nt=null}break t}}Qt=0,ya=null,Rf(l,u,E,5);break;case 6:Qt=0,ya=null,Rf(l,u,E,6);break;case 8:K2(),Hr=6;break e;default:throw Error(n(462))}}ZW();break}catch(Oe){Zk(l,Oe)}while(!0);return ko=Lc=null,Q.H=v,Q.A=b,Zt=d,Nt!==null?0:(pr=null,jt=0,zm(),Hr)}function ZW(){for(;Nt!==null&&!He();)eD(Nt)}function eD(l){var u=Ck(l.alternate,l,Io);l.memoizedProps=l.pendingProps,u===null?_1(l):Nt=u}function tD(l){var u=l,d=u.alternate;switch(u.tag){case 15:case 0:u=bk(d,u,u.pendingProps,u.type,void 0,jt);break;case 11:u=bk(d,u,u.pendingProps,u.type.render,u.ref,jt);break;case 5:d2(u);default:kk(d,u),u=Nt=rO(u,Io),u=Ck(d,u,Io)}l.memoizedProps=l.pendingProps,u===null?_1(l):Nt=u}function Rf(l,u,d,v){ko=Lc=null,d2(u),Ef=null,Rh=0;var b=u.return;try{if(UW(l,b,u,d,jt)){Hr=1,f1(l,Ya(d,l.current)),Nt=null;return}}catch(E){if(b!==null)throw Nt=b,E;Hr=1,f1(l,Ya(d,l.current)),Nt=null;return}u.flags&32768?(qt||v===1?l=!0:Of||(jt&536870912)!==0?l=!1:(Nl=l=!0,(v===2||v===9||v===3||v===6)&&(v=Ja.current,v!==null&&v.tag===13&&(v.flags|=16384))),rD(u,l)):_1(u)}function _1(l){var u=l;do{if((u.flags&32768)!==0){rD(u,Nl);return}l=u.return;var d=VW(u.alternate,u,Io);if(d!==null){Nt=d;return}if(u=u.sibling,u!==null){Nt=u;return}Nt=u=l}while(u!==null);Hr===0&&(Hr=5)}function rD(l,u){do{var d=HW(l.alternate,l);if(d!==null){d.flags&=32767,Nt=d;return}if(d=l.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!u&&(l=l.sibling,l!==null)){Nt=l;return}Nt=l=d}while(l!==null);Hr=6,Nt=null}function nD(l,u,d,v,b,E,L,U,re){l.cancelPendingCommit=null;do b1();while(Zn!==0);if((Zt&6)!==0)throw Error(n(327));if(u!==null){if(u===l.current)throw Error(n(177));if(E=u.lanes|u.childLanes,E|=Vy,Zr(l,d,E,L,U,re),l===pr&&(Nt=pr=null,jt=0),Df=u,Il=l,Pf=d,G2=E,X2=b,Gk=v,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,tq(Tt,function(){return lD(),null})):(l.callbackNode=null,l.callbackPriority=0),v=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||v){v=Q.T,Q.T=null,b=ee.p,ee.p=2,L=Zt,Zt|=4;try{$W(l,u,d)}finally{Zt=L,ee.p=b,Q.T=v}}Zn=1,iD(),aD(),sD()}}function iD(){if(Zn===1){Zn=0;var l=Il,u=Df,d=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||d){d=Q.T,Q.T=null;var v=ee.p;ee.p=2;var b=Zt;Zt|=4;try{Uk(u,l);var E=u_,L=qC(l.containerInfo),U=E.focusedElem,re=E.selectionRange;if(L!==U&&U&&U.ownerDocument&&WC(U.ownerDocument.documentElement,U)){if(re!==null&&Iy(U)){var ye=re.start,Oe=re.end;if(Oe===void 0&&(Oe=ye),"selectionStart"in U)U.selectionStart=ye,U.selectionEnd=Math.min(Oe,U.value.length);else{var Pe=U.ownerDocument||document,be=Pe&&Pe.defaultView||window;if(be.getSelection){var we=be.getSelection(),dt=U.textContent.length,ot=Math.min(re.start,dt),sr=re.end===void 0?ot:Math.min(re.end,dt);!we.extend&&ot>sr&&(L=sr,sr=ot,ot=L);var he=$C(U,ot),oe=$C(U,sr);if(he&&oe&&(we.rangeCount!==1||we.anchorNode!==he.node||we.anchorOffset!==he.offset||we.focusNode!==oe.node||we.focusOffset!==oe.offset)){var me=Pe.createRange();me.setStart(he.node,he.offset),we.removeAllRanges(),ot>sr?(we.addRange(me),we.extend(oe.node,oe.offset)):(me.setEnd(oe.node,oe.offset),we.addRange(me))}}}}for(Pe=[],we=U;we=we.parentNode;)we.nodeType===1&&Pe.push({element:we,left:we.scrollLeft,top:we.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<Pe.length;U++){var De=Pe[U];De.element.scrollLeft=De.left,De.element.scrollTop=De.top}}R1=!!c_,u_=c_=null}finally{Zt=b,ee.p=v,Q.T=d}}l.current=u,Zn=2}}function aD(){if(Zn===2){Zn=0;var l=Il,u=Df,d=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||d){d=Q.T,Q.T=null;var v=ee.p;ee.p=2;var b=Zt;Zt|=4;try{Lk(l,u.alternate,u)}finally{Zt=b,ee.p=v,Q.T=d}}Zn=3}}function sD(){if(Zn===4||Zn===3){Zn=0,Xe();var l=Il,u=Df,d=Pf,v=Gk;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?Zn=5:(Zn=0,Df=Il=null,oD(l,l.pendingLanes));var b=l.pendingLanes;if(b===0&&(Ll=null),Ri(d),u=u.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(xr,u,void 0,(u.current.flags&128)===128)}catch{}if(v!==null){u=Q.T,b=ee.p,ee.p=2,Q.T=null;try{for(var E=l.onRecoverableError,L=0;L<v.length;L++){var U=v[L];E(U.value,{componentStack:U.stack})}}finally{Q.T=u,ee.p=b}}(Pf&3)!==0&&b1(),eo(l),b=l.pendingLanes,(d&4194090)!==0&&(b&42)!==0?l===Y2?Vh++:(Vh=0,Y2=l):Vh=0,Hh(0)}}function oD(l,u){(l.pooledCacheLanes&=u)===0&&(u=l.pooledCache,u!=null&&(l.pooledCache=null,wh(u)))}function b1(l){return iD(),aD(),sD(),lD()}function lD(){if(Zn!==5)return!1;var l=Il,u=G2;G2=0;var d=Ri(Pf),v=Q.T,b=ee.p;try{ee.p=32>d?32:d,Q.T=null,d=X2,X2=null;var E=Il,L=Pf;if(Zn=0,Df=Il=null,Pf=0,(Zt&6)!==0)throw Error(n(331));var U=Zt;if(Zt|=4,Wk(E.current),Vk(E,E.current,L,d),Zt=U,Hh(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(xr,E)}catch{}return!0}finally{ee.p=b,Q.T=v,oD(l,u)}}function cD(l,u,d){u=Ya(d,u),u=C2(l.stateNode,u,2),l=Cl(l,u,2),l!==null&&(Ur(l,2),eo(l))}function ur(l,u,d){if(l.tag===3)cD(l,l,d);else for(;u!==null;){if(u.tag===3){cD(u,l,d);break}else if(u.tag===1){var v=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Ll===null||!Ll.has(v))){l=Ya(d,l),d=dk(2),v=Cl(u,d,2),v!==null&&(pk(d,v,u,l),Ur(v,2),eo(v));break}}u=u.return}}function J2(l,u,d){var v=l.pingCache;if(v===null){v=l.pingCache=new GW;var b=new Set;v.set(u,b)}else b=v.get(u),b===void 0&&(b=new Set,v.set(u,b));b.has(d)||(H2=!0,b.add(d),l=QW.bind(null,l,u,d),u.then(l,l))}function QW(l,u,d){var v=l.pingCache;v!==null&&v.delete(u),l.pingedLanes|=l.suspendedLanes&d,l.warmLanes&=~d,pr===l&&(jt&d)===d&&(Hr===4||Hr===3&&(jt&62914560)===jt&&300>ie()-q2?(Zt&2)===0&&Mf(l,0):$2|=d,kf===jt&&(kf=0)),eo(l)}function uD(l,u){u===0&&(u=Mi()),l=pf(l,u),l!==null&&(Ur(l,u),eo(l))}function JW(l){var u=l.memoizedState,d=0;u!==null&&(d=u.retryLane),uD(l,d)}function eq(l,u){var d=0;switch(l.tag){case 13:var v=l.stateNode,b=l.memoizedState;b!==null&&(d=b.retryLane);break;case 19:v=l.stateNode;break;case 22:v=l.stateNode._retryCache;break;default:throw Error(n(314))}v!==null&&v.delete(u),uD(l,d)}function tq(l,u){return ze(l,u)}var w1=null,Nf=null,e_=!1,S1=!1,t_=!1,Hc=0;function eo(l){l!==Nf&&l.next===null&&(Nf===null?w1=Nf=l:Nf=Nf.next=l),S1=!0,e_||(e_=!0,nq())}function Hh(l,u){if(!t_&&S1){t_=!0;do for(var d=!1,v=w1;v!==null;){if(l!==0){var b=v.pendingLanes;if(b===0)var E=0;else{var L=v.suspendedLanes,U=v.pingedLanes;E=(1<<31-Re(42|l)+1)-1,E&=b&~(L&~U),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(d=!0,pD(v,E))}else E=jt,E=cn(v,v===pr?E:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(E&3)===0||un(v,E)||(d=!0,pD(v,E));v=v.next}while(d);t_=!1}}function rq(){fD()}function fD(){S1=e_=!1;var l=0;Hc!==0&&(fq()&&(l=Hc),Hc=0);for(var u=ie(),d=null,v=w1;v!==null;){var b=v.next,E=hD(v,u);E===0?(v.next=null,d===null?w1=b:d.next=b,b===null&&(Nf=d)):(d=v,(l!==0||(E&3)!==0)&&(S1=!0)),v=b}Hh(l)}function hD(l,u){for(var d=l.suspendedLanes,v=l.pingedLanes,b=l.expirationTimes,E=l.pendingLanes&-62914561;0<E;){var L=31-Re(E),U=1<<L,re=b[L];re===-1?((U&d)===0||(U&v)!==0)&&(b[L]=Xi(U,u)):re<=u&&(l.expiredLanes|=U),E&=~U}if(u=pr,d=jt,d=cn(l,l===u?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v=l.callbackNode,d===0||l===u&&(Qt===2||Qt===9)||l.cancelPendingCommit!==null)return v!==null&&v!==null&&Le(v),l.callbackNode=null,l.callbackPriority=0;if((d&3)===0||un(l,d)){if(u=d&-d,u===l.callbackPriority)return u;switch(v!==null&&Le(v),Ri(d)){case 2:case 8:d=Sr;break;case 32:d=Tt;break;case 268435456:d=Dr;break;default:d=Tt}return v=dD.bind(null,l),d=ze(d,v),l.callbackPriority=u,l.callbackNode=d,u}return v!==null&&v!==null&&Le(v),l.callbackPriority=2,l.callbackNode=null,2}function dD(l,u){if(Zn!==0&&Zn!==5)return l.callbackNode=null,l.callbackPriority=0,null;var d=l.callbackNode;if(b1()&&l.callbackNode!==d)return null;var v=jt;return v=cn(l,l===pr?v:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v===0?null:(Yk(l,v,u),hD(l,ie()),l.callbackNode!=null&&l.callbackNode===d?dD.bind(null,l):null)}function pD(l,u){if(b1())return null;Yk(l,u,!0)}function nq(){dq(function(){(Zt&6)!==0?ze(Yt,rq):fD()})}function r_(){return Hc===0&&(Hc=xt()),Hc}function mD(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Nm(""+l)}function gD(l,u){var d=u.ownerDocument.createElement("input");return d.name=u.name,d.value=u.value,l.id&&d.setAttribute("form",l.id),u.parentNode.insertBefore(d,u),l=new FormData(l),d.parentNode.removeChild(d),l}function iq(l,u,d,v,b){if(u==="submit"&&d&&d.stateNode===b){var E=mD((b[et]||null).action),L=v.submitter;L&&(u=(u=L[et]||null)?mD(u.formAction):L.getAttribute("formAction"),u!==null&&(E=u,L=null));var U=new Bm("action","action",null,v,b);l.push({event:U,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Hc!==0){var re=L?gD(b,L):new FormData(b);w2(d,{pending:!0,data:re,method:b.method,action:E},null,re)}}else typeof E=="function"&&(U.preventDefault(),re=L?gD(b,L):new FormData(b),w2(d,{pending:!0,data:re,method:b.method,action:E},E,re))},currentTarget:b}]})}}for(var n_=0;n_<zy.length;n_++){var i_=zy[n_],aq=i_.toLowerCase(),sq=i_[0].toUpperCase()+i_.slice(1);Rs(aq,"on"+sq)}Rs(YC,"onAnimationEnd"),Rs(KC,"onAnimationIteration"),Rs(ZC,"onAnimationStart"),Rs("dblclick","onDoubleClick"),Rs("focusin","onFocus"),Rs("focusout","onBlur"),Rs(SW,"onTransitionRun"),Rs(EW,"onTransitionStart"),Rs(TW,"onTransitionCancel"),Rs(QC,"onTransitionEnd"),Fe("onMouseEnter",["mouseout","mouseover"]),Fe("onMouseLeave",["mouseout","mouseover"]),Fe("onPointerEnter",["pointerout","pointerover"]),Fe("onPointerLeave",["pointerout","pointerover"]),ke("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ke("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ke("onBeforeInput",["compositionend","keypress","textInput","paste"]),ke("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ke("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ke("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $h="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),oq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($h));function vD(l,u){u=(u&4)!==0;for(var d=0;d<l.length;d++){var v=l[d],b=v.event;v=v.listeners;e:{var E=void 0;if(u)for(var L=v.length-1;0<=L;L--){var U=v[L],re=U.instance,ye=U.currentTarget;if(U=U.listener,re!==E&&b.isPropagationStopped())break e;E=U,b.currentTarget=ye;try{E(b)}catch(Oe){u1(Oe)}b.currentTarget=null,E=re}else for(L=0;L<v.length;L++){if(U=v[L],re=U.instance,ye=U.currentTarget,U=U.listener,re!==E&&b.isPropagationStopped())break e;E=U,b.currentTarget=ye;try{E(b)}catch(Oe){u1(Oe)}b.currentTarget=null,E=re}}}}function Ft(l,u){var d=u[ft];d===void 0&&(d=u[ft]=new Set);var v=l+"__bubble";d.has(v)||(xD(u,l,2,!1),d.add(v))}function a_(l,u,d){var v=0;u&&(v|=4),xD(d,l,v,u)}var E1="_reactListening"+Math.random().toString(36).slice(2);function s_(l){if(!l[E1]){l[E1]=!0,ve.forEach(function(d){d!=="selectionchange"&&(oq.has(d)||a_(d,!1,l),a_(d,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[E1]||(u[E1]=!0,a_("selectionchange",!1,u))}}function xD(l,u,d,v){switch(VD(u)){case 2:var b=Nq;break;case 8:b=Fq;break;default:b=__}d=b.bind(null,u,d,l),b=void 0,!Oy||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(b=!0),v?b!==void 0?l.addEventListener(u,d,{capture:!0,passive:b}):l.addEventListener(u,d,!0):b!==void 0?l.addEventListener(u,d,{passive:b}):l.addEventListener(u,d,!1)}function o_(l,u,d,v,b){var E=v;if((u&1)===0&&(u&2)===0&&v!==null)e:for(;;){if(v===null)return;var L=v.tag;if(L===3||L===4){var U=v.stateNode.containerInfo;if(U===b)break;if(L===4)for(L=v.return;L!==null;){var re=L.tag;if((re===3||re===4)&&L.stateNode.containerInfo===b)return;L=L.return}for(;U!==null;){if(L=Y(U),L===null)return;if(re=L.tag,re===5||re===6||re===26||re===27){v=E=L;continue e}U=U.parentNode}}v=v.return}TC(function(){var ye=E,Oe=Ay(d),Pe=[];e:{var be=JC.get(l);if(be!==void 0){var we=Bm,dt=l;switch(l){case"keypress":if(Lm(d)===0)break e;case"keydown":case"keyup":we=tW;break;case"focusin":dt="focus",we=My;break;case"focusout":dt="blur",we=My;break;case"beforeblur":case"afterblur":we=My;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=OC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=H$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=iW;break;case YC:case KC:case ZC:we=q$;break;case QC:we=sW;break;case"scroll":case"scrollend":we=z$;break;case"wheel":we=lW;break;case"copy":case"cut":case"paste":we=X$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=DC;break;case"toggle":case"beforetoggle":we=uW}var ot=(u&4)!==0,sr=!ot&&(l==="scroll"||l==="scrollend"),he=ot?be!==null?be+"Capture":null:be;ot=[];for(var oe=ye,me;oe!==null;){var De=oe;if(me=De.stateNode,De=De.tag,De!==5&&De!==26&&De!==27||me===null||he===null||(De=ch(oe,he),De!=null&&ot.push(Wh(oe,De,me))),sr)break;oe=oe.return}0<ot.length&&(be=new we(be,dt,null,d,Oe),Pe.push({event:be,listeners:ot}))}}if((u&7)===0){e:{if(be=l==="mouseover"||l==="pointerover",we=l==="mouseout"||l==="pointerout",be&&d!==Ty&&(dt=d.relatedTarget||d.fromElement)&&(Y(dt)||dt[tt]))break e;if((we||be)&&(be=Oe.window===Oe?Oe:(be=Oe.ownerDocument)?be.defaultView||be.parentWindow:window,we?(dt=d.relatedTarget||d.toElement,we=ye,dt=dt?Y(dt):null,dt!==null&&(sr=a(dt),ot=dt.tag,dt!==sr||ot!==5&&ot!==27&&ot!==6)&&(dt=null)):(we=null,dt=ye),we!==dt)){if(ot=OC,De="onMouseLeave",he="onMouseEnter",oe="mouse",(l==="pointerout"||l==="pointerover")&&(ot=DC,De="onPointerLeave",he="onPointerEnter",oe="pointer"),sr=we==null?be:de(we),me=dt==null?be:de(dt),be=new ot(De,oe+"leave",we,d,Oe),be.target=sr,be.relatedTarget=me,De=null,Y(Oe)===ye&&(ot=new ot(he,oe+"enter",dt,d,Oe),ot.target=me,ot.relatedTarget=sr,De=ot),sr=De,we&&dt)t:{for(ot=we,he=dt,oe=0,me=ot;me;me=Ff(me))oe++;for(me=0,De=he;De;De=Ff(De))me++;for(;0<oe-me;)ot=Ff(ot),oe--;for(;0<me-oe;)he=Ff(he),me--;for(;oe--;){if(ot===he||he!==null&&ot===he.alternate)break t;ot=Ff(ot),he=Ff(he)}ot=null}else ot=null;we!==null&&yD(Pe,be,we,ot,!1),dt!==null&&sr!==null&&yD(Pe,sr,dt,ot,!0)}}e:{if(be=ye?de(ye):window,we=be.nodeName&&be.nodeName.toLowerCase(),we==="select"||we==="input"&&be.type==="file")var Je=BC;else if(LC(be))if(jC)Je=_W;else{Je=xW;var Dt=vW}else we=be.nodeName,!we||we.toLowerCase()!=="input"||be.type!=="checkbox"&&be.type!=="radio"?ye&&Ey(ye.elementType)&&(Je=BC):Je=yW;if(Je&&(Je=Je(l,ye))){IC(Pe,Je,d,Oe);break e}Dt&&Dt(l,be,ye),l==="focusout"&&ye&&be.type==="number"&&ye.memoizedProps.value!=null&&Sy(be,"number",be.value)}switch(Dt=ye?de(ye):window,l){case"focusin":(LC(Dt)||Dt.contentEditable==="true")&&(ff=Dt,By=ye,vh=null);break;case"focusout":vh=By=ff=null;break;case"mousedown":jy=!0;break;case"contextmenu":case"mouseup":case"dragend":jy=!1,GC(Pe,d,Oe);break;case"selectionchange":if(wW)break;case"keydown":case"keyup":GC(Pe,d,Oe)}var nt;if(Ny)e:{switch(l){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else uf?NC(l,d)&&(lt="onCompositionEnd"):l==="keydown"&&d.keyCode===229&&(lt="onCompositionStart");lt&&(PC&&d.locale!=="ko"&&(uf||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&uf&&(nt=AC()):(Sl=Oe,ky="value"in Sl?Sl.value:Sl.textContent,uf=!0)),Dt=T1(ye,lt),0<Dt.length&&(lt=new kC(lt,l,null,d,Oe),Pe.push({event:lt,listeners:Dt}),nt?lt.data=nt:(nt=FC(d),nt!==null&&(lt.data=nt)))),(nt=hW?dW(l,d):pW(l,d))&&(lt=T1(ye,"onBeforeInput"),0<lt.length&&(Dt=new kC("onBeforeInput","beforeinput",null,d,Oe),Pe.push({event:Dt,listeners:lt}),Dt.data=nt)),iq(Pe,l,ye,d,Oe)}vD(Pe,u)})}function Wh(l,u,d){return{instance:l,listener:u,currentTarget:d}}function T1(l,u){for(var d=u+"Capture",v=[];l!==null;){var b=l,E=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||E===null||(b=ch(l,d),b!=null&&v.unshift(Wh(l,b,E)),b=ch(l,u),b!=null&&v.push(Wh(l,b,E))),l.tag===3)return v;l=l.return}return[]}function Ff(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function yD(l,u,d,v,b){for(var E=u._reactName,L=[];d!==null&&d!==v;){var U=d,re=U.alternate,ye=U.stateNode;if(U=U.tag,re!==null&&re===v)break;U!==5&&U!==26&&U!==27||ye===null||(re=ye,b?(ye=ch(d,E),ye!=null&&L.unshift(Wh(d,ye,re))):b||(ye=ch(d,E),ye!=null&&L.push(Wh(d,ye,re)))),d=d.return}L.length!==0&&l.push({event:u,listeners:L})}var lq=/\r\n?/g,cq=/\u0000|\uFFFD/g;function _D(l){return(typeof l=="string"?l:""+l).replace(lq,`
`).replace(cq,"")}function bD(l,u){return u=_D(u),_D(l)===u}function A1(){}function ar(l,u,d,v,b,E){switch(d){case"children":typeof v=="string"?u==="body"||u==="textarea"&&v===""||of(l,v):(typeof v=="number"||typeof v=="bigint")&&u!=="body"&&of(l,""+v);break;case"className":Vt(l,"class",v);break;case"tabIndex":Vt(l,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Vt(l,d,v);break;case"style":SC(l,v,E);break;case"data":if(u!=="object"){Vt(l,"data",v);break}case"src":case"href":if(v===""&&(u!=="a"||d!=="href")){l.removeAttribute(d);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){l.removeAttribute(d);break}v=Nm(""+v),l.setAttribute(d,v);break;case"action":case"formAction":if(typeof v=="function"){l.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(d==="formAction"?(u!=="input"&&ar(l,u,"name",b.name,b,null),ar(l,u,"formEncType",b.formEncType,b,null),ar(l,u,"formMethod",b.formMethod,b,null),ar(l,u,"formTarget",b.formTarget,b,null)):(ar(l,u,"encType",b.encType,b,null),ar(l,u,"method",b.method,b,null),ar(l,u,"target",b.target,b,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){l.removeAttribute(d);break}v=Nm(""+v),l.setAttribute(d,v);break;case"onClick":v!=null&&(l.onclick=A1);break;case"onScroll":v!=null&&Ft("scroll",l);break;case"onScrollEnd":v!=null&&Ft("scrollend",l);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(n(61));if(d=v.__html,d!=null){if(b.children!=null)throw Error(n(60));l.innerHTML=d}}break;case"multiple":l.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":l.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){l.removeAttribute("xlink:href");break}d=Nm(""+v),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(d,""+v):l.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(d,""):l.removeAttribute(d);break;case"capture":case"download":v===!0?l.setAttribute(d,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(d,v):l.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?l.setAttribute(d,v):l.removeAttribute(d);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?l.removeAttribute(d):l.setAttribute(d,v);break;case"popover":Ft("beforetoggle",l),Ft("toggle",l),At(l,"popover",v);break;case"xlinkActuate":Kt(l,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":Kt(l,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":Kt(l,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":Kt(l,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":Kt(l,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":Kt(l,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":Kt(l,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":Kt(l,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":Kt(l,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":At(l,"is",v);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=j$.get(d)||d,At(l,d,v))}}function l_(l,u,d,v,b,E){switch(d){case"style":SC(l,v,E);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(n(61));if(d=v.__html,d!=null){if(b.children!=null)throw Error(n(60));l.innerHTML=d}}break;case"children":typeof v=="string"?of(l,v):(typeof v=="number"||typeof v=="bigint")&&of(l,""+v);break;case"onScroll":v!=null&&Ft("scroll",l);break;case"onScrollEnd":v!=null&&Ft("scrollend",l);break;case"onClick":v!=null&&(l.onclick=A1);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pe.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(b=d.endsWith("Capture"),u=d.slice(2,b?d.length-7:void 0),E=l[et]||null,E=E!=null?E[d]:null,typeof E=="function"&&l.removeEventListener(u,E,b),typeof v=="function")){typeof E!="function"&&E!==null&&(d in l?l[d]=null:l.hasAttribute(d)&&l.removeAttribute(d)),l.addEventListener(u,v,b);break e}d in l?l[d]=v:v===!0?l.setAttribute(d,""):At(l,d,v)}}}function Qn(l,u,d){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ft("error",l),Ft("load",l);var v=!1,b=!1,E;for(E in d)if(d.hasOwnProperty(E)){var L=d[E];if(L!=null)switch(E){case"src":v=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,u));default:ar(l,u,E,L,d,null)}}b&&ar(l,u,"srcSet",d.srcSet,d,null),v&&ar(l,u,"src",d.src,d,null);return;case"input":Ft("invalid",l);var U=E=L=b=null,re=null,ye=null;for(v in d)if(d.hasOwnProperty(v)){var Oe=d[v];if(Oe!=null)switch(v){case"name":b=Oe;break;case"type":L=Oe;break;case"checked":re=Oe;break;case"defaultChecked":ye=Oe;break;case"value":E=Oe;break;case"defaultValue":U=Oe;break;case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(n(137,u));break;default:ar(l,u,v,Oe,d,null)}}yC(l,E,U,re,ye,L,b,!1),Mm(l);return;case"select":Ft("invalid",l),v=L=E=null;for(b in d)if(d.hasOwnProperty(b)&&(U=d[b],U!=null))switch(b){case"value":E=U;break;case"defaultValue":L=U;break;case"multiple":v=U;default:ar(l,u,b,U,d,null)}u=E,d=L,l.multiple=!!v,u!=null?sf(l,!!v,u,!1):d!=null&&sf(l,!!v,d,!0);return;case"textarea":Ft("invalid",l),E=b=v=null;for(L in d)if(d.hasOwnProperty(L)&&(U=d[L],U!=null))switch(L){case"value":v=U;break;case"defaultValue":b=U;break;case"children":E=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(n(91));break;default:ar(l,u,L,U,d,null)}bC(l,v,b,E),Mm(l);return;case"option":for(re in d)if(d.hasOwnProperty(re)&&(v=d[re],v!=null))switch(re){case"selected":l.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ar(l,u,re,v,d,null)}return;case"dialog":Ft("beforetoggle",l),Ft("toggle",l),Ft("cancel",l),Ft("close",l);break;case"iframe":case"object":Ft("load",l);break;case"video":case"audio":for(v=0;v<$h.length;v++)Ft($h[v],l);break;case"image":Ft("error",l),Ft("load",l);break;case"details":Ft("toggle",l);break;case"embed":case"source":case"link":Ft("error",l),Ft("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ye in d)if(d.hasOwnProperty(ye)&&(v=d[ye],v!=null))switch(ye){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,u));default:ar(l,u,ye,v,d,null)}return;default:if(Ey(u)){for(Oe in d)d.hasOwnProperty(Oe)&&(v=d[Oe],v!==void 0&&l_(l,u,Oe,v,d,void 0));return}}for(U in d)d.hasOwnProperty(U)&&(v=d[U],v!=null&&ar(l,u,U,v,d,null))}function uq(l,u,d,v){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,E=null,L=null,U=null,re=null,ye=null,Oe=null;for(we in d){var Pe=d[we];if(d.hasOwnProperty(we)&&Pe!=null)switch(we){case"checked":break;case"value":break;case"defaultValue":re=Pe;default:v.hasOwnProperty(we)||ar(l,u,we,null,v,Pe)}}for(var be in v){var we=v[be];if(Pe=d[be],v.hasOwnProperty(be)&&(we!=null||Pe!=null))switch(be){case"type":E=we;break;case"name":b=we;break;case"checked":ye=we;break;case"defaultChecked":Oe=we;break;case"value":L=we;break;case"defaultValue":U=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(n(137,u));break;default:we!==Pe&&ar(l,u,be,we,v,Pe)}}wy(l,L,U,re,ye,Oe,E,b);return;case"select":we=L=U=be=null;for(E in d)if(re=d[E],d.hasOwnProperty(E)&&re!=null)switch(E){case"value":break;case"multiple":we=re;default:v.hasOwnProperty(E)||ar(l,u,E,null,v,re)}for(b in v)if(E=v[b],re=d[b],v.hasOwnProperty(b)&&(E!=null||re!=null))switch(b){case"value":be=E;break;case"defaultValue":U=E;break;case"multiple":L=E;default:E!==re&&ar(l,u,b,E,v,re)}u=U,d=L,v=we,be!=null?sf(l,!!d,be,!1):!!v!=!!d&&(u!=null?sf(l,!!d,u,!0):sf(l,!!d,d?[]:"",!1));return;case"textarea":we=be=null;for(U in d)if(b=d[U],d.hasOwnProperty(U)&&b!=null&&!v.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:ar(l,u,U,null,v,b)}for(L in v)if(b=v[L],E=d[L],v.hasOwnProperty(L)&&(b!=null||E!=null))switch(L){case"value":be=b;break;case"defaultValue":we=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(n(91));break;default:b!==E&&ar(l,u,L,b,v,E)}_C(l,be,we);return;case"option":for(var dt in d)if(be=d[dt],d.hasOwnProperty(dt)&&be!=null&&!v.hasOwnProperty(dt))switch(dt){case"selected":l.selected=!1;break;default:ar(l,u,dt,null,v,be)}for(re in v)if(be=v[re],we=d[re],v.hasOwnProperty(re)&&be!==we&&(be!=null||we!=null))switch(re){case"selected":l.selected=be&&typeof be!="function"&&typeof be!="symbol";break;default:ar(l,u,re,be,v,we)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ot in d)be=d[ot],d.hasOwnProperty(ot)&&be!=null&&!v.hasOwnProperty(ot)&&ar(l,u,ot,null,v,be);for(ye in v)if(be=v[ye],we=d[ye],v.hasOwnProperty(ye)&&be!==we&&(be!=null||we!=null))switch(ye){case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(n(137,u));break;default:ar(l,u,ye,be,v,we)}return;default:if(Ey(u)){for(var sr in d)be=d[sr],d.hasOwnProperty(sr)&&be!==void 0&&!v.hasOwnProperty(sr)&&l_(l,u,sr,void 0,v,be);for(Oe in v)be=v[Oe],we=d[Oe],!v.hasOwnProperty(Oe)||be===we||be===void 0&&we===void 0||l_(l,u,Oe,be,v,we);return}}for(var he in d)be=d[he],d.hasOwnProperty(he)&&be!=null&&!v.hasOwnProperty(he)&&ar(l,u,he,null,v,be);for(Pe in v)be=v[Pe],we=d[Pe],!v.hasOwnProperty(Pe)||be===we||be==null&&we==null||ar(l,u,Pe,be,v,we)}var c_=null,u_=null;function C1(l){return l.nodeType===9?l:l.ownerDocument}function wD(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function SD(l,u){if(l===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&u==="foreignObject"?0:l}function f_(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var h_=null;function fq(){var l=window.event;return l&&l.type==="popstate"?l===h_?!1:(h_=l,!0):(h_=null,!1)}var ED=typeof setTimeout=="function"?setTimeout:void 0,hq=typeof clearTimeout=="function"?clearTimeout:void 0,TD=typeof Promise=="function"?Promise:void 0,dq=typeof queueMicrotask=="function"?queueMicrotask:typeof TD<"u"?function(l){return TD.resolve(null).then(l).catch(pq)}:ED;function pq(l){setTimeout(function(){throw l})}function jl(l){return l==="head"}function AD(l,u){var d=u,v=0,b=0;do{var E=d.nextSibling;if(l.removeChild(d),E&&E.nodeType===8)if(d=E.data,d==="/$"){if(0<v&&8>v){d=v;var L=l.ownerDocument;if(d&1&&qh(L.documentElement),d&2&&qh(L.body),d&4)for(d=L.head,qh(d),L=d.firstChild;L;){var U=L.nextSibling,re=L.nodeName;L[W]||re==="SCRIPT"||re==="STYLE"||re==="LINK"&&L.rel.toLowerCase()==="stylesheet"||d.removeChild(L),L=U}}if(b===0){l.removeChild(E),ed(u);return}b--}else d==="$"||d==="$?"||d==="$!"?b++:v=d.charCodeAt(0)-48;else v=0;d=E}while(d);ed(u)}function d_(l){var u=l.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var d=u;switch(u=u.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":d_(d),G(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}l.removeChild(d)}}function mq(l,u,d,v){for(;l.nodeType===1;){var b=d;if(l.nodeName.toLowerCase()!==u.toLowerCase()){if(!v&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(v){if(!l[W])switch(u){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(E=l.getAttribute("rel"),E==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(E!==b.rel||l.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||l.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||l.getAttribute("title")!==(b.title==null?null:b.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(E=l.getAttribute("src"),(E!==(b.src==null?null:b.src)||l.getAttribute("type")!==(b.type==null?null:b.type)||l.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&E&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(u==="input"&&l.type==="hidden"){var E=b.name==null?null:""+b.name;if(b.type==="hidden"&&l.getAttribute("name")===E)return l}else return l;if(l=Fs(l.nextSibling),l===null)break}return null}function gq(l,u,d){if(u==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!d||(l=Fs(l.nextSibling),l===null))return null;return l}function p_(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState==="complete"}function vq(l,u){var d=l.ownerDocument;if(l.data!=="$?"||d.readyState==="complete")u();else{var v=function(){u(),d.removeEventListener("DOMContentLoaded",v)};d.addEventListener("DOMContentLoaded",v),l._reactRetry=v}}function Fs(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?"||u==="F!"||u==="F")break;if(u==="/$")return null}}return l}var m_=null;function CD(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var d=l.data;if(d==="$"||d==="$!"||d==="$?"){if(u===0)return l;u--}else d==="/$"&&u++}l=l.previousSibling}return null}function OD(l,u,d){switch(u=C1(d),l){case"html":if(l=u.documentElement,!l)throw Error(n(452));return l;case"head":if(l=u.head,!l)throw Error(n(453));return l;case"body":if(l=u.body,!l)throw Error(n(454));return l;default:throw Error(n(451))}}function qh(l){for(var u=l.attributes;u.length;)l.removeAttributeNode(u[0]);G(l)}var ts=new Map,kD=new Set;function O1(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Bo=ee.d;ee.d={f:xq,r:yq,D:_q,C:bq,L:wq,m:Sq,X:Tq,S:Eq,M:Aq};function xq(){var l=Bo.f(),u=y1();return l||u}function yq(l){var u=Z(l);u!==null&&u.tag===5&&u.type==="form"?YO(u):Bo.r(l)}var Lf=typeof document>"u"?null:document;function DD(l,u,d){var v=Lf;if(v&&typeof u=="string"&&u){var b=Xa(u);b='link[rel="'+l+'"][href="'+b+'"]',typeof d=="string"&&(b+='[crossorigin="'+d+'"]'),kD.has(b)||(kD.add(b),l={rel:l,crossOrigin:d,href:u},v.querySelector(b)===null&&(u=v.createElement("link"),Qn(u,"link",l),fe(u),v.head.appendChild(u)))}}function _q(l){Bo.D(l),DD("dns-prefetch",l,null)}function bq(l,u){Bo.C(l,u),DD("preconnect",l,u)}function wq(l,u,d){Bo.L(l,u,d);var v=Lf;if(v&&l&&u){var b='link[rel="preload"][as="'+Xa(u)+'"]';u==="image"&&d&&d.imageSrcSet?(b+='[imagesrcset="'+Xa(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(b+='[imagesizes="'+Xa(d.imageSizes)+'"]')):b+='[href="'+Xa(l)+'"]';var E=b;switch(u){case"style":E=If(l);break;case"script":E=Bf(l)}ts.has(E)||(l=h({rel:"preload",href:u==="image"&&d&&d.imageSrcSet?void 0:l,as:u},d),ts.set(E,l),v.querySelector(b)!==null||u==="style"&&v.querySelector(Gh(E))||u==="script"&&v.querySelector(Xh(E))||(u=v.createElement("link"),Qn(u,"link",l),fe(u),v.head.appendChild(u)))}}function Sq(l,u){Bo.m(l,u);var d=Lf;if(d&&l){var v=u&&typeof u.as=="string"?u.as:"script",b='link[rel="modulepreload"][as="'+Xa(v)+'"][href="'+Xa(l)+'"]',E=b;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Bf(l)}if(!ts.has(E)&&(l=h({rel:"modulepreload",href:l},u),ts.set(E,l),d.querySelector(b)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Xh(E)))return}v=d.createElement("link"),Qn(v,"link",l),fe(v),d.head.appendChild(v)}}}function Eq(l,u,d){Bo.S(l,u,d);var v=Lf;if(v&&l){var b=_e(v).hoistableStyles,E=If(l);u=u||"default";var L=b.get(E);if(!L){var U={loading:0,preload:null};if(L=v.querySelector(Gh(E)))U.loading=5;else{l=h({rel:"stylesheet",href:l,"data-precedence":u},d),(d=ts.get(E))&&g_(l,d);var re=L=v.createElement("link");fe(re),Qn(re,"link",l),re._p=new Promise(function(ye,Oe){re.onload=ye,re.onerror=Oe}),re.addEventListener("load",function(){U.loading|=1}),re.addEventListener("error",function(){U.loading|=2}),U.loading|=4,k1(L,u,v)}L={type:"stylesheet",instance:L,count:1,state:U},b.set(E,L)}}}function Tq(l,u){Bo.X(l,u);var d=Lf;if(d&&l){var v=_e(d).hoistableScripts,b=Bf(l),E=v.get(b);E||(E=d.querySelector(Xh(b)),E||(l=h({src:l,async:!0},u),(u=ts.get(b))&&v_(l,u),E=d.createElement("script"),fe(E),Qn(E,"link",l),d.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},v.set(b,E))}}function Aq(l,u){Bo.M(l,u);var d=Lf;if(d&&l){var v=_e(d).hoistableScripts,b=Bf(l),E=v.get(b);E||(E=d.querySelector(Xh(b)),E||(l=h({src:l,async:!0,type:"module"},u),(u=ts.get(b))&&v_(l,u),E=d.createElement("script"),fe(E),Qn(E,"link",l),d.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},v.set(b,E))}}function PD(l,u,d,v){var b=(b=ae.current)?O1(b):null;if(!b)throw Error(n(446));switch(l){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(u=If(d.href),d=_e(b).hoistableStyles,v=d.get(u),v||(v={type:"style",instance:null,count:0,state:null},d.set(u,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){l=If(d.href);var E=_e(b).hoistableStyles,L=E.get(l);if(L||(b=b.ownerDocument||b,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(l,L),(E=b.querySelector(Gh(l)))&&!E._p&&(L.instance=E,L.state.loading=5),ts.has(l)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},ts.set(l,d),E||Cq(b,l,d,L.state))),u&&v===null)throw Error(n(528,""));return L}if(u&&v!==null)throw Error(n(529,""));return null;case"script":return u=d.async,d=d.src,typeof d=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=Bf(d),d=_e(b).hoistableScripts,v=d.get(u),v||(v={type:"script",instance:null,count:0,state:null},d.set(u,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,l))}}function If(l){return'href="'+Xa(l)+'"'}function Gh(l){return'link[rel="stylesheet"]['+l+"]"}function MD(l){return h({},l,{"data-precedence":l.precedence,precedence:null})}function Cq(l,u,d,v){l.querySelector('link[rel="preload"][as="style"]['+u+"]")?v.loading=1:(u=l.createElement("link"),v.preload=u,u.addEventListener("load",function(){return v.loading|=1}),u.addEventListener("error",function(){return v.loading|=2}),Qn(u,"link",d),fe(u),l.head.appendChild(u))}function Bf(l){return'[src="'+Xa(l)+'"]'}function Xh(l){return"script[async]"+l}function RD(l,u,d){if(u.count++,u.instance===null)switch(u.type){case"style":var v=l.querySelector('style[data-href~="'+Xa(d.href)+'"]');if(v)return u.instance=v,fe(v),v;var b=h({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return v=(l.ownerDocument||l).createElement("style"),fe(v),Qn(v,"style",b),k1(v,d.precedence,l),u.instance=v;case"stylesheet":b=If(d.href);var E=l.querySelector(Gh(b));if(E)return u.state.loading|=4,u.instance=E,fe(E),E;v=MD(d),(b=ts.get(b))&&g_(v,b),E=(l.ownerDocument||l).createElement("link"),fe(E);var L=E;return L._p=new Promise(function(U,re){L.onload=U,L.onerror=re}),Qn(E,"link",v),u.state.loading|=4,k1(E,d.precedence,l),u.instance=E;case"script":return E=Bf(d.src),(b=l.querySelector(Xh(E)))?(u.instance=b,fe(b),b):(v=d,(b=ts.get(E))&&(v=h({},d),v_(v,b)),l=l.ownerDocument||l,b=l.createElement("script"),fe(b),Qn(b,"link",v),l.head.appendChild(b),u.instance=b);case"void":return null;default:throw Error(n(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(v=u.instance,u.state.loading|=4,k1(v,d.precedence,l));return u.instance}function k1(l,u,d){for(var v=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=v.length?v[v.length-1]:null,E=b,L=0;L<v.length;L++){var U=v[L];if(U.dataset.precedence===u)E=U;else if(E!==b)break}E?E.parentNode.insertBefore(l,E.nextSibling):(u=d.nodeType===9?d.head:d,u.insertBefore(l,u.firstChild))}function g_(l,u){l.crossOrigin==null&&(l.crossOrigin=u.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=u.referrerPolicy),l.title==null&&(l.title=u.title)}function v_(l,u){l.crossOrigin==null&&(l.crossOrigin=u.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=u.referrerPolicy),l.integrity==null&&(l.integrity=u.integrity)}var D1=null;function ND(l,u,d){if(D1===null){var v=new Map,b=D1=new Map;b.set(d,v)}else b=D1,v=b.get(d),v||(v=new Map,b.set(d,v));if(v.has(l))return v;for(v.set(l,null),d=d.getElementsByTagName(l),b=0;b<d.length;b++){var E=d[b];if(!(E[W]||E[Ue]||l==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var L=E.getAttribute(u)||"";L=l+L;var U=v.get(L);U?U.push(E):v.set(L,[E])}}return v}function FD(l,u,d){l=l.ownerDocument||l,l.head.insertBefore(d,u==="title"?l.querySelector("head > title"):null)}function Oq(l,u,d){if(d===1||u.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return l=u.disabled,typeof u.precedence=="string"&&l==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function LD(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}var Yh=null;function kq(){}function Dq(l,u,d){if(Yh===null)throw Error(n(475));var v=Yh;if(u.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var b=If(d.href),E=l.querySelector(Gh(b));if(E){l=E._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(v.count++,v=P1.bind(v),l.then(v,v)),u.state.loading|=4,u.instance=E,fe(E);return}E=l.ownerDocument||l,d=MD(d),(b=ts.get(b))&&g_(d,b),E=E.createElement("link"),fe(E);var L=E;L._p=new Promise(function(U,re){L.onload=U,L.onerror=re}),Qn(E,"link",d),u.instance=E}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(u,l),(l=u.state.preload)&&(u.state.loading&3)===0&&(v.count++,u=P1.bind(v),l.addEventListener("load",u),l.addEventListener("error",u))}}function Pq(){if(Yh===null)throw Error(n(475));var l=Yh;return l.stylesheets&&l.count===0&&x_(l,l.stylesheets),0<l.count?function(u){var d=setTimeout(function(){if(l.stylesheets&&x_(l,l.stylesheets),l.unsuspend){var v=l.unsuspend;l.unsuspend=null,v()}},6e4);return l.unsuspend=u,function(){l.unsuspend=null,clearTimeout(d)}}:null}function P1(){if(this.count--,this.count===0){if(this.stylesheets)x_(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var M1=null;function x_(l,u){l.stylesheets=null,l.unsuspend!==null&&(l.count++,M1=new Map,u.forEach(Mq,l),M1=null,P1.call(l))}function Mq(l,u){if(!(u.state.loading&4)){var d=M1.get(l);if(d)var v=d.get(null);else{d=new Map,M1.set(l,d);for(var b=l.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<b.length;E++){var L=b[E];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(d.set(L.dataset.precedence,L),v=L)}v&&d.set(null,v)}b=u.instance,L=b.getAttribute("data-precedence"),E=d.get(L)||v,E===v&&d.set(null,b),d.set(L,b),this.count++,v=P1.bind(this),b.addEventListener("load",v),b.addEventListener("error",v),E?E.parentNode.insertBefore(b,E.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(b,l.firstChild)),u.state.loading|=4}}var Kh={$$typeof:S,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function Rq(l,u,d,v,b,E,L,U){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wn(0),this.hiddenUpdates=wn(null),this.identifierPrefix=v,this.onUncaughtError=b,this.onCaughtError=E,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function ID(l,u,d,v,b,E,L,U,re,ye,Oe,Pe){return l=new Rq(l,u,d,L,U,re,ye,Pe),u=1,E===!0&&(u|=24),E=ga(3,null,null,u),l.current=E,E.stateNode=l,u=Jy(),u.refCount++,l.pooledCache=u,u.refCount++,E.memoizedState={element:v,isDehydrated:d,cache:u},n2(E),l}function BD(l){return l?(l=mf,l):mf}function jD(l,u,d,v,b,E){b=BD(b),v.context===null?v.context=b:v.pendingContext=b,v=Al(u),v.payload={element:d},E=E===void 0?null:E,E!==null&&(v.callback=E),d=Cl(l,v,u),d!==null&&(ba(d,l,u),Ah(d,l,u))}function UD(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var d=l.retryLane;l.retryLane=d!==0&&d<u?d:u}}function y_(l,u){UD(l,u),(l=l.alternate)&&UD(l,u)}function zD(l){if(l.tag===13){var u=pf(l,67108864);u!==null&&ba(u,l,67108864),y_(l,67108864)}}var R1=!0;function Nq(l,u,d,v){var b=Q.T;Q.T=null;var E=ee.p;try{ee.p=2,__(l,u,d,v)}finally{ee.p=E,Q.T=b}}function Fq(l,u,d,v){var b=Q.T;Q.T=null;var E=ee.p;try{ee.p=8,__(l,u,d,v)}finally{ee.p=E,Q.T=b}}function __(l,u,d,v){if(R1){var b=b_(v);if(b===null)o_(l,u,v,N1,d),HD(l,v);else if(Iq(b,l,u,d,v))v.stopPropagation();else if(HD(l,v),u&4&&-1<Lq.indexOf(l)){for(;b!==null;){var E=Z(b);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var L=nr(E.pendingLanes);if(L!==0){var U=E;for(U.pendingLanes|=2,U.entangledLanes|=2;L;){var re=1<<31-Re(L);U.entanglements[1]|=re,L&=~re}eo(E),(Zt&6)===0&&(v1=ie()+500,Hh(0))}}break;case 13:U=pf(E,2),U!==null&&ba(U,E,2),y1(),y_(E,2)}if(E=b_(v),E===null&&o_(l,u,v,N1,d),E===b)break;b=E}b!==null&&v.stopPropagation()}else o_(l,u,v,null,d)}}function b_(l){return l=Ay(l),w_(l)}var N1=null;function w_(l){if(N1=null,l=Y(l),l!==null){var u=a(l);if(u===null)l=null;else{var d=u.tag;if(d===13){if(l=s(u),l!==null)return l;l=null}else if(d===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null)}}return N1=l,null}function VD(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(yt()){case Yt:return 2;case Sr:return 8;case Tt:case Nn:return 32;case Dr:return 268435456;default:return 32}default:return 32}}var S_=!1,Ul=null,zl=null,Vl=null,Zh=new Map,Qh=new Map,Hl=[],Lq="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".split(" ");function HD(l,u){switch(l){case"focusin":case"focusout":Ul=null;break;case"dragenter":case"dragleave":zl=null;break;case"mouseover":case"mouseout":Vl=null;break;case"pointerover":case"pointerout":Zh.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qh.delete(u.pointerId)}}function Jh(l,u,d,v,b,E){return l===null||l.nativeEvent!==E?(l={blockedOn:u,domEventName:d,eventSystemFlags:v,nativeEvent:E,targetContainers:[b]},u!==null&&(u=Z(u),u!==null&&zD(u)),l):(l.eventSystemFlags|=v,u=l.targetContainers,b!==null&&u.indexOf(b)===-1&&u.push(b),l)}function Iq(l,u,d,v,b){switch(u){case"focusin":return Ul=Jh(Ul,l,u,d,v,b),!0;case"dragenter":return zl=Jh(zl,l,u,d,v,b),!0;case"mouseover":return Vl=Jh(Vl,l,u,d,v,b),!0;case"pointerover":var E=b.pointerId;return Zh.set(E,Jh(Zh.get(E)||null,l,u,d,v,b)),!0;case"gotpointercapture":return E=b.pointerId,Qh.set(E,Jh(Qh.get(E)||null,l,u,d,v,b)),!0}return!1}function $D(l){var u=Y(l.target);if(u!==null){var d=a(u);if(d!==null){if(u=d.tag,u===13){if(u=s(d),u!==null){l.blockedOn=u,st(l.priority,function(){if(d.tag===13){var v=_a();v=Fn(v);var b=pf(d,v);b!==null&&ba(b,d,v),y_(d,v)}});return}}else if(u===3&&d.stateNode.current.memoizedState.isDehydrated){l.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}l.blockedOn=null}function F1(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var d=b_(l.nativeEvent);if(d===null){d=l.nativeEvent;var v=new d.constructor(d.type,d);Ty=v,d.target.dispatchEvent(v),Ty=null}else return u=Z(d),u!==null&&zD(u),l.blockedOn=d,!1;u.shift()}return!0}function WD(l,u,d){F1(l)&&d.delete(u)}function Bq(){S_=!1,Ul!==null&&F1(Ul)&&(Ul=null),zl!==null&&F1(zl)&&(zl=null),Vl!==null&&F1(Vl)&&(Vl=null),Zh.forEach(WD),Qh.forEach(WD)}function L1(l,u){l.blockedOn===u&&(l.blockedOn=null,S_||(S_=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bq)))}var I1=null;function qD(l){I1!==l&&(I1=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){I1===l&&(I1=null);for(var u=0;u<l.length;u+=3){var d=l[u],v=l[u+1],b=l[u+2];if(typeof v!="function"){if(w_(v||d)===null)continue;break}var E=Z(d);E!==null&&(l.splice(u,3),u-=3,w2(E,{pending:!0,data:b,method:d.method,action:v},v,b))}}))}function ed(l){function u(re){return L1(re,l)}Ul!==null&&L1(Ul,l),zl!==null&&L1(zl,l),Vl!==null&&L1(Vl,l),Zh.forEach(u),Qh.forEach(u);for(var d=0;d<Hl.length;d++){var v=Hl[d];v.blockedOn===l&&(v.blockedOn=null)}for(;0<Hl.length&&(d=Hl[0],d.blockedOn===null);)$D(d),d.blockedOn===null&&Hl.shift();if(d=(l.ownerDocument||l).$$reactFormReplay,d!=null)for(v=0;v<d.length;v+=3){var b=d[v],E=d[v+1],L=b[et]||null;if(typeof E=="function")L||qD(d);else if(L){var U=null;if(E&&E.hasAttribute("formAction")){if(b=E,L=E[et]||null)U=L.formAction;else if(w_(b)!==null)continue}else U=L.action;typeof U=="function"?d[v+1]=U:(d.splice(v,3),v-=3),qD(d)}}}function E_(l){this._internalRoot=l}B1.prototype.render=E_.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(n(409));var d=u.current,v=_a();jD(d,v,l,u,null,null)},B1.prototype.unmount=E_.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;jD(l.current,2,null,l,null,null),y1(),u[tt]=null}};function B1(l){this._internalRoot=l}B1.prototype.unstable_scheduleHydration=function(l){if(l){var u=gt();l={blockedOn:null,target:l,priority:u};for(var d=0;d<Hl.length&&u!==0&&u<Hl[d].priority;d++);Hl.splice(d,0,l),d===0&&$D(l)}};var GD=t.version;if(GD!=="19.1.0")throw Error(n(527,GD,"19.1.0"));ee.findDOMNode=function(l){var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(n(188)):(l=Object.keys(l).join(","),Error(n(268,l)));return l=c(u),l=l!==null?f(l):null,l=l===null?null:l.stateNode,l};var jq={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var j1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!j1.isDisabled&&j1.supportsFiber)try{xr=j1.inject(jq),ge=j1}catch{}}return rd.createRoot=function(l,u){if(!i(l))throw Error(n(299));var d=!1,v="",b=ck,E=uk,L=fk,U=null;return u!=null&&(u.unstable_strictMode===!0&&(d=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(E=u.onCaughtError),u.onRecoverableError!==void 0&&(L=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(U=u.unstable_transitionCallbacks)),u=ID(l,1,!1,null,null,d,v,b,E,L,U,null),l[tt]=u.current,s_(l),new E_(u)},rd.hydrateRoot=function(l,u,d){if(!i(l))throw Error(n(299));var v=!1,b="",E=ck,L=uk,U=fk,re=null,ye=null;return d!=null&&(d.unstable_strictMode===!0&&(v=!0),d.identifierPrefix!==void 0&&(b=d.identifierPrefix),d.onUncaughtError!==void 0&&(E=d.onUncaughtError),d.onCaughtError!==void 0&&(L=d.onCaughtError),d.onRecoverableError!==void 0&&(U=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(re=d.unstable_transitionCallbacks),d.formState!==void 0&&(ye=d.formState)),u=ID(l,1,!0,u,d??null,v,b,E,L,U,re,ye),u.context=BD(null),d=u.current,v=_a(),v=Fn(v),b=Al(v),b.callback=null,Cl(d,b,v),d=v,u.current.lanes=d,Ur(u,d),eo(u),l[tt]=u.current,s_(l),new B1(u)},rd.version="19.1.0",rd}var nP;function Kq(){if(nP)return C_.exports;nP=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),C_.exports=Yq(),C_.exports}var Zq=Kq();/**
 * react-router v7.8.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * 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
 */var iP="popstate";function Qq(e={}){function t(n,i){let{pathname:a,search:s,hash:o}=n.location;return uS("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:lp(i)}return eG(t,r,null,e)}function Br(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Jq(){return Math.random().toString(36).substring(2,10)}function aP(e,t){return{usr:e.state,key:e.key,idx:t}}function uS(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?H0(t):t,state:r,key:t&&t.key||n||Jq()}}function lp({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function H0(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function eG(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,s=i.history,o="POP",c=null,f=h();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function h(){return(s.state||{idx:null}).idx}function p(){o="POP";let _=h(),w=_==null?null:_-f;f=_,c&&c({action:o,location:x.location,delta:w})}function m(_,w){o="PUSH";let T=uS(x.location,_,w);f=h()+1;let S=aP(T,f),O=x.createHref(T);try{s.pushState(S,"",O)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(O)}a&&c&&c({action:o,location:x.location,delta:1})}function g(_,w){o="REPLACE";let T=uS(x.location,_,w);f=h();let S=aP(T,f),O=x.createHref(T);s.replaceState(S,"",O),a&&c&&c({action:o,location:x.location,delta:0})}function y(_){return tG(_)}let x={get action(){return o},get location(){return e(i,s)},listen(_){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(iP,p),c=_,()=>{i.removeEventListener(iP,p),c=null}},createHref(_){return t(i,_)},createURL:y,encodeLocation(_){let w=y(_);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:g,go(_){return s.go(_)}};return x}function tG(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Br(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:lp(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function $F(e,t,r="/"){return rG(e,t,r,!1)}function rG(e,t,r,n){let i=typeof t=="string"?H0(t):t,a=tl(i.pathname||"/",r);if(a==null)return null;let s=WF(e);nG(s);let o=null;for(let c=0;o==null&&c<s.length;++c){let f=pG(a);o=hG(s[c],f,n)}return o}function WF(e,t=[],r=[],n=""){let i=(a,s,o)=>{let c={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};c.relativePath.startsWith("/")&&(Br(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length));let f=Xo([n,c.relativePath]),h=r.concat(c);a.children&&a.children.length>0&&(Br(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),WF(a.children,t,h,f)),!(a.path==null&&!a.index)&&t.push({path:f,score:uG(f,a.index),routesMeta:h})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))i(a,s);else for(let o of qF(a.path))i(a,s,o)}),t}function qF(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let s=qF(n.join("/")),o=[];return o.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&o.push(...s),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function nG(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:fG(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var iG=/^:[\w-]+$/,aG=3,sG=2,oG=1,lG=10,cG=-2,sP=e=>e==="*";function uG(e,t){let r=e.split("/"),n=r.length;return r.some(sP)&&(n+=cG),t&&(n+=sG),r.filter(i=>!sP(i)).reduce((i,a)=>i+(iG.test(a)?aG:a===""?oG:lG),n)}function fG(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function hG(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",s=[];for(let o=0;o<n.length;++o){let c=n[o],f=o===n.length-1,h=a==="/"?t:t.slice(a.length)||"/",p=tv({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},h),m=c.route;if(!p&&f&&r&&!n[n.length-1].route.index&&(p=tv({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Xo([a,p.pathname]),pathnameBase:xG(Xo([a,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(a=Xo([a,p.pathnameBase]))}return s}function tv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=dG(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce((f,{paramName:h,isOptional:p},m)=>{if(h==="*"){let y=o[m]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const g=o[m];return p&&!g?f[h]=void 0:f[h]=(g||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function dG(e,t=!1,r=!0){xo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,c)=>(n.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function pG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function tl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function mG(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?H0(e):e;return{pathname:r?r.startsWith("/")?r:gG(r,t):t,search:yG(n),hash:_G(i)}}function gG(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function P_(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vG(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function GF(e){let t=vG(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function XF(e,t,r,n=!1){let i;typeof e=="string"?i=H0(e):(i={...e},Br(!i.pathname||!i.pathname.includes("?"),P_("?","pathname","search",i)),Br(!i.pathname||!i.pathname.includes("#"),P_("#","pathname","hash",i)),Br(!i.search||!i.search.includes("#"),P_("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=r;else{let p=t.length-1;if(!n&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}o=p>=0?t[p]:"/"}let c=mG(i,o),f=s&&s!=="/"&&s.endsWith("/"),h=(a||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(f||h)&&(c.pathname+="/"),c}var Xo=e=>e.join("/").replace(/\/\/+/g,"/"),xG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_G=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var YF=["POST","PUT","PATCH","DELETE"];new Set(YF);var wG=["GET",...YF];new Set(wG);var $0=A.createContext(null);$0.displayName="DataRouter";var _x=A.createContext(null);_x.displayName="DataRouterState";A.createContext(!1);var KF=A.createContext({isTransitioning:!1});KF.displayName="ViewTransition";var SG=A.createContext(new Map);SG.displayName="Fetchers";var EG=A.createContext(null);EG.displayName="Await";var wo=A.createContext(null);wo.displayName="Navigation";var Zp=A.createContext(null);Zp.displayName="Location";var hl=A.createContext({outlet:null,matches:[],isDataRoute:!1});hl.displayName="Route";var wT=A.createContext(null);wT.displayName="RouteError";function TG(e,{relative:t}={}){Br(Qp(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=A.useContext(wo),{hash:i,pathname:a,search:s}=Jp(e,{relative:t}),o=a;return r!=="/"&&(o=a==="/"?r:Xo([r,a])),n.createHref({pathname:o,search:s,hash:i})}function Qp(){return A.useContext(Zp)!=null}function Gu(){return Br(Qp(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Zp).location}var ZF="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function QF(e){A.useContext(wo).static||A.useLayoutEffect(e)}function JF(){let{isDataRoute:e}=A.useContext(hl);return e?BG():AG()}function AG(){Br(Qp(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext($0),{basename:t,navigator:r}=A.useContext(wo),{matches:n}=A.useContext(hl),{pathname:i}=Gu(),a=JSON.stringify(GF(n)),s=A.useRef(!1);return QF(()=>{s.current=!0}),A.useCallback((c,f={})=>{if(xo(s.current,ZF),!s.current)return;if(typeof c=="number"){r.go(c);return}let h=XF(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Xo([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,a,i,e])}A.createContext(null);function Jp(e,{relative:t}={}){let{matches:r}=A.useContext(hl),{pathname:n}=Gu(),i=JSON.stringify(GF(r));return A.useMemo(()=>XF(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function CG(e,t){return eL(e,t)}function eL(e,t,r,n){Br(Qp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=A.useContext(wo),{matches:a}=A.useContext(hl),s=a[a.length-1],o=s?s.params:{},c=s?s.pathname:"/",f=s?s.pathnameBase:"/",h=s&&s.route;{let w=h&&h.path||"";tL(c,!h||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let p=Gu(),m;if(t){let w=typeof t=="string"?H0(t):t;Br(f==="/"||w.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${w.pathname}" was given in the \`location\` prop.`),m=w}else m=p;let g=m.pathname||"/",y=g;if(f!=="/"){let w=f.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=$F(e,{pathname:y});xo(h||x!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),xo(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=MG(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:Xo([f,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:Xo([f,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,r,n);return t&&_?A.createElement(Zp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},_):_}function OG(){let e=IG(),t=bG(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:a},"ErrorBoundary")," or"," ",A.createElement("code",{style:a},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),r?A.createElement("pre",{style:i},r):null,s)}var kG=A.createElement(OG,null),DG=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?A.createElement(hl.Provider,{value:this.props.routeContext},A.createElement(wT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function PG({routeContext:e,match:t,children:r}){let n=A.useContext($0);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(hl.Provider,{value:e},r)}function MG(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let c=i.findIndex(f=>f.route.id&&a?.[f.route.id]!==void 0);Br(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,o=-1;if(r)for(let c=0;c<i.length;c++){let f=i[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(o=c),f.route.id){let{loaderData:h,errors:p}=r,m=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||m){s=!0,o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}return i.reduceRight((c,f,h)=>{let p,m=!1,g=null,y=null;r&&(p=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||kG,s&&(o<0&&h===0?(tL("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,y=null):o===h&&(m=!0,y=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,h+1)),_=()=>{let w;return p?w=g:m?w=y:f.route.Component?w=A.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=c,A.createElement(PG,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:w})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?A.createElement(DG,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:_(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):_()},null)}function ST(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function RG(e){let t=A.useContext($0);return Br(t,ST(e)),t}function NG(e){let t=A.useContext(_x);return Br(t,ST(e)),t}function FG(e){let t=A.useContext(hl);return Br(t,ST(e)),t}function ET(e){let t=FG(e),r=t.matches[t.matches.length-1];return Br(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function LG(){return ET("useRouteId")}function IG(){let e=A.useContext(wT),t=NG("useRouteError"),r=ET("useRouteError");return e!==void 0?e:t.errors?.[r]}function BG(){let{router:e}=RG("useNavigate"),t=ET("useNavigate"),r=A.useRef(!1);return QF(()=>{r.current=!0}),A.useCallback(async(i,a={})=>{xo(r.current,ZF),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var oP={};function tL(e,t,r){!t&&!oP[e]&&(oP[e]=!0,xo(!1,r))}A.memo(jG);function jG({routes:e,future:t,state:r}){return eL(e,void 0,r,t)}function fS(e){Br(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function UG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1}){Br(!Qp(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),o=A.useMemo(()=>({basename:s,navigator:i,static:a,future:{}}),[s,i,a]);typeof r=="string"&&(r=H0(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,g=A.useMemo(()=>{let y=tl(c,s);return y==null?null:{location:{pathname:y,search:f,hash:h,state:p,key:m},navigationType:n}},[s,c,f,h,p,m,n]);return xo(g!=null,`<Router basename="${s}"> is not able to match the URL "${c}${f}${h}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:A.createElement(wo.Provider,{value:o},A.createElement(Zp.Provider,{children:t,value:g}))}function zG({children:e,location:t}){return CG(hS(e),t)}function hS(e,t=[]){let r=[];return A.Children.forEach(e,(n,i)=>{if(!A.isValidElement(n))return;let a=[...t,i];if(n.type===A.Fragment){r.push.apply(r,hS(n.props.children,a));return}Br(n.type===fS,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Br(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=hS(n.props.children,a)),r.push(s)}),r}var Pg="get",Mg="application/x-www-form-urlencoded";function bx(e){return e!=null&&typeof e.tagName=="string"}function VG(e){return bx(e)&&e.tagName.toLowerCase()==="button"}function HG(e){return bx(e)&&e.tagName.toLowerCase()==="form"}function $G(e){return bx(e)&&e.tagName.toLowerCase()==="input"}function WG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qG(e,t){return e.button===0&&(!t||t==="_self")&&!WG(e)}var U1=null;function GG(){if(U1===null)try{new FormData(document.createElement("form"),0),U1=!1}catch{U1=!0}return U1}var XG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function M_(e){return e!=null&&!XG.has(e)?(xo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mg}"`),null):e}function YG(e,t){let r,n,i,a,s;if(HG(e)){let o=e.getAttribute("action");n=o?tl(o,t):null,r=e.getAttribute("method")||Pg,i=M_(e.getAttribute("enctype"))||Mg,a=new FormData(e)}else if(VG(e)||$G(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||o.getAttribute("action");if(n=c?tl(c,t):null,r=e.getAttribute("formmethod")||o.getAttribute("method")||Pg,i=M_(e.getAttribute("formenctype"))||M_(o.getAttribute("enctype"))||Mg,a=new FormData(o,e),!GG()){let{name:f,type:h,value:p}=e;if(h==="image"){let m=f?`${f}.`:"";a.append(`${m}x`,"0"),a.append(`${m}y`,"0")}else f&&a.append(f,p)}}else{if(bx(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pg,n=null,i=Mg,s=e}return a&&i==="text/plain"&&(s=a,a=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function TT(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function KG(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&tl(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function ZG(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function QG(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function JG(e,t,r){let n=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let s=await ZG(a,r);return s.links?s.links():[]}return[]}));return nX(n.flat(1).filter(QG).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function lP(e,t,r,n,i,a){let s=(c,f)=>r[f]?c.route.id!==r[f].route.id:!0,o=(c,f)=>r[f].pathname!==c.pathname||r[f].route.path?.endsWith("*")&&r[f].params["*"]!==c.params["*"];return a==="assets"?t.filter((c,f)=>s(c,f)||o(c,f)):a==="data"?t.filter((c,f)=>{let h=n.routes[c.route.id];if(!h||!h.hasLoader)return!1;if(s(c,f)||o(c,f))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function eX(e,t,{includeHydrateFallback:r}={}){return tX(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function tX(e){return[...new Set(e)]}function rX(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function nX(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let a=JSON.stringify(rX(i));return r.has(a)||(r.add(a),n.push({key:a,link:i})),n},[])}function rL(){let e=A.useContext($0);return TT(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function iX(){let e=A.useContext(_x);return TT(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var AT=A.createContext(void 0);AT.displayName="FrameworkContext";function nL(){let e=A.useContext(AT);return TT(e,"You must render this element inside a <HydratedRouter> element"),e}function aX(e,t){let r=A.useContext(AT),[n,i]=A.useState(!1),[a,s]=A.useState(!1),{onFocus:o,onBlur:c,onMouseEnter:f,onMouseLeave:h,onTouchStart:p}=t,m=A.useRef(null);A.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=w=>{w.forEach(T=>{s(T.isIntersecting)})},_=new IntersectionObserver(x,{threshold:.5});return m.current&&_.observe(m.current),()=>{_.disconnect()}}},[e]),A.useEffect(()=>{if(n){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[n]);let g=()=>{i(!0)},y=()=>{i(!1),s(!1)};return r?e!=="intent"?[a,m,{}]:[a,m,{onFocus:nd(o,g),onBlur:nd(c,y),onMouseEnter:nd(f,g),onMouseLeave:nd(h,y),onTouchStart:nd(p,g)}]:[!1,m,{}]}function nd(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function sX({page:e,...t}){let{router:r}=rL(),n=A.useMemo(()=>$F(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?A.createElement(lX,{page:e,matches:n,...t}):null}function oX(e){let{manifest:t,routeModules:r}=nL(),[n,i]=A.useState([]);return A.useEffect(()=>{let a=!1;return JG(e,t,r).then(s=>{a||i(s)}),()=>{a=!0}},[e,t,r]),n}function lX({page:e,matches:t,...r}){let n=Gu(),{manifest:i,routeModules:a}=nL(),{basename:s}=rL(),{loaderData:o,matches:c}=iX(),f=A.useMemo(()=>lP(e,t,c,i,n,"data"),[e,t,c,i,n]),h=A.useMemo(()=>lP(e,t,c,i,n,"assets"),[e,t,c,i,n]),p=A.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,x=!1;if(t.forEach(w=>{let T=i.routes[w.route.id];!T||!T.hasLoader||(!f.some(S=>S.route.id===w.route.id)&&w.route.id in o&&a[w.route.id]?.shouldRevalidate||T.hasClientLoader?x=!0:y.add(w.route.id))}),y.size===0)return[];let _=KG(e,s,"data");return x&&y.size>0&&_.searchParams.set("_routes",t.filter(w=>y.has(w.route.id)).map(w=>w.route.id).join(",")),[_.pathname+_.search]},[s,o,n,i,f,t,e,a]),m=A.useMemo(()=>eX(h,i),[h,i]),g=oX(h);return A.createElement(A.Fragment,null,p.map(y=>A.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),m.map(y=>A.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),g.map(({key:y,link:x})=>A.createElement("link",{key:y,nonce:r.nonce,...x})))}function cX(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var iL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{iL&&(window.__reactRouterVersion="7.8.0")}catch{}function uX({basename:e,children:t,window:r}){let n=A.useRef();n.current==null&&(n.current=Qq({window:r,v5Compat:!0}));let i=n.current,[a,s]=A.useState({action:i.action,location:i.location}),o=A.useCallback(c=>{A.startTransition(()=>s(c))},[s]);return A.useLayoutEffect(()=>i.listen(o),[i,o]),A.createElement(UG,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var aL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sL=A.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:a,replace:s,state:o,target:c,to:f,preventScrollReset:h,viewTransition:p,...m},g){let{basename:y}=A.useContext(wo),x=typeof f=="string"&&aL.test(f),_,w=!1;if(typeof f=="string"&&x&&(_=f,iL))try{let N=new URL(window.location.href),z=f.startsWith("//")?new URL(N.protocol+f):new URL(f),H=tl(z.pathname,y);z.origin===N.origin&&H!=null?f=H+z.search+z.hash:w=!0}catch{xo(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=TG(f,{relative:i}),[S,O,C]=aX(n,m),k=pX(f,{replace:s,state:o,target:c,preventScrollReset:h,relative:i,viewTransition:p});function D(N){t&&t(N),N.defaultPrevented||k(N)}let M=A.createElement("a",{...m,...C,href:_||T,onClick:w||a?t:D,ref:cX(g,O),target:c,"data-discover":!x&&r==="render"?"true":void 0});return S&&!x?A.createElement(A.Fragment,null,M,A.createElement(sX,{page:T})):M});sL.displayName="Link";var fX=A.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:a,to:s,viewTransition:o,children:c,...f},h){let p=Jp(s,{relative:f.relative}),m=Gu(),g=A.useContext(_x),{navigator:y,basename:x}=A.useContext(wo),_=g!=null&&yX(p)&&o===!0,w=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,T=m.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(T=T.toLowerCase(),S=S?S.toLowerCase():null,w=w.toLowerCase()),S&&x&&(S=tl(S,x)||S);const O=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let C=T===w||!i&&T.startsWith(w)&&T.charAt(O)==="/",k=S!=null&&(S===w||!i&&S.startsWith(w)&&S.charAt(w.length)==="/"),D={isActive:C,isPending:k,isTransitioning:_},M=C?t:void 0,N;typeof n=="function"?N=n(D):N=[n,C?"active":null,k?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(D):a;return A.createElement(sL,{...f,"aria-current":M,className:N,ref:h,style:z,to:s,viewTransition:o},typeof c=="function"?c(D):c)});fX.displayName="NavLink";var hX=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:a,method:s=Pg,action:o,onSubmit:c,relative:f,preventScrollReset:h,viewTransition:p,...m},g)=>{let y=vX(),x=xX(o,{relative:f}),_=s.toLowerCase()==="get"?"get":"post",w=typeof o=="string"&&aL.test(o),T=S=>{if(c&&c(S),S.defaultPrevented)return;S.preventDefault();let O=S.nativeEvent.submitter,C=O?.getAttribute("formmethod")||s;y(O||S.currentTarget,{fetcherKey:t,method:C,navigate:r,replace:i,state:a,relative:f,preventScrollReset:h,viewTransition:p})};return A.createElement("form",{ref:g,method:_,action:x,onSubmit:n?c:T,...m,"data-discover":!w&&e==="render"?"true":void 0})});hX.displayName="Form";function dX(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function oL(e){let t=A.useContext($0);return Br(t,dX(e)),t}function pX(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:a,viewTransition:s}={}){let o=JF(),c=Gu(),f=Jp(e,{relative:a});return A.useCallback(h=>{if(qG(h,t)){h.preventDefault();let p=r!==void 0?r:lp(c)===lp(f);o(e,{replace:p,state:n,preventScrollReset:i,relative:a,viewTransition:s})}},[c,o,f,r,n,t,e,i,a,s])}var mX=0,gX=()=>`__${String(++mX)}__`;function vX(){let{router:e}=oL("useSubmit"),{basename:t}=A.useContext(wo),r=LG();return A.useCallback(async(n,i={})=>{let{action:a,method:s,encType:o,formData:c,body:f}=YG(n,t);if(i.navigate===!1){let h=i.fetcherKey||gX();await e.fetch(h,r,i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||s,formEncType:i.encType||o,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||s,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function xX(e,{relative:t}={}){let{basename:r}=A.useContext(wo),n=A.useContext(hl);Br(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),a={...Jp(e||".",{relative:t})},s=Gu();if(e==null){a.search=s.search;let o=new URLSearchParams(a.search),c=o.getAll("index");if(c.some(h=>h==="")){o.delete("index"),c.filter(p=>p).forEach(p=>o.append("index",p));let h=o.toString();a.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Xo([r,a.pathname])),lp(a)}function yX(e,{relative:t}={}){let r=A.useContext(KF);Br(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=oL("useViewTransitionState"),i=Jp(e,{relative:t});if(!r.isTransitioning)return!1;let a=tl(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=tl(r.nextLocation.pathname,n)||r.nextLocation.pathname;return tv(i.pathname,s)!=null||tv(i.pathname,a)!=null}var lL=HF();const rv="/assets/acopinturas-CgzHs9KU.svg",cL=A.createContext({});function _X(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const CT=typeof window<"u",bX=CT?A.useLayoutEffect:A.useEffect,OT=A.createContext(null);function kT(e,t){e.indexOf(t)===-1&&e.push(t)}function DT(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const rl=(e,t,r)=>r>t?t:r<e?e:r;let PT=()=>{};const nl={},uL=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function fL(e){return typeof e=="object"&&e!==null}const hL=e=>/^0[^.\s]+$/u.test(e);function MT(e){let t;return()=>(t===void 0&&(t=e()),t)}const ws=e=>e,wX=(e,t)=>r=>t(e(r)),em=(...e)=>e.reduce(wX),cp=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class RT{constructor(){this.subscriptions=[]}add(t){return kT(this.subscriptions,t),()=>DT(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ho=e=>e*1e3,po=e=>e/1e3;function dL(e,t){return t?e*(1e3/t):0}const pL=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,SX=1e-7,EX=12;function TX(e,t,r,n,i){let a,s,o=0;do s=t+(r-t)/2,a=pL(s,n,i)-e,a>0?r=s:t=s;while(Math.abs(a)>SX&&++o<EX);return s}function tm(e,t,r,n){if(e===t&&r===n)return ws;const i=a=>TX(a,0,1,e,r);return a=>a===0||a===1?a:pL(i(a),t,n)}const mL=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gL=e=>t=>1-e(1-t),vL=tm(.33,1.53,.69,.99),NT=gL(vL),xL=mL(NT),yL=e=>(e*=2)<1?.5*NT(e):.5*(2-Math.pow(2,-10*(e-1))),FT=e=>1-Math.sin(Math.acos(e)),_L=gL(FT),bL=mL(FT),AX=tm(.42,0,1,1),CX=tm(0,0,.58,1),wL=tm(.42,0,.58,1),OX=e=>Array.isArray(e)&&typeof e[0]!="number",SL=e=>Array.isArray(e)&&typeof e[0]=="number",kX={linear:ws,easeIn:AX,easeInOut:wL,easeOut:CX,circIn:FT,circInOut:bL,circOut:_L,backIn:NT,backInOut:xL,backOut:vL,anticipate:yL},DX=e=>typeof e=="string",cP=e=>{if(SL(e)){PT(e.length===4);const[t,r,n,i]=e;return tm(t,r,n,i)}else if(DX(e))return kX[e];return e},z1=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function PX(e,t){let r=new Set,n=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(h){s.has(h)&&(f.schedule(h),e()),h(o)}const f={schedule:(h,p=!1,m=!1)=>{const y=m&&i?r:n;return p&&s.add(h),y.has(h)||y.add(h),h},cancel:h=>{n.delete(h),s.delete(h)},process:h=>{if(o=h,i){a=!0;return}i=!0,[r,n]=[n,r],r.forEach(c),r.clear(),i=!1,a&&(a=!1,f.process(h))}};return f}const MX=40;function EL(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,s=z1.reduce((S,O)=>(S[O]=PX(a),S),{}),{setup:o,read:c,resolveKeyframes:f,preUpdate:h,update:p,preRender:m,render:g,postRender:y}=s,x=()=>{const S=nl.useManualTiming?i.timestamp:performance.now();r=!1,nl.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(S-i.timestamp,MX),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),c.process(i),f.process(i),h.process(i),p.process(i),m.process(i),g.process(i),y.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(x))},_=()=>{r=!0,n=!0,i.isProcessing||e(x)};return{schedule:z1.reduce((S,O)=>{const C=s[O];return S[O]=(k,D=!1,M=!1)=>(r||_(),C.schedule(k,D,M)),S},{}),cancel:S=>{for(let O=0;O<z1.length;O++)s[z1[O]].cancel(S)},state:i,steps:s}}const{schedule:Cr,cancel:cc,state:ti,steps:R_}=EL(typeof requestAnimationFrame<"u"?requestAnimationFrame:ws,!0);let Rg;function RX(){Rg=void 0}const na={now:()=>(Rg===void 0&&na.set(ti.isProcessing||nl.useManualTiming?ti.timestamp:performance.now()),Rg),set:e=>{Rg=e,queueMicrotask(RX)}},TL=e=>t=>typeof t=="string"&&t.startsWith(e),LT=TL("--"),NX=TL("var(--"),IT=e=>NX(e)?FX.test(e.split("/*")[0].trim()):!1,FX=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,W0={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},up={...W0,transform:e=>rl(0,1,e)},V1={...W0,default:1},Nd=e=>Math.round(e*1e5)/1e5,BT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function LX(e){return e==null}const IX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jT=(e,t)=>r=>!!(typeof r=="string"&&IX.test(r)&&r.startsWith(e)||t&&!LX(r)&&Object.prototype.hasOwnProperty.call(r,t)),AL=(e,t,r)=>n=>{if(typeof n!="string")return n;const[i,a,s,o]=n.match(BT);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},BX=e=>rl(0,255,e),N_={...W0,transform:e=>Math.round(BX(e))},ru={test:jT("rgb","red"),parse:AL("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+N_.transform(e)+", "+N_.transform(t)+", "+N_.transform(r)+", "+Nd(up.transform(n))+")"};function jX(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const dS={test:jT("#"),parse:jX,transform:ru.transform},rm=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gl=rm("deg"),mo=rm("%"),pt=rm("px"),UX=rm("vh"),zX=rm("vw"),uP={...mo,parse:e=>mo.parse(e)/100,transform:e=>mo.transform(e*100)},Zf={test:jT("hsl","hue"),parse:AL("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+mo.transform(Nd(t))+", "+mo.transform(Nd(r))+", "+Nd(up.transform(n))+")"},vn={test:e=>ru.test(e)||dS.test(e)||Zf.test(e),parse:e=>ru.test(e)?ru.parse(e):Zf.test(e)?Zf.parse(e):dS.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ru.transform(e):Zf.transform(e),getAnimatableNone:e=>{const t=vn.parse(e);return t.alpha=0,vn.transform(t)}},VX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function HX(e){return isNaN(e)&&typeof e=="string"&&(e.match(BT)?.length||0)+(e.match(VX)?.length||0)>0}const CL="number",OL="color",$X="var",WX="var(",fP="${}",qX=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function fp(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(qX,c=>(vn.test(c)?(n.color.push(a),i.push(OL),r.push(vn.parse(c))):c.startsWith(WX)?(n.var.push(a),i.push($X),r.push(c)):(n.number.push(a),i.push(CL),r.push(parseFloat(c))),++a,fP)).split(fP);return{values:r,split:o,indexes:n,types:i}}function kL(e){return fp(e).values}function DL(e){const{split:t,types:r}=fp(e),n=t.length;return i=>{let a="";for(let s=0;s<n;s++)if(a+=t[s],i[s]!==void 0){const o=r[s];o===CL?a+=Nd(i[s]):o===OL?a+=vn.transform(i[s]):a+=i[s]}return a}}const GX=e=>typeof e=="number"?0:vn.test(e)?vn.getAnimatableNone(e):e;function XX(e){const t=kL(e);return DL(e)(t.map(GX))}const uc={test:HX,parse:kL,createTransformer:DL,getAnimatableNone:XX};function F_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function YX({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,a=0,s=0;if(!t)i=a=s=r;else{const o=r<.5?r*(1+t):r+t-r*t,c=2*r-o;i=F_(c,o,e+1/3),a=F_(c,o,e),s=F_(c,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}function nv(e,t){return r=>r>0?t:e}const Rr=(e,t,r)=>e+(t-e)*r,L_=(e,t,r)=>{const n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},KX=[dS,ru,Zf],ZX=e=>KX.find(t=>t.test(e));function hP(e){const t=ZX(e);if(!t)return!1;let r=t.parse(e);return t===Zf&&(r=YX(r)),r}const dP=(e,t)=>{const r=hP(e),n=hP(t);if(!r||!n)return nv(e,t);const i={...r};return a=>(i.red=L_(r.red,n.red,a),i.green=L_(r.green,n.green,a),i.blue=L_(r.blue,n.blue,a),i.alpha=Rr(r.alpha,n.alpha,a),ru.transform(i))},pS=new Set(["none","hidden"]);function QX(e,t){return pS.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function JX(e,t){return r=>Rr(e,t,r)}function UT(e){return typeof e=="number"?JX:typeof e=="string"?IT(e)?nv:vn.test(e)?dP:rY:Array.isArray(e)?PL:typeof e=="object"?vn.test(e)?dP:eY:nv}function PL(e,t){const r=[...e],n=r.length,i=e.map((a,s)=>UT(a)(a,t[s]));return a=>{for(let s=0;s<n;s++)r[s]=i[s](a);return r}}function eY(e,t){const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=UT(e[i])(e[i],t[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}}function tY(e,t){const r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][n[a]],o=e.values[s]??0;r[i]=o,n[a]++}return r}const rY=(e,t)=>{const r=uc.createTransformer(t),n=fp(e),i=fp(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?pS.has(e)&&!i.values.length||pS.has(t)&&!n.values.length?QX(e,t):em(PL(tY(n,i),i.values),r):nv(e,t)};function ML(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Rr(e,t,r):UT(e)(e,t)}const nY=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>Cr.update(t,r),stop:()=>cc(t),now:()=>ti.isProcessing?ti.timestamp:na.now()}},RL=(e,t,r=10)=>{let n="";const i=Math.max(Math.round(t/r),2);for(let a=0;a<i;a++)n+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},iv=2e4;function zT(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<iv;)t+=r,n=e.next(t);return t>=iv?1/0:t}function iY(e,t=100,r){const n=r({...e,keyframes:[0,t]}),i=Math.min(zT(n),iv);return{type:"keyframes",ease:a=>n.next(i*a).value/t,duration:po(i)}}const aY=5;function NL(e,t,r){const n=Math.max(t-aY,0);return dL(r-e(n),t-n)}const $r={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},I_=.001;function sY({duration:e=$r.duration,bounce:t=$r.bounce,velocity:r=$r.velocity,mass:n=$r.mass}){let i,a,s=1-t;s=rl($r.minDamping,$r.maxDamping,s),e=rl($r.minDuration,$r.maxDuration,po(e)),s<1?(i=f=>{const h=f*s,p=h*e,m=h-r,g=mS(f,s),y=Math.exp(-p);return I_-m/g*y},a=f=>{const p=f*s*e,m=p*r+r,g=Math.pow(s,2)*Math.pow(f,2)*e,y=Math.exp(-p),x=mS(Math.pow(f,2),s);return(-i(f)+I_>0?-1:1)*((m-g)*y)/x}):(i=f=>{const h=Math.exp(-f*e),p=(f-r)*e+1;return-I_+h*p},a=f=>{const h=Math.exp(-f*e),p=(r-f)*(e*e);return h*p});const o=5/e,c=lY(i,a,o);if(e=ho(e),isNaN(c))return{stiffness:$r.stiffness,damping:$r.damping,duration:e};{const f=Math.pow(c,2)*n;return{stiffness:f,damping:s*2*Math.sqrt(n*f),duration:e}}}const oY=12;function lY(e,t,r){let n=r;for(let i=1;i<oY;i++)n=n-e(n)/t(n);return n}function mS(e,t){return e*Math.sqrt(1-t*t)}const cY=["duration","bounce"],uY=["stiffness","damping","mass"];function pP(e,t){return t.some(r=>e[r]!==void 0)}function fY(e){let t={velocity:$r.velocity,stiffness:$r.stiffness,damping:$r.damping,mass:$r.mass,isResolvedFromDuration:!1,...e};if(!pP(e,uY)&&pP(e,cY))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,a=2*rl(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:$r.mass,stiffness:i,damping:a}}else{const r=sY(e);t={...t,...r,mass:$r.mass},t.isResolvedFromDuration=!0}return t}function av(e=$r.visualDuration,t=$r.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=r;const a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],o={done:!1,value:a},{stiffness:c,damping:f,mass:h,duration:p,velocity:m,isResolvedFromDuration:g}=fY({...r,velocity:-po(r.velocity||0)}),y=m||0,x=f/(2*Math.sqrt(c*h)),_=s-a,w=po(Math.sqrt(c/h)),T=Math.abs(_)<5;n||(n=T?$r.restSpeed.granular:$r.restSpeed.default),i||(i=T?$r.restDelta.granular:$r.restDelta.default);let S;if(x<1){const C=mS(w,x);S=k=>{const D=Math.exp(-x*w*k);return s-D*((y+x*w*_)/C*Math.sin(C*k)+_*Math.cos(C*k))}}else if(x===1)S=C=>s-Math.exp(-w*C)*(_+(y+w*_)*C);else{const C=w*Math.sqrt(x*x-1);S=k=>{const D=Math.exp(-x*w*k),M=Math.min(C*k,300);return s-D*((y+x*w*_)*Math.sinh(M)+C*_*Math.cosh(M))/C}}const O={calculatedDuration:g&&p||null,next:C=>{const k=S(C);if(g)o.done=C>=p;else{let D=C===0?y:0;x<1&&(D=C===0?ho(y):NL(S,C,k));const M=Math.abs(D)<=n,N=Math.abs(s-k)<=i;o.done=M&&N}return o.value=o.done?s:k,o},toString:()=>{const C=Math.min(zT(O),iv),k=RL(D=>O.next(C*D).value,C,30);return C+"ms "+k},toTransition:()=>{}};return O}av.applyToOptions=e=>{const t=iY(e,100,av);return e.ease=t.ease,e.duration=ho(t.duration),e.type="keyframes",e};function gS({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:c,restDelta:f=.5,restSpeed:h}){const p=e[0],m={done:!1,value:p},g=M=>o!==void 0&&M<o||c!==void 0&&M>c,y=M=>o===void 0?c:c===void 0||Math.abs(o-M)<Math.abs(c-M)?o:c;let x=r*t;const _=p+x,w=s===void 0?_:s(_);w!==_&&(x=w-p);const T=M=>-x*Math.exp(-M/n),S=M=>w+T(M),O=M=>{const N=T(M),z=S(M);m.done=Math.abs(N)<=f,m.value=m.done?w:z};let C,k;const D=M=>{g(m.value)&&(C=M,k=av({keyframes:[m.value,y(m.value)],velocity:NL(S,M,m.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return D(0),{calculatedDuration:null,next:M=>{let N=!1;return!k&&C===void 0&&(N=!0,O(M),D(M)),C!==void 0&&M>=C?k.next(M-C):(!N&&O(M),m)}}}function hY(e,t,r){const n=[],i=r||nl.mix||ML,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ws:t;o=em(c,o)}n.push(o)}return n}function dY(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const a=e.length;if(PT(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=hY(t,n,i),c=o.length,f=h=>{if(s&&h<e[0])return t[0];let p=0;if(c>1)for(;p<e.length-2&&!(h<e[p+1]);p++);const m=cp(e[p],e[p+1],h);return o[p](m)};return r?h=>f(rl(e[0],e[a-1],h)):f}function pY(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=cp(0,t,n);e.push(Rr(r,1,i))}}function mY(e){const t=[0];return pY(t,e.length-1),t}function gY(e,t){return e.map(r=>r*t)}function vY(e,t){return e.map(()=>t||wL).splice(0,e.length-1)}function Fd({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=OX(n)?n.map(cP):cP(n),a={done:!1,value:t[0]},s=gY(r&&r.length===t.length?r:mY(t),e),o=dY(s,t,{ease:Array.isArray(i)?i:vY(t,i)});return{calculatedDuration:e,next:c=>(a.value=o(c),a.done=c>=e,a)}}const xY=e=>e!==null;function VT(e,{repeat:t,repeatType:r="loop"},n,i=1){const a=e.filter(xY),o=i<0||t&&r!=="loop"&&t%2===1?0:a.length-1;return!o||n===void 0?a[o]:n}const yY={decay:gS,inertia:gS,tween:Fd,keyframes:Fd,spring:av};function FL(e){typeof e.type=="string"&&(e.type=yY[e.type])}class HT{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const _Y=e=>e/100;class $T extends HT{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==na.now()&&this.tick(na.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;FL(t);const{type:r=Fd,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const c=r||Fd;c!==Fd&&typeof o[0]!="number"&&(this.mixKeyframes=em(_Y,ML(o[0],o[1])),o=[0,100]);const f=c({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...o].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=zT(f));const{calculatedDuration:h}=f;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=f}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:f=0,keyframes:h,repeat:p,repeatType:m,repeatDelay:g,type:y,onUpdate:x,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,O=n;if(p){const M=Math.min(this.currentTime,i)/o;let N=Math.floor(M),z=M%1;!z&&M>=1&&(z=1),z===1&&N--,N=Math.min(N,p+1),!!(N%2)&&(m==="reverse"?(z=1-z,g&&(z-=g/o)):m==="mirror"&&(O=s)),S=rl(0,1,z)*o}const C=T?{done:!1,value:h[0]}:O.next(S);a&&(C.value=a(C.value));let{done:k}=C;!T&&c!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&y!==gS&&(C.value=VT(h,this.options,_,this.speed)),x&&x(C.value),D&&this.finish(),C}then(t,r){return this.finished.then(t,r)}get duration(){return po(this.calculatedDuration)}get time(){return po(this.currentTime)}set time(t){t=ho(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(na.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=po(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=nY,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(na.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function bY(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const nu=e=>e*180/Math.PI,vS=e=>{const t=nu(Math.atan2(e[1],e[0]));return xS(t)},wY={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vS,rotateZ:vS,skewX:e=>nu(Math.atan(e[1])),skewY:e=>nu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xS=e=>(e=e%360,e<0&&(e+=360),e),mP=vS,gP=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vP=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),SY={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gP,scaleY:vP,scale:e=>(gP(e)+vP(e))/2,rotateX:e=>xS(nu(Math.atan2(e[6],e[5]))),rotateY:e=>xS(nu(Math.atan2(-e[2],e[0]))),rotateZ:mP,rotate:mP,skewX:e=>nu(Math.atan(e[4])),skewY:e=>nu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yS(e){return e.includes("scale")?1:0}function _S(e,t){if(!e||e==="none")return yS(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(r)n=SY,i=r;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=wY,i=o}if(!i)return yS(t);const a=n[t],s=i[1].split(",").map(TY);return typeof a=="function"?a(s):s[a]}const EY=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return _S(r,t)};function TY(e){return parseFloat(e.trim())}const q0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],G0=new Set(q0),xP=e=>e===W0||e===pt,AY=new Set(["x","y","z"]),CY=q0.filter(e=>!AY.has(e));function OY(e){const t=[];return CY.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const hu={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_S(t,"x"),y:(e,{transform:t})=>_S(t,"y")};hu.translateX=hu.x;hu.translateY=hu.y;const du=new Set;let bS=!1,wS=!1,SS=!1;function LL(){if(wS){const e=Array.from(du).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const i=OY(n);i.length&&(r.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([a,s])=>{n.getValue(a)?.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}wS=!1,bS=!1,du.forEach(e=>e.complete(SS)),du.clear()}function IL(){du.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wS=!0)})}function kY(){SS=!0,IL(),LL(),SS=!1}class WT{constructor(t,r,n,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(du.add(this),bS||(bS=!0,Cr.read(IL),Cr.resolveKeyframes(LL))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&r){const o=n.readValue(r,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}bY(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),du.delete(this)}cancel(){this.state==="scheduled"&&(du.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const DY=e=>e.startsWith("--");function PY(e,t,r){DY(t)?e.style.setProperty(t,r):e.style[t]=r}const MY=MT(()=>window.ScrollTimeline!==void 0),RY={};function NY(e,t){const r=MT(e);return()=>RY[t]??r()}const BL=NY(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,yP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bd([0,.65,.55,1]),circOut:bd([.55,0,1,.45]),backIn:bd([.31,.01,.66,-.59]),backOut:bd([.33,1.53,.69,.99])};function jL(e,t){if(e)return typeof e=="function"?BL()?RL(e,t):"ease-out":SL(e)?bd(e):Array.isArray(e)?e.map(r=>jL(r,t)||yP.easeOut):yP[e]}function FY(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:c}={},f=void 0){const h={[t]:r};c&&(h.offset=c);const p=jL(o,i);Array.isArray(p)&&(h.easing=p);const m={delay:n,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return f&&(m.pseudoElement=f),e.animate(h,m)}function UL(e){return typeof e=="function"&&"applyToOptions"in e}function LY({type:e,...t}){return UL(e)&&BL()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class IY extends HT{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:n,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,PT(typeof t.type!="string");const f=LY(t);this.animation=FY(r,n,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=VT(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):PY(r,n,h),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return po(Number(t))}get time(){return po(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ho(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&MY()?(this.animation.timeline=t,ws):r(this)}}const zL={anticipate:yL,backInOut:xL,circInOut:bL};function BY(e){return e in zL}function jY(e){typeof e.ease=="string"&&BY(e.ease)&&(e.ease=zL[e.ease])}const _P=10;class UY extends IY{constructor(t){jY(t),FL(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:i,element:a,...s}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const o=new $T({...s,autoplay:!1}),c=ho(this.finishedTime??this.time);r.setWithVelocity(o.sample(c-_P).value,o.sample(c).value,_P),o.stop()}}const bP=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(uc.test(e)||e==="0")&&!e.startsWith("url("));function zY(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function VY(e,t,r,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=bP(i,t),o=bP(a,t);return!s||!o?!1:zY(e)||(r==="spring"||UL(r))&&n}function ES(e){e.duration=0,e.type}const HY=new Set(["opacity","clipPath","filter","transform"]),$Y=MT(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function WY(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:f}=t.owner.getProps();return $Y()&&r&&HY.has(r)&&(r!=="transform"||!f)&&!c&&!n&&i!=="mirror"&&a!==0&&s!=="inertia"}const qY=40;class GY extends HT{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:c,motionValue:f,element:h,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=na.now();const m={autoplay:t,delay:r,type:n,repeat:i,repeatDelay:a,repeatType:s,name:c,motionValue:f,element:h,...p},g=h?.KeyframeResolver||WT;this.keyframeResolver=new g(o,(y,x,_)=>this.onKeyframesResolved(y,x,m,!_),c,f,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:c,isHandoff:f,onUpdate:h}=n;this.resolvedAt=na.now(),VY(t,a,s,o)||((nl.instantAnimations||!c)&&h?.(VT(t,n,r)),t[0]=t[t.length-1],ES(n),n.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>qY?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},g=!f&&WY(m)?new UY({...m,element:m.motionValue.owner.current}):new $T(m);g.finished.then(()=>this.notifyFinished()).catch(ws),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),kY()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const XY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function YY(e){const t=XY.exec(e);if(!t)return[,];const[,r,n,i]=t;return[`--${r??n}`,i]}function VL(e,t,r=1){const[n,i]=YY(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const s=a.trim();return uL(s)?parseFloat(s):s}return IT(i)?VL(i,t,r+1):i}function qT(e,t){return e?.[t]??e?.default??e}const HL=new Set(["width","height","top","left","right","bottom",...q0]),KY={test:e=>e==="auto",parse:e=>e},$L=e=>t=>t.test(e),WL=[W0,pt,mo,Gl,zX,UX,KY],wP=e=>WL.find($L(e));function ZY(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||hL(e):!0}const QY=new Set(["brightness","contrast","saturate","opacity"]);function JY(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(BT)||[];if(!n)return e;const i=r.replace(n,"");let a=QY.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}const eK=/\b([a-z-]*)\(.*?\)/gu,TS={...uc,getAnimatableNone:e=>{const t=e.match(eK);return t?t.map(JY).join(" "):e}},SP={...W0,transform:Math.round},tK={rotate:Gl,rotateX:Gl,rotateY:Gl,rotateZ:Gl,scale:V1,scaleX:V1,scaleY:V1,scaleZ:V1,skew:Gl,skewX:Gl,skewY:Gl,distance:pt,translateX:pt,translateY:pt,translateZ:pt,x:pt,y:pt,z:pt,perspective:pt,transformPerspective:pt,opacity:up,originX:uP,originY:uP,originZ:pt},GT={borderWidth:pt,borderTopWidth:pt,borderRightWidth:pt,borderBottomWidth:pt,borderLeftWidth:pt,borderRadius:pt,radius:pt,borderTopLeftRadius:pt,borderTopRightRadius:pt,borderBottomRightRadius:pt,borderBottomLeftRadius:pt,width:pt,maxWidth:pt,height:pt,maxHeight:pt,top:pt,right:pt,bottom:pt,left:pt,padding:pt,paddingTop:pt,paddingRight:pt,paddingBottom:pt,paddingLeft:pt,margin:pt,marginTop:pt,marginRight:pt,marginBottom:pt,marginLeft:pt,backgroundPositionX:pt,backgroundPositionY:pt,...tK,zIndex:SP,fillOpacity:up,strokeOpacity:up,numOctaves:SP},rK={...GT,color:vn,backgroundColor:vn,outlineColor:vn,fill:vn,stroke:vn,borderColor:vn,borderTopColor:vn,borderRightColor:vn,borderBottomColor:vn,borderLeftColor:vn,filter:TS,WebkitFilter:TS},qL=e=>rK[e];function GL(e,t){let r=qL(e);return r!==TS&&(r=uc),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const nK=new Set(["auto","none","0"]);function iK(e,t,r){let n=0,i;for(;n<e.length&&!i;){const a=e[n];typeof a=="string"&&!nK.has(a)&&fp(a).values.length&&(i=e[n]),n++}if(i&&r)for(const a of t)e[a]=GL(r,i)}class aK extends WT{constructor(t,r,n,i,a){super(t,r,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),IT(f))){const h=VL(f,r.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!HL.has(n)||t.length!==2)return;const[i,a]=t,s=wP(i),o=wP(a);if(s!==o)if(xP(s)&&xP(o))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else hu[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||ZY(t[i]))&&n.push(i);n.length&&iK(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=hu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const i=r[r.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,s=n[a];n[a]=hu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,c])=>{t.getValue(o).set(c)}),this.resolveNoneKeyframes()}}function sK(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const i=r?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const XL=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function oK(e){return fL(e)&&"offsetHeight"in e}const EP=30,lK=e=>!isNaN(parseFloat(e));class cK{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const i=na.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=na.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=lK(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new RT);const n=this.events[t].add(r);return t==="change"?()=>{n(),Cr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=na.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>EP)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,EP);return dL(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _0(e,t){return new cK(e,t)}const{schedule:XT}=EL(queueMicrotask,!1),js={x:!1,y:!1};function YL(){return js.x||js.y}function uK(e){return e==="x"||e==="y"?js[e]?null:(js[e]=!0,()=>{js[e]=!1}):js.x||js.y?null:(js.x=js.y=!0,()=>{js.x=js.y=!1})}function KL(e,t){const r=sK(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[r,i,()=>n.abort()]}function TP(e){return!(e.pointerType==="touch"||YL())}function fK(e,t,r={}){const[n,i,a]=KL(e,r),s=o=>{if(!TP(o))return;const{target:c}=o,f=t(c,o);if(typeof f!="function"||!c)return;const h=p=>{TP(p)&&(f(p),c.removeEventListener("pointerleave",h))};c.addEventListener("pointerleave",h,i)};return n.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const ZL=(e,t)=>t?e===t?!0:ZL(e,t.parentElement):!1,YT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,hK=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dK(e){return hK.has(e.tagName)||e.tabIndex!==-1}const Ng=new WeakSet;function AP(e){return t=>{t.key==="Enter"&&e(t)}}function B_(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const pK=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=AP(()=>{if(Ng.has(r))return;B_(r,"down");const i=AP(()=>{B_(r,"up")}),a=()=>B_(r,"cancel");r.addEventListener("keyup",i,t),r.addEventListener("blur",a,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function CP(e){return YT(e)&&!YL()}function mK(e,t,r={}){const[n,i,a]=KL(e,r),s=o=>{const c=o.currentTarget;if(!CP(o))return;Ng.add(c);const f=t(c,o),h=(g,y)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",m),Ng.has(c)&&Ng.delete(c),CP(g)&&typeof f=="function"&&f(g,{success:y})},p=g=>{h(g,c===window||c===document||r.useGlobalTarget||ZL(c,g.target))},m=g=>{h(g,!1)};window.addEventListener("pointerup",p,i),window.addEventListener("pointercancel",m,i)};return n.forEach(o=>{(r.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),oK(o)&&(o.addEventListener("focus",f=>pK(f,i)),!dK(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function QL(e){return fL(e)&&"ownerSVGElement"in e}function gK(e){return QL(e)&&e.tagName==="svg"}const Ti=e=>!!(e&&e.getVelocity),vK=[...WL,vn,uc],xK=e=>vK.find($L(e)),JL=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yK(e=!0){const t=A.useContext(OT);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:i}=t,a=A.useId();A.useEffect(()=>{if(e)return i(a)},[e]);const s=A.useCallback(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,s]:[!0]}const e7=A.createContext({strict:!1}),OP={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},b0={};for(const e in OP)b0[e]={isEnabled:t=>OP[e].some(r=>!!t[r])};function _K(e){for(const t in e)b0[t]={...b0[t],...e[t]}}const bK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function sv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bK.has(e)}let t7=e=>!sv(e);function wK(e){typeof e=="function"&&(t7=t=>t.startsWith("on")?!sv(t):e(t))}try{wK(require("@emotion/is-prop-valid").default)}catch{}function SK(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(t7(i)||r===!0&&sv(i)||!t&&!sv(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}const wx=A.createContext({});function Sx(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hp(e){return typeof e=="string"||Array.isArray(e)}const KT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ZT=["initial",...KT];function Ex(e){return Sx(e.animate)||ZT.some(t=>hp(e[t]))}function r7(e){return!!(Ex(e)||e.variants)}function EK(e,t){if(Ex(e)){const{initial:r,animate:n}=e;return{initial:r===!1||hp(r)?r:void 0,animate:hp(n)?n:void 0}}return e.inherit!==!1?t:{}}function TK(e){const{initial:t,animate:r}=EK(e,A.useContext(wx));return A.useMemo(()=>({initial:t,animate:r}),[kP(t),kP(r)])}function kP(e){return Array.isArray(e)?e.join(" "):e}const dp={};function AK(e){for(const t in e)dp[t]=e[t],LT(t)&&(dp[t].isCSSVariable=!0)}function n7(e,{layout:t,layoutId:r}){return G0.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!dp[e]||e==="opacity")}const CK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OK=q0.length;function kK(e,t,r){let n="",i=!0;for(let a=0;a<OK;a++){const s=q0[a],o=e[s];if(o===void 0)continue;let c=!0;if(typeof o=="number"?c=o===(s.startsWith("scale")?1:0):c=parseFloat(o)===0,!c||r){const f=XL(o,GT[s]);if(!c){i=!1;const h=CK[s]||s;n+=`${h}(${f}) `}r&&(t[s]=f)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}function QT(e,t,r){const{style:n,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const c in t){const f=t[c];if(G0.has(c)){s=!0;continue}else if(LT(c)){i[c]=f;continue}else{const h=XL(f,GT[c]);c.startsWith("origin")?(o=!0,a[c]=h):n[c]=h}}if(t.transform||(s||r?n.transform=kK(t,e.transform,r):n.transform&&(n.transform="none")),o){const{originX:c="50%",originY:f="50%",originZ:h=0}=a;n.transformOrigin=`${c} ${f} ${h}`}}const JT=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function i7(e,t,r){for(const n in t)!Ti(t[n])&&!n7(n,r)&&(e[n]=t[n])}function DK({transformTemplate:e},t){return A.useMemo(()=>{const r=JT();return QT(r,t,e),Object.assign({},r.vars,r.style)},[t])}function PK(e,t){const r=e.style||{},n={};return i7(n,r,e),Object.assign(n,DK(e,t)),n}function MK(e,t){const r={},n=PK(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const RK={offset:"stroke-dashoffset",array:"stroke-dasharray"},NK={offset:"strokeDashoffset",array:"strokeDasharray"};function FK(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?RK:NK;e[a.offset]=pt.transform(-n);const s=pt.transform(t),o=pt.transform(r);e[a.array]=`${s} ${o}`}function a7(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},c,f,h){if(QT(e,o,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m}=e;p.transform&&(m.transform=p.transform,delete p.transform),(m.transform||p.transformOrigin)&&(m.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),m.transform&&(m.transformBox=h?.transformBox??"fill-box",delete p.transformBox),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),i!==void 0&&FK(p,i,a,s,!1)}const s7=()=>({...JT(),attrs:{}}),o7=e=>typeof e=="string"&&e.toLowerCase()==="svg";function LK(e,t,r,n){const i=A.useMemo(()=>{const a=s7();return a7(a,t,o7(n),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};i7(a,e.style,e),i.style={...a,...i.style}}return i}const IK=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eA(e){return typeof e!="string"||e.includes("-")?!1:!!(IK.indexOf(e)>-1||/[A-Z]/u.test(e))}function BK(e,t,r,{latestValues:n},i,a=!1){const o=(eA(e)?LK:MK)(t,n,i,e),c=SK(t,typeof e=="string",a),f=e!==A.Fragment?{...c,...o,ref:r}:{},{children:h}=t,p=A.useMemo(()=>Ti(h)?h.get():h,[h]);return A.createElement(e,{...f,children:p})}function DP(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function tA(e,t,r,n){if(typeof t=="function"){const[i,a]=DP(n);t=t(r!==void 0?r:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=DP(n);t=t(r!==void 0?r:e.custom,i,a)}return t}function Fg(e){return Ti(e)?e.get():e}function jK({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:UK(r,n,i,e),renderState:t()}}function UK(e,t,r,n){const i={},a=n(e,{});for(const m in a)i[m]=Fg(a[m]);let{initial:s,animate:o}=e;const c=Ex(e),f=r7(e);t&&f&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let h=r?r.initial===!1:!1;h=h||s===!1;const p=h?o:s;if(p&&typeof p!="boolean"&&!Sx(p)){const m=Array.isArray(p)?p:[p];for(let g=0;g<m.length;g++){const y=tA(e,m[g]);if(y){const{transitionEnd:x,transition:_,...w}=y;for(const T in w){let S=w[T];if(Array.isArray(S)){const O=h?S.length-1:0;S=S[O]}S!==null&&(i[T]=S)}for(const T in x)i[T]=x[T]}}}return i}const l7=e=>(t,r)=>{const n=A.useContext(wx),i=A.useContext(OT),a=()=>jK(e,t,n,i);return r?a():_X(a)};function rA(e,t,r){const{style:n}=e,i={};for(const a in n)(Ti(n[a])||t.style&&Ti(t.style[a])||n7(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=n[a]);return i}const zK=l7({scrapeMotionValuesFromProps:rA,createRenderState:JT});function c7(e,t,r){const n=rA(e,t,r);for(const i in e)if(Ti(e[i])||Ti(t[i])){const a=q0.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=e[i]}return n}const VK=l7({scrapeMotionValuesFromProps:c7,createRenderState:s7}),HK=Symbol.for("motionComponentSymbol");function Qf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $K(e,t,r){return A.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Qf(r)&&(r.current=n))},[t])}const nA=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),WK="framerAppearId",u7="data-"+nA(WK),f7=A.createContext({});function qK(e,t,r,n,i){const{visualElement:a}=A.useContext(wx),s=A.useContext(e7),o=A.useContext(OT),c=A.useContext(JL).reducedMotion,f=A.useRef(null);n=n||s.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:a,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:c}));const h=f.current,p=A.useContext(f7);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&GK(f.current,r,i,p);const m=A.useRef(!1);A.useInsertionEffect(()=>{h&&m.current&&h.update(r,o)});const g=r[u7],y=A.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return bX(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),y.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),h.enteringChildren=void 0)}),h}function GK(e,t,r,n){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:c,layoutRoot:f,layoutCrossfade:h}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:h7(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Qf(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:c,layoutRoot:f})}function h7(e){if(e)return e.options.allowProjection!==!1?e.projection:h7(e.parent)}function j_(e,{forwardMotionProps:t=!1}={},r,n){r&&_K(r);const i=eA(e)?VK:zK;function a(o,c){let f;const h={...A.useContext(JL),...o,layoutId:XK(o)},{isStatic:p}=h,m=TK(o),g=i(o,p);if(!p&&CT){YK();const y=KK(h);f=y.MeasureLayout,m.visualElement=qK(e,g,h,n,y.ProjectionNode)}return P.jsxs(wx.Provider,{value:m,children:[f&&m.visualElement?P.jsx(f,{visualElement:m.visualElement,...h}):null,BK(e,o,$K(g,m.visualElement,c),g,p,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=A.forwardRef(a);return s[HK]=e,s}function XK({layoutId:e}){const t=A.useContext(cL).id;return t&&e!==void 0?t+"-"+e:e}function YK(e,t){A.useContext(e7).strict}function KK(e){const{drag:t,layout:r}=b0;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function ZK(e,t){if(typeof Proxy>"u")return j_;const r=new Map,n=(a,s)=>j_(a,s,e,t),i=(a,s)=>n(a,s);return new Proxy(i,{get:(a,s)=>s==="create"?n:(r.has(s)||r.set(s,j_(s,void 0,e,t)),r.get(s))})}function d7({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function QK({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function JK(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function U_(e){return e===void 0||e===1}function AS({scale:e,scaleX:t,scaleY:r}){return!U_(e)||!U_(t)||!U_(r)}function Xc(e){return AS(e)||p7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function p7(e){return PP(e.x)||PP(e.y)}function PP(e){return e&&e!=="0%"}function ov(e,t,r){const n=e-r,i=t*n;return r+i}function MP(e,t,r,n,i){return i!==void 0&&(e=ov(e,i,n)),ov(e,r,n)+t}function CS(e,t=0,r=1,n,i){e.min=MP(e.min,t,r,n,i),e.max=MP(e.max,t,r,n,i)}function m7(e,{x:t,y:r}){CS(e.x,t.translate,t.scale,t.originPoint),CS(e.y,r.translate,r.scale,r.originPoint)}const RP=.999999999999,NP=1.0000000000001;function eZ(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=r[o],s=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&e0(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,m7(e,s)),n&&Xc(a.latestValues)&&e0(e,a.latestValues))}t.x<NP&&t.x>RP&&(t.x=1),t.y<NP&&t.y>RP&&(t.y=1)}function Jf(e,t){e.min=e.min+t,e.max=e.max+t}function FP(e,t,r,n,i=.5){const a=Rr(e.min,e.max,i);CS(e,t,r,a,n)}function e0(e,t){FP(e.x,t.x,t.scaleX,t.scale,t.originX),FP(e.y,t.y,t.scaleY,t.scale,t.originY)}function g7(e,t){return d7(JK(e.getBoundingClientRect(),t))}function tZ(e,t,r){const n=g7(e,r),{scroll:i}=t;return i&&(Jf(n.x,i.offset.x),Jf(n.y,i.offset.y)),n}const LP=()=>({translate:0,scale:1,origin:0,originPoint:0}),t0=()=>({x:LP(),y:LP()}),IP=()=>({min:0,max:0}),rn=()=>({x:IP(),y:IP()}),OS={current:null},v7={current:!1};function rZ(){if(v7.current=!0,!!CT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>OS.current=e.matches;e.addEventListener("change",t),t()}else OS.current=!1}const nZ=new WeakMap;function iZ(e,t,r){for(const n in t){const i=t[n],a=r[n];if(Ti(i))e.addValue(n,i);else if(Ti(a))e.addValue(n,_0(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(n);e.addValue(n,_0(s!==void 0?s:i,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const BP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class aZ{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=WT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=na.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Cr.render(this.render,!1,!0))};const{latestValues:c,renderState:f}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=f,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=Ex(r),this.isVariantNode=r7(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(r,{},this);for(const m in p){const g=p[m];c[m]!==void 0&&Ti(g)&&g.set(c[m])}}mount(t){this.current=t,nZ.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),v7.current||rZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:OS.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),cc(this.notifyUpdate),cc(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=G0.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Cr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in b0){const r=b0[t];if(!r)continue;const{isEnabled:n,Feature:i}=r;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<BP.length;n++){const i=BP[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=iZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=_0(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(uL(n)||hL(n))?n=parseFloat(n):!xK(n)&&uc.test(r)&&(n=GL(t,r)),this.setBaseTarget(t,Ti(n)?n.get():n)),Ti(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const a=tA(this.props,r,this.presenceContext?.custom);a&&(n=a[t])}if(r&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ti(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new RT),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){XT.render(this.render)}}class x7 extends aZ{constructor(){super(...arguments),this.KeyframeResolver=aK}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ti(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function y7(e,{style:t,vars:r},n,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,n);for(s in r)a.setProperty(s,r[s])}function sZ(e){return window.getComputedStyle(e)}class oZ extends x7{constructor(){super(...arguments),this.type="html",this.renderInstance=y7}readValueFromInstance(t,r){if(G0.has(r))return this.projection?.isProjecting?yS(r):EY(t,r);{const n=sZ(t),i=(LT(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return g7(t,r)}build(t,r,n){QT(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return rA(t,r,n)}}const _7=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function lZ(e,t,r,n){y7(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(_7.has(i)?i:nA(i),t.attrs[i])}class cZ extends x7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rn}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(G0.has(r)){const n=qL(r);return n&&n.default||0}return r=_7.has(r)?r:nA(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return c7(t,r,n)}build(t,r,n){a7(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,i){lZ(t,r,n,i)}mount(t){this.isSVGTag=o7(t.tagName),super.mount(t)}}const uZ=(e,t)=>eA(e)?new cZ(t):new oZ(t,{allowProjection:e!==A.Fragment});function o0(e,t,r){const n=e.getProps();return tA(n,t,r!==void 0?r:n.custom,e)}const kS=e=>Array.isArray(e);function fZ(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,_0(r))}function hZ(e){return kS(e)?e[e.length-1]||0:e}function dZ(e,t){const r=o0(e,t);let{transitionEnd:n={},transition:i={},...a}=r||{};a={...a,...n};for(const s in a){const o=hZ(a[s]);fZ(e,s,o)}}function pZ(e){return!!(Ti(e)&&e.add)}function DS(e,t){const r=e.getValue("willChange");if(pZ(r))return r.add(t);if(!r&&nl.WillChange){const n=new nl.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function b7(e){return e.props[u7]}const mZ=e=>e!==null;function gZ(e,{repeat:t,repeatType:r="loop"},n){const i=e.filter(mZ),a=t&&r!=="loop"&&t%2===1?0:i.length-1;return i[a]}const vZ={type:"spring",stiffness:500,damping:25,restSpeed:10},xZ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yZ={type:"keyframes",duration:.8},_Z={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bZ=(e,{keyframes:t})=>t.length>2?yZ:G0.has(e)?e.startsWith("scale")?xZ(t[1]):vZ:_Z;function wZ({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:c,elapsed:f,...h}){return!!Object.keys(h).length}const iA=(e,t,r,n={},i,a)=>s=>{const o=qT(n,e)||{},c=o.delay||n.delay||0;let{elapsed:f=0}=n;f=f-ho(c);const h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-f,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};wZ(o)||Object.assign(h,bZ(e,h)),h.duration&&(h.duration=ho(h.duration)),h.repeatDelay&&(h.repeatDelay=ho(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let p=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(ES(h),h.delay===0&&(p=!0)),(nl.instantAnimations||nl.skipAnimations)&&(p=!0,ES(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,p&&!a&&t.get()!==void 0){const m=gZ(h.keyframes,o);if(m!==void 0){Cr.update(()=>{h.onUpdate(m),h.onComplete()});return}}return o.isSync?new $T(h):new GY(h)};function SZ({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function w7(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;n&&(a=n);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const p=e.getValue(h,e.latestValues[h]??null),m=o[h];if(m===void 0||f&&SZ(f,h))continue;const g={delay:r,...qT(a||{},h)},y=p.get();if(y!==void 0&&!p.isAnimating&&!Array.isArray(m)&&m===y&&!g.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=b7(e);if(w){const T=window.MotionHandoffAnimation(w,h,Cr);T!==null&&(g.startTime=T,x=!0)}}DS(e,h),p.start(iA(h,p,m,e.shouldReduceMotion&&HL.has(h)?{type:!1}:g,e,x));const _=p.animation;_&&c.push(_)}return s&&Promise.all(c).then(()=>{Cr.update(()=>{s&&dZ(e,s)})}),c}function S7(e,t,r,n=0,i=1){const a=Array.from(e).sort((f,h)=>f.sortNodePosition(h)).indexOf(t),s=e.size,o=(s-1)*n;return typeof r=="function"?r(a,s):i===1?a*n:o-a*n}function PS(e,t,r={}){const n=o0(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const a=n?()=>Promise.all(w7(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:p}=i;return EZ(e,t,c,f,h,p,r)}:()=>Promise.resolve(),{when:o}=i;if(o){const[c,f]=o==="beforeChildren"?[a,s]:[s,a];return c().then(()=>f())}else return Promise.all([a(),s(r.delay)])}function EZ(e,t,r=0,n=0,i=0,a=1,s){const o=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),o.push(PS(c,t,{...s,delay:r+(typeof n=="function"?0:n)+S7(e.variantChildren,c,n,i,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(o)}function TZ(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>PS(e,a,r));n=Promise.all(i)}else if(typeof t=="string")n=PS(e,t,r);else{const i=typeof t=="function"?o0(e,t,r.custom):t;n=Promise.all(w7(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function E7(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const AZ=ZT.length;function T7(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?T7(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<AZ;r++){const n=ZT[r],i=e.props[n];(hp(i)||i===!1)&&(t[n]=i)}return t}const CZ=[...KT].reverse(),OZ=KT.length;function kZ(e){return t=>Promise.all(t.map(({animation:r,options:n})=>TZ(e,r,n)))}function DZ(e){let t=kZ(e),r=jP(),n=!0;const i=c=>(f,h)=>{const p=o0(e,h,c==="exit"?e.presenceContext?.custom:void 0);if(p){const{transition:m,transitionEnd:g,...y}=p;f={...f,...y,...g}}return f};function a(c){t=c(e)}function s(c){const{props:f}=e,h=T7(e.parent)||{},p=[],m=new Set;let g={},y=1/0;for(let _=0;_<OZ;_++){const w=CZ[_],T=r[w],S=f[w]!==void 0?f[w]:h[w],O=hp(S),C=w===c?T.isActive:null;C===!1&&(y=_);let k=S===h[w]&&S!==f[w]&&O;if(k&&n&&e.manuallyAnimateOnMount&&(k=!1),T.protectedKeys={...g},!T.isActive&&C===null||!S&&!T.prevProp||Sx(S)||typeof S=="boolean")continue;const D=PZ(T.prevProp,S);let M=D||w===c&&T.isActive&&!k&&O||_>y&&O,N=!1;const z=Array.isArray(S)?S:[S];let H=z.reduce(i(w),{});C===!1&&(H={});const{prevResolvedValues:B={}}=T,te={...B,...H},ne=ee=>{M=!0,m.has(ee)&&(N=!0,m.delete(ee)),T.needsAnimating[ee]=!0;const ce=e.getValue(ee);ce&&(ce.liveStyle=!1)};for(const ee in te){const ce=H[ee],J=B[ee];if(g.hasOwnProperty(ee))continue;let R=!1;kS(ce)&&kS(J)?R=!E7(ce,J):R=ce!==J,R?ce!=null?ne(ee):m.add(ee):ce!==void 0&&m.has(ee)?ne(ee):T.protectedKeys[ee]=!0}T.prevProp=S,T.prevResolvedValues=H,T.isActive&&(g={...g,...H}),n&&e.blockInitialAnimation&&(M=!1);const le=k&&D;M&&(!le||N)&&p.push(...z.map(ee=>{const ce={type:w};if(typeof ee=="string"&&n&&!le&&e.manuallyAnimateOnMount&&e.parent){const{parent:J}=e,R=o0(J,ee);if(J.enteringChildren&&R){const{delayChildren:se}=R.transition||{};ce.delay=S7(J.enteringChildren,e,se)}}return{animation:ee,options:ce}}))}if(m.size){const _={};if(typeof f.initial!="boolean"){const w=o0(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(_.transition=w.transition)}m.forEach(w=>{const T=e.getBaseTarget(w),S=e.getValue(w);S&&(S.liveStyle=!0),_[w]=T??null}),p.push({animation:_})}let x=!!p.length;return n&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),n=!1,x?t(p):Promise.resolve()}function o(c,f){if(r[c].isActive===f)return Promise.resolve();e.variantChildren?.forEach(p=>p.animationState?.setActive(c,f)),r[c].isActive=f;const h=s(c);for(const p in r)r[p].protectedKeys={};return h}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>r,reset:()=>{r=jP(),n=!0}}}function PZ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!E7(t,e):!1}function $c(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jP(){return{animate:$c(!0),whileInView:$c(),whileHover:$c(),whileTap:$c(),whileDrag:$c(),whileFocus:$c(),exit:$c()}}class yc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class MZ extends yc{constructor(t){super(t),t.animationState||(t.animationState=DZ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Sx(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let RZ=0;class NZ extends yc{constructor(){super(...arguments),this.id=RZ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);r&&!t&&i.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const FZ={animation:{Feature:MZ},exit:{Feature:NZ}};function pp(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function nm(e){return{point:{x:e.pageX,y:e.pageY}}}const LZ=e=>t=>YT(t)&&e(t,nm(t));function Ld(e,t,r,n){return pp(e,t,LZ(r),n)}const A7=1e-4,IZ=1-A7,BZ=1+A7,C7=.01,jZ=0-C7,UZ=0+C7;function Wi(e){return e.max-e.min}function zZ(e,t,r){return Math.abs(e-t)<=r}function UP(e,t,r,n=.5){e.origin=n,e.originPoint=Rr(t.min,t.max,e.origin),e.scale=Wi(r)/Wi(t),e.translate=Rr(r.min,r.max,e.origin)-e.originPoint,(e.scale>=IZ&&e.scale<=BZ||isNaN(e.scale))&&(e.scale=1),(e.translate>=jZ&&e.translate<=UZ||isNaN(e.translate))&&(e.translate=0)}function Id(e,t,r,n){UP(e.x,t.x,r.x,n?n.originX:void 0),UP(e.y,t.y,r.y,n?n.originY:void 0)}function zP(e,t,r){e.min=r.min+t.min,e.max=e.min+Wi(t)}function VZ(e,t,r){zP(e.x,t.x,r.x),zP(e.y,t.y,r.y)}function VP(e,t,r){e.min=t.min-r.min,e.max=e.min+Wi(t)}function Bd(e,t,r){VP(e.x,t.x,r.x),VP(e.y,t.y,r.y)}function fs(e){return[e("x"),e("y")]}const O7=({current:e})=>e?e.ownerDocument.defaultView:null,HP=(e,t)=>Math.abs(e-t);function HZ(e,t){const r=HP(e.x,t.x),n=HP(e.y,t.y);return Math.sqrt(r**2+n**2)}class k7{constructor(t,r,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=V_(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=HZ(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:x}=m,{timestamp:_}=ti;this.history.push({...x,timestamp:_});const{onStart:w,onMove:T}=this.handlers;g||(w&&w(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=z_(g,this.transformPagePoint),Cr.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=V_(m.type==="pointercancel"?this.lastMoveEventInfo:z_(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,w),x&&x(m,w)},!YT(t))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=i||window;const o=nm(t),c=z_(o,this.transformPagePoint),{point:f}=c,{timestamp:h}=ti;this.history=[{...f,timestamp:h}];const{onSessionStart:p}=r;p&&p(t,V_(c,this.history)),this.removeListeners=em(Ld(this.contextWindow,"pointermove",this.handlePointerMove),Ld(this.contextWindow,"pointerup",this.handlePointerUp),Ld(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cc(this.updatePoint)}}function z_(e,t){return t?{point:t(e.point)}:e}function $P(e,t){return{x:e.x-t.x,y:e.y-t.y}}function V_({point:e},t){return{point:e,delta:$P(e,D7(t)),offset:$P(e,$Z(t)),velocity:WZ(t,.1)}}function $Z(e){return e[0]}function D7(e){return e[e.length-1]}function WZ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=D7(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>ho(t)));)r--;if(!n)return{x:0,y:0};const a=po(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function qZ(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Rr(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Rr(r,e,n.max):Math.min(e,r)),e}function WP(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function GZ(e,{top:t,left:r,bottom:n,right:i}){return{x:WP(e.x,r,i),y:WP(e.y,t,n)}}function qP(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function XZ(e,t){return{x:qP(e.x,t.x),y:qP(e.y,t.y)}}function YZ(e,t){let r=.5;const n=Wi(e),i=Wi(t);return i>n?r=cp(t.min,t.max-n,e.min):n>i&&(r=cp(e.min,e.max-i,t.min)),rl(0,1,r)}function KZ(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const MS=.35;function ZZ(e=MS){return e===!1?e=0:e===!0&&(e=MS),{x:GP(e,"left","right"),y:GP(e,"top","bottom")}}function GP(e,t,r){return{min:XP(e,t),max:XP(e,r)}}function XP(e,t){return typeof e=="number"?e:e[t]||0}const QZ=new WeakMap;class JZ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=p=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(nm(p).point)},s=(p,m)=>{const{drag:g,dragPropagation:y,onDragStart:x}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=uK(g),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fs(w=>{let T=this.getAxisMotionValue(w).get()||0;if(mo.test(T)){const{projection:S}=this.visualElement;if(S&&S.layout){const O=S.layout.layoutBox[w];O&&(T=Wi(O)*(parseFloat(T)/100))}}this.originPoint[w]=T}),x&&Cr.postRender(()=>x(p,m)),DS(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},o=(p,m)=>{this.latestPointerEvent=p,this.latestPanInfo=m;const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:x,onDrag:_}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:w}=m;if(y&&this.currentDirection===null){this.currentDirection=eQ(w),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",m.point,w),this.updateAxis("y",m.point,w),this.visualElement.render(),_&&_(p,m)},c=(p,m)=>{this.latestPointerEvent=p,this.latestPanInfo=m,this.stop(p,m),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>fs(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new k7(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:n,contextWindow:O7(this.visualElement)})}stop(t,r){const n=t||this.latestPointerEvent,i=r||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!n)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&Cr.postRender(()=>o(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!H1(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=qZ(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Qf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=GZ(n.layoutBox,t):this.constraints=!1,this.elastic=ZZ(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&fs(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=KZ(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Qf(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=tZ(n,i.root,this.visualElement.getTransformPagePoint());let s=XZ(i.layout.layoutBox,a);if(r){const o=r(QK(s));this.hasMutatedConstraints=!!o,o&&(s=d7(o))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),c=this.constraints||{},f=fs(h=>{if(!H1(h,r,this.currentDirection))return;let p=c&&c[h]||{};s&&(p={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:n?t[h]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...p};return this.startAxisValueAnimation(h,y)});return Promise.all(f).then(o)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return DS(this.visualElement,t),n.start(iA(t,n,0,r,this.visualElement,!1))}stopAnimation(){fs(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fs(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){fs(r=>{const{drag:n}=this.getProps();if(!H1(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[r];a.set(t[r]-Rr(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Qf(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};fs(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const c=o.get();i[s]=YZ({min:c,max:c},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),fs(s=>{if(!H1(s,t,null))return;const o=this.getAxisMotionValue(s),{min:c,max:f}=this.constraints[s];o.set(Rr(c,f,i[s]))})}addListeners(){if(!this.visualElement.current)return;QZ.set(this.visualElement,this);const t=this.visualElement.current,r=Ld(t,"pointerdown",c=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Qf(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Cr.read(n);const s=pp(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f})=>{this.isDragging&&f&&(fs(h=>{const p=this.getAxisMotionValue(h);p&&(this.originPoint[h]+=c[h].translate,p.set(p.get()+c[h].translate))}),this.visualElement.render())});return()=>{s(),r(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=MS,dragMomentum:o=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function H1(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function eQ(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class tQ extends yc{constructor(t){super(t),this.removeGroupControls=ws,this.removeListeners=ws,this.controls=new JZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ws}unmount(){this.removeGroupControls(),this.removeListeners()}}const YP=e=>(t,r)=>{e&&Cr.postRender(()=>e(t,r))};class rQ extends yc{constructor(){super(...arguments),this.removePointerDownListener=ws}onPointerDown(t){this.session=new k7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:O7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:YP(t),onStart:YP(r),onMove:n,onEnd:(a,s)=>{delete this.session,i&&Cr.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ld(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Lg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function KP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const id={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pt.test(e))e=parseFloat(e);else return e;const r=KP(e,t.target.x),n=KP(e,t.target.y);return`${r}% ${n}%`}},nQ={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=uc.parse(e);if(i.length>5)return n;const a=uc.createTransformer(e),s=typeof i[0]!="number"?1:0,o=r.x.scale*t.x,c=r.y.scale*t.y;i[0+s]/=o,i[1+s]/=c;const f=Rr(o,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=f),typeof i[3+s]=="number"&&(i[3+s]/=f),a(i)}};let H_=!1;class iQ extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;AK(aQ),a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),H_&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Lg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,{projection:s}=n;return s&&(s.isPresent=a,H_=!0,i||t.layoutDependency!==r||r===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Cr.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),XT.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;H_=!0,i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function P7(e){const[t,r]=yK(),n=A.useContext(cL);return P.jsx(iQ,{...e,layoutGroup:n,switchLayoutGroup:A.useContext(f7),isPresent:t,safeToRemove:r})}const aQ={borderRadius:{...id,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:id,borderTopRightRadius:id,borderBottomLeftRadius:id,borderBottomRightRadius:id,boxShadow:nQ};function sQ(e,t,r){const n=Ti(e)?e:_0(e);return n.start(iA("",n,t,r)),n.animation}const oQ=(e,t)=>e.depth-t.depth;class lQ{constructor(){this.children=[],this.isDirty=!1}add(t){kT(this.children,t),this.isDirty=!0}remove(t){DT(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(oQ),this.isDirty=!1,this.children.forEach(t)}}function cQ(e,t){const r=na.now(),n=({timestamp:i})=>{const a=i-r;a>=t&&(cc(n),e(a-t))};return Cr.setup(n,!0),()=>cc(n)}const M7=["TopLeft","TopRight","BottomLeft","BottomRight"],uQ=M7.length,ZP=e=>typeof e=="string"?parseFloat(e):e,QP=e=>typeof e=="number"||pt.test(e);function fQ(e,t,r,n,i,a){i?(e.opacity=Rr(0,r.opacity??1,hQ(n)),e.opacityExit=Rr(t.opacity??1,0,dQ(n))):a&&(e.opacity=Rr(t.opacity??1,r.opacity??1,n));for(let s=0;s<uQ;s++){const o=`border${M7[s]}Radius`;let c=JP(t,o),f=JP(r,o);if(c===void 0&&f===void 0)continue;c||(c=0),f||(f=0),c===0||f===0||QP(c)===QP(f)?(e[o]=Math.max(Rr(ZP(c),ZP(f),n),0),(mo.test(f)||mo.test(c))&&(e[o]+="%")):e[o]=f}(t.rotate||r.rotate)&&(e.rotate=Rr(t.rotate||0,r.rotate||0,n))}function JP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const hQ=R7(0,.5,_L),dQ=R7(.5,.95,ws);function R7(e,t,r){return n=>n<e?0:n>t?1:r(cp(e,t,n))}function eM(e,t){e.min=t.min,e.max=t.max}function rs(e,t){eM(e.x,t.x),eM(e.y,t.y)}function tM(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rM(e,t,r,n,i){return e-=t,e=ov(e,1/r,n),i!==void 0&&(e=ov(e,1/i,n)),e}function pQ(e,t=0,r=1,n=.5,i,a=e,s=e){if(mo.test(t)&&(t=parseFloat(t),t=Rr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=Rr(a.min,a.max,n);e===a&&(o-=t),e.min=rM(e.min,t,r,o,i),e.max=rM(e.max,t,r,o,i)}function nM(e,t,[r,n,i],a,s){pQ(e,t[r],t[n],t[i],t.scale,a,s)}const mQ=["x","scaleX","originX"],gQ=["y","scaleY","originY"];function iM(e,t,r,n){nM(e.x,t,mQ,r?r.x:void 0,n?n.x:void 0),nM(e.y,t,gQ,r?r.y:void 0,n?n.y:void 0)}function aM(e){return e.translate===0&&e.scale===1}function N7(e){return aM(e.x)&&aM(e.y)}function sM(e,t){return e.min===t.min&&e.max===t.max}function vQ(e,t){return sM(e.x,t.x)&&sM(e.y,t.y)}function oM(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function F7(e,t){return oM(e.x,t.x)&&oM(e.y,t.y)}function lM(e){return Wi(e.x)/Wi(e.y)}function cM(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class xQ{constructor(){this.members=[]}add(t){kT(this.members,t),t.scheduleRender()}remove(t){if(DT(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function yQ(e,t,r){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=r?.z||0;if((i||a||s)&&(n=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:f,rotate:h,rotateX:p,rotateY:m,skewX:g,skewY:y}=r;f&&(n=`perspective(${f}px) ${n}`),h&&(n+=`rotate(${h}deg) `),p&&(n+=`rotateX(${p}deg) `),m&&(n+=`rotateY(${m}deg) `),g&&(n+=`skewX(${g}deg) `),y&&(n+=`skewY(${y}deg) `)}const o=e.x.scale*t.x,c=e.y.scale*t.y;return(o!==1||c!==1)&&(n+=`scale(${o}, ${c})`),n||"none"}const $_=["","X","Y","Z"],_Q=1e3;let bQ=0;function W_(e,t,r,n){const{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function L7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=b7(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Cr,!(i||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&L7(n)}function I7({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=bQ++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(EQ),this.nodes.forEach(OQ),this.nodes.forEach(kQ),this.nodes.forEach(TQ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new lQ)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new RT),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const c=this.eventHandlers.get(s);c&&c.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=QL(s)&&!gK(s),this.instance=s;const{layoutId:o,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||o)&&(this.isLayoutDirty=!0),e){let h,p=0;const m=()=>this.root.updateBlockedByResize=!1;Cr.read(()=>{p=window.innerWidth}),e(s,()=>{const g=window.innerWidth;g!==p&&(p=g,this.root.updateBlockedByResize=!0,h&&h(),h=cQ(m,250),Lg.hasAnimatedSinceResize&&(Lg.hasAnimatedSinceResize=!1,this.nodes.forEach(hM)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&f&&(o||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||NQ,{onLayoutAnimationStart:x,onLayoutAnimationComplete:_}=f.getProps(),w=!this.targetLayout||!F7(this.targetLayout,g),T=!p&&m;if(this.options.layoutRoot||this.resumeFrom||T||p&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...qT(y,"layout"),onPlay:x,onComplete:_};(f.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(h,T)}else p||hM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cc(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(DQ),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&L7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const p=this.path[h];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:o,layout:c}=this.options;if(o===void 0&&!c)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(uM);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fM);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(CQ),this.nodes.forEach(wQ),this.nodes.forEach(SQ)):this.nodes.forEach(fM),this.clearAllSnapshots();const o=na.now();ti.delta=rl(0,1e3/60,o-ti.timestamp),ti.timestamp=o,ti.isProcessing=!0,R_.update.process(ti),R_.preRender.process(ti),R_.render.process(ti),ti.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,XT.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AQ),this.sharedNodes.forEach(PQ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Cr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Cr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Wi(this.snapshot.measuredBox.x)&&!Wi(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!N7(this.projectionDelta),c=this.getTransformTemplate(),f=c?c(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;s&&this.instance&&(o||Xc(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let c=this.removeElementScroll(o);return s&&(c=this.removeTransform(c)),FQ(c),{animationId:this.root.animationId,measuredBox:o,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return rn();const o=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(LQ))){const{scroll:f}=this.root;f&&(Jf(o.x,f.offset.x),Jf(o.y,f.offset.y))}return o}removeElementScroll(s){const o=rn();if(rs(o,s),this.scroll?.wasRoot)return o;for(let c=0;c<this.path.length;c++){const f=this.path[c],{scroll:h,options:p}=f;f!==this.root&&h&&p.layoutScroll&&(h.wasRoot&&rs(o,s),Jf(o.x,h.offset.x),Jf(o.y,h.offset.y))}return o}applyTransform(s,o=!1){const c=rn();rs(c,s);for(let f=0;f<this.path.length;f++){const h=this.path[f];!o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&e0(c,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Xc(h.latestValues)&&e0(c,h.latestValues)}return Xc(this.latestValues)&&e0(c,this.latestValues),c}removeTransform(s){const o=rn();rs(o,s);for(let c=0;c<this.path.length;c++){const f=this.path[c];if(!f.instance||!Xc(f.latestValues))continue;AS(f.latestValues)&&f.updateSnapshot();const h=rn(),p=f.measurePageBox();rs(h,p),iM(o,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return Xc(this.latestValues)&&iM(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ti.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==o;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=ti.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rn(),this.relativeTargetOrigin=rn(),Bd(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),rs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=rn(),this.targetWithTransforms=rn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),VZ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rs(this.target,this.layout.layoutBox),m7(this.target,this.targetDelta)):rs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rn(),this.relativeTargetOrigin=rn(),Bd(this.relativeTargetOrigin,this.target,m.target),rs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||AS(this.parent.latestValues)||p7(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),o=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ti.timestamp&&(c=!1),c)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;rs(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,m=this.treeScale.y;eZ(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=rn());const{target:g}=s;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tM(this.prevProjectionDelta.x,this.projectionDelta.x),tM(this.prevProjectionDelta.y,this.projectionDelta.y)),Id(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==m||!cM(this.projectionDelta.x,this.prevProjectionDelta.x)||!cM(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=t0(),this.projectionDelta=t0(),this.projectionDeltaWithTransform=t0()}setAnimationOrigin(s,o=!1){const c=this.snapshot,f=c?c.latestValues:{},h={...this.latestValues},p=t0();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const m=rn(),g=c?c.source:void 0,y=this.layout?this.layout.source:void 0,x=g!==y,_=this.getStack(),w=!_||_.members.length<=1,T=!!(x&&!w&&this.options.crossfade===!0&&!this.path.some(RQ));this.animationProgress=0;let S;this.mixTargetDelta=O=>{const C=O/1e3;dM(p.x,s.x,C),dM(p.y,s.y,C),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bd(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),MQ(this.relativeTarget,this.relativeTargetOrigin,m,C),S&&vQ(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=rn()),rs(S,this.relativeTarget)),x&&(this.animationValues=h,fQ(h,f,this.latestValues,C,T,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(cc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Cr.update(()=>{Lg.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_0(0)),this.currentAnimation=sQ(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_Q),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:c,layout:f,latestValues:h}=s;if(!(!o||!c||!f)){if(this!==s&&this.layout&&f&&B7(this.options.animationType,this.layout.layoutBox,f.layoutBox)){c=this.target||rn();const p=Wi(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+p;const m=Wi(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}rs(o,c),e0(o,h),Id(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new xQ),this.sharedNodes.get(s).add(o);const f=o.options.initialPromotionConfig;o.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(o=!0),!o)return;const f={};c.z&&W_("z",s,f,this.animationValues);for(let h=0;h<$_.length;h++)W_(`rotate${$_[h]}`,s,f,this.animationValues),W_(`skew${$_[h]}`,s,f,this.animationValues);s.render();for(const h in f)s.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Fg(o?.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Fg(o?.pointerEvents)||""),this.hasProjected&&!Xc(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=f.animationValues||f.latestValues;this.applyTransformsToTarget();let p=yQ(this.projectionDeltaWithTransform,this.treeScale,h);c&&(p=c(h,p)),s.transform=p;const{x:m,y:g}=this.projectionDelta;s.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,f.animationValues?s.opacity=f===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const y in dp){if(h[y]===void 0)continue;const{correct:x,applyTo:_,isCSSVariable:w}=dp[y],T=p==="none"?h[y]:x(h[y],f);if(_){const S=_.length;for(let O=0;O<S;O++)s[_[O]]=T}else w?this.options.visualElement.renderState.vars[y]=T:s[y]=T}this.options.layoutId&&(s.pointerEvents=f===this?Fg(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(uM),this.root.sharedNodes.clear()}}}function wQ(e){e.updateLayout()}function SQ(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?fs(h=>{const p=a?t.measuredBox[h]:t.layoutBox[h],m=Wi(p);p.min=r[h].min,p.max=p.min+m}):B7(i,t.layoutBox,r)&&fs(h=>{const p=a?t.measuredBox[h]:t.layoutBox[h],m=Wi(r[h]);p.max=p.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const s=t0();Id(s,r,t.layoutBox);const o=t0();a?Id(o,e.applyTransform(n,!0),t.measuredBox):Id(o,r,t.layoutBox);const c=!N7(s);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:m}=h;if(p&&m){const g=rn();Bd(g,t.layoutBox,p.layoutBox);const y=rn();Bd(y,r,m.layoutBox),F7(g,y)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function EQ(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function TQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AQ(e){e.clearSnapshot()}function uM(e){e.clearMeasurements()}function fM(e){e.isLayoutDirty=!1}function CQ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hM(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function OQ(e){e.resolveTargetDelta()}function kQ(e){e.calcProjection()}function DQ(e){e.resetSkewAndRotation()}function PQ(e){e.removeLeadSnapshot()}function dM(e,t,r){e.translate=Rr(t.translate,0,r),e.scale=Rr(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function pM(e,t,r,n){e.min=Rr(t.min,r.min,n),e.max=Rr(t.max,r.max,n)}function MQ(e,t,r,n){pM(e.x,t.x,r.x,n),pM(e.y,t.y,r.y,n)}function RQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const NQ={duration:.45,ease:[.4,0,.1,1]},mM=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gM=mM("applewebkit/")&&!mM("chrome/")?Math.round:ws;function vM(e){e.min=gM(e.min),e.max=gM(e.max)}function FQ(e){vM(e.x),vM(e.y)}function B7(e,t,r){return e==="position"||e==="preserve-aspect"&&!zZ(lM(t),lM(r),.2)}function LQ(e){return e!==e.root&&e.scroll?.wasRoot}const IQ=I7({attachResizeListener:(e,t)=>pp(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),q_={current:void 0},j7=I7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!q_.current){const e=new IQ({});e.mount(window),e.setOptions({layoutScroll:!0}),q_.current=e}return q_.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),BQ={pan:{Feature:rQ},drag:{Feature:tQ,ProjectionNode:j7,MeasureLayout:P7}};function xM(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const i="onHover"+r,a=n[i];a&&Cr.postRender(()=>a(t,nm(t)))}class jQ extends yc{mount(){const{current:t}=this.node;t&&(this.unmount=fK(t,(r,n)=>(xM(this.node,n,"Start"),i=>xM(this.node,i,"End"))))}unmount(){}}class UQ extends yc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=em(pp(this.node.current,"focus",()=>this.onFocus()),pp(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yM(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const i="onTap"+(r==="End"?"":r),a=n[i];a&&Cr.postRender(()=>a(t,nm(t)))}class zQ extends yc{mount(){const{current:t}=this.node;t&&(this.unmount=mK(t,(r,n)=>(yM(this.node,n,"Start"),(i,{success:a})=>yM(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const RS=new WeakMap,G_=new WeakMap,VQ=e=>{const t=RS.get(e.target);t&&t(e)},HQ=e=>{e.forEach(VQ)};function $Q({root:e,...t}){const r=e||document;G_.has(r)||G_.set(r,{});const n=G_.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(HQ,{root:e,...t})),n[i]}function WQ(e,t,r){const n=$Q(t);return RS.set(e,r),n.observe(e),()=>{RS.delete(e),n.unobserve(e)}}const qQ={some:0,all:1};class GQ extends yc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:qQ[i]},o=c=>{const{isIntersecting:f}=c;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:p}=this.node.getProps(),m=f?h:p;m&&m(c)};return WQ(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(XQ(t,r))&&this.startObserver()}unmount(){}}function XQ({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const YQ={inView:{Feature:GQ},tap:{Feature:zQ},focus:{Feature:UQ},hover:{Feature:jQ}},KQ={layout:{ProjectionNode:j7,MeasureLayout:P7}},ZQ={...FZ,...YQ,...BQ,...KQ},QQ=ZK(ZQ,uZ),JQ=(e,t)=>{const r=new Set([...Object.keys(e),...t.flatMap(i=>Object.keys(i))]),n={};return r.forEach(i=>{n[i]=[e[i],...t.map(a=>a[i])]}),n},eJ=({text:e="",delay:t=200,className:r="",animateBy:n="words",direction:i="top",threshold:a=.1,rootMargin:s="0px",animationFrom:o,animationTo:c,easing:f=m=>m,onAnimationComplete:h,stepDuration:p=.35})=>{const m=n==="words"?e.split(" "):e.split(""),[g,y]=A.useState(!1),x=A.useRef(null);A.useEffect(()=>{if(!x.current)return;const D=new IntersectionObserver(([M])=>{M.isIntersecting&&(y(!0),D.unobserve(x.current))},{threshold:a,rootMargin:s});return D.observe(x.current),()=>D.disconnect()},[a,s]);const _=A.useMemo(()=>i==="top"?{filter:"blur(10px)",opacity:0,y:-50}:{filter:"blur(10px)",opacity:0,y:50},[i]),w=A.useMemo(()=>[{filter:"blur(5px)",opacity:.5,y:i==="top"?5:-5},{filter:"blur(0px)",opacity:1,y:0}],[i]),T=o??_,S=c??w,O=S.length+1,C=p*(O-1),k=Array.from({length:O},(D,M)=>O===1?0:M/(O-1));return P.jsx("p",{ref:x,className:r,style:{display:"flex",flexWrap:"wrap"},children:m.map((D,M)=>{const N=JQ(T,S),z={duration:C,times:k,delay:M*t/1e3};return z.ease=f,P.jsxs(QQ.span,{className:"inline-block will-change-[transform,filter,opacity]",initial:T,animate:g?N:T,transition:z,onAnimationComplete:M===m.length-1?h:void 0,children:[D===" "?" ":D,n==="words"&&M<m.length-1&&" "]},M)})})};function jd(e){let t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function NS(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function tJ(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function _M(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function bM(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function rJ(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function nJ(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function X_(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function iJ(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function aJ(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function wM(e){let t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function sJ(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function oJ(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function FS(e,t){let r=t[0],n=t[1],i=t[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function U7(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function SM(e,t,r){let n=t[0],i=t[1],a=t[2],s=r[0],o=r[1],c=r[2];return e[0]=i*c-a*o,e[1]=a*s-n*c,e[2]=n*o-i*s,e}function lJ(e,t,r,n){let i=t[0],a=t[1],s=t[2];return e[0]=i+n*(r[0]-i),e[1]=a+n*(r[1]-a),e[2]=s+n*(r[2]-s),e}function cJ(e,t,r,n,i){const a=Math.exp(-n*i);let s=t[0],o=t[1],c=t[2];return e[0]=r[0]+(s-r[0])*a,e[1]=r[1]+(o-r[1])*a,e[2]=r[2]+(c-r[2])*a,e}function uJ(e,t,r){let n=t[0],i=t[1],a=t[2],s=r[3]*n+r[7]*i+r[11]*a+r[15];return s=s||1,e[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/s,e[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/s,e[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/s,e}function fJ(e,t,r){let n=t[0],i=t[1],a=t[2],s=r[3]*n+r[7]*i+r[11]*a+r[15];return s=s||1,e[0]=(r[0]*n+r[4]*i+r[8]*a)/s,e[1]=(r[1]*n+r[5]*i+r[9]*a)/s,e[2]=(r[2]*n+r[6]*i+r[10]*a)/s,e}function hJ(e,t,r){let n=t[0],i=t[1],a=t[2];return e[0]=n*r[0]+i*r[3]+a*r[6],e[1]=n*r[1]+i*r[4]+a*r[7],e[2]=n*r[2]+i*r[5]+a*r[8],e}function dJ(e,t,r){let n=t[0],i=t[1],a=t[2],s=r[0],o=r[1],c=r[2],f=r[3],h=o*a-c*i,p=c*n-s*a,m=s*i-o*n,g=o*m-c*p,y=c*h-s*m,x=s*p-o*h,_=f*2;return h*=_,p*=_,m*=_,g*=2,y*=2,x*=2,e[0]=n+h+g,e[1]=i+p+y,e[2]=a+m+x,e}const pJ=function(){const e=[0,0,0],t=[0,0,0];return function(r,n){NS(e,r),NS(t,n),FS(e,e),FS(t,t);let i=U7(e,t);return i>1?0:i<-1?Math.PI:Math.acos(i)}}();function mJ(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}class Vs extends Array{constructor(t=0,r=t,n=t){return super(t,r,n),this}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(t){this[0]=t}set y(t){this[1]=t}set z(t){this[2]=t}set(t,r=t,n=t){return t.length?this.copy(t):(tJ(this,t,r,n),this)}copy(t){return NS(this,t),this}add(t,r){return r?_M(this,t,r):_M(this,this,t),this}sub(t,r){return r?bM(this,t,r):bM(this,this,t),this}multiply(t){return t.length?rJ(this,this,t):X_(this,this,t),this}divide(t){return t.length?nJ(this,this,t):X_(this,this,1/t),this}inverse(t=this){return oJ(this,t),this}len(){return jd(this)}distance(t){return t?iJ(this,t):jd(this)}squaredLen(){return wM(this)}squaredDistance(t){return t?aJ(this,t):wM(this)}negate(t=this){return sJ(this,t),this}cross(t,r){return r?SM(this,t,r):SM(this,this,t),this}scale(t){return X_(this,this,t),this}normalize(){return FS(this,this),this}dot(t){return U7(this,t)}equals(t){return mJ(this,t)}applyMatrix3(t){return hJ(this,this,t),this}applyMatrix4(t){return uJ(this,this,t),this}scaleRotateMatrix4(t){return fJ(this,this,t),this}applyQuaternion(t){return dJ(this,this,t),this}angle(t){return pJ(this,t)}lerp(t,r){return lJ(this,this,t,r),this}smoothLerp(t,r,n){return cJ(this,this,t,r,n),this}clone(){return new Vs(this[0],this[1],this[2])}fromArray(t,r=0){return this[0]=t[r],this[1]=t[r+1],this[2]=t[r+2],this}toArray(t=[],r=0){return t[r]=this[0],t[r+1]=this[1],t[r+2]=this[2],t}transformDirection(t){const r=this[0],n=this[1],i=this[2];return this[0]=t[0]*r+t[4]*n+t[8]*i,this[1]=t[1]*r+t[5]*n+t[9]*i,this[2]=t[2]*r+t[6]*n+t[10]*i,this.normalize()}}const EM=new Vs;let gJ=1,vJ=1,TM=!1;class xJ{constructor(t,r={}){t.canvas||console.error("gl not passed as first argument to Geometry"),this.gl=t,this.attributes=r,this.id=gJ++,this.VAOs={},this.drawRange={start:0,count:0},this.instancedCount=0,this.gl.renderer.bindVertexArray(null),this.gl.renderer.currentGeometry=null,this.glState=this.gl.renderer.state;for(let n in r)this.addAttribute(n,r[n])}addAttribute(t,r){if(this.attributes[t]=r,r.id=vJ++,r.size=r.size||1,r.type=r.type||(r.data.constructor===Float32Array?this.gl.FLOAT:r.data.constructor===Uint16Array?this.gl.UNSIGNED_SHORT:this.gl.UNSIGNED_INT),r.target=t==="index"?this.gl.ELEMENT_ARRAY_BUFFER:this.gl.ARRAY_BUFFER,r.normalized=r.normalized||!1,r.stride=r.stride||0,r.offset=r.offset||0,r.count=r.count||(r.stride?r.data.byteLength/r.stride:r.data.length/r.size),r.divisor=r.instanced||0,r.needsUpdate=!1,r.usage=r.usage||this.gl.STATIC_DRAW,r.buffer||this.updateAttribute(r),r.divisor){if(this.isInstanced=!0,this.instancedCount&&this.instancedCount!==r.count*r.divisor)return console.warn("geometry has multiple instanced buffers of different length"),this.instancedCount=Math.min(this.instancedCount,r.count*r.divisor);this.instancedCount=r.count*r.divisor}else t==="index"?this.drawRange.count=r.count:this.attributes.index||(this.drawRange.count=Math.max(this.drawRange.count,r.count))}updateAttribute(t){const r=!t.buffer;r&&(t.buffer=this.gl.createBuffer()),this.glState.boundBuffer!==t.buffer&&(this.gl.bindBuffer(t.target,t.buffer),this.glState.boundBuffer=t.buffer),r?this.gl.bufferData(t.target,t.data,t.usage):this.gl.bufferSubData(t.target,0,t.data),t.needsUpdate=!1}setIndex(t){this.addAttribute("index",t)}setDrawRange(t,r){this.drawRange.start=t,this.drawRange.count=r}setInstancedCount(t){this.instancedCount=t}createVAO(t){this.VAOs[t.attributeOrder]=this.gl.renderer.createVertexArray(),this.gl.renderer.bindVertexArray(this.VAOs[t.attributeOrder]),this.bindAttributes(t)}bindAttributes(t){t.attributeLocations.forEach((r,{name:n,type:i})=>{if(!this.attributes[n]){console.warn(`active attribute ${n} not being supplied`);return}const a=this.attributes[n];this.gl.bindBuffer(a.target,a.buffer),this.glState.boundBuffer=a.buffer;let s=1;i===35674&&(s=2),i===35675&&(s=3),i===35676&&(s=4);const o=a.size/s,c=s===1?0:s*s*4,f=s===1?0:s*4;for(let h=0;h<s;h++)this.gl.vertexAttribPointer(r+h,o,a.type,a.normalized,a.stride+c,a.offset+h*f),this.gl.enableVertexAttribArray(r+h),this.gl.renderer.vertexAttribDivisor(r+h,a.divisor)}),this.attributes.index&&this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.attributes.index.buffer)}draw({program:t,mode:r=this.gl.TRIANGLES}){this.gl.renderer.currentGeometry!==`${this.id}_${t.attributeOrder}`&&(this.VAOs[t.attributeOrder]||this.createVAO(t),this.gl.renderer.bindVertexArray(this.VAOs[t.attributeOrder]),this.gl.renderer.currentGeometry=`${this.id}_${t.attributeOrder}`),t.attributeLocations.forEach((i,{name:a})=>{const s=this.attributes[a];s.needsUpdate&&this.updateAttribute(s)});let n=2;this.attributes.index?.type===this.gl.UNSIGNED_INT&&(n=4),this.isInstanced?this.attributes.index?this.gl.renderer.drawElementsInstanced(r,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*n,this.instancedCount):this.gl.renderer.drawArraysInstanced(r,this.drawRange.start,this.drawRange.count,this.instancedCount):this.attributes.index?this.gl.drawElements(r,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*n):this.gl.drawArrays(r,this.drawRange.start,this.drawRange.count)}getPosition(){const t=this.attributes.position;if(t.data)return t;if(!TM)return console.warn("No position buffer data found to compute bounds"),TM=!0}computeBoundingBox(t){t||(t=this.getPosition());const r=t.data,n=t.size;this.bounds||(this.bounds={min:new Vs,max:new Vs,center:new Vs,scale:new Vs,radius:1/0});const i=this.bounds.min,a=this.bounds.max,s=this.bounds.center,o=this.bounds.scale;i.set(1/0),a.set(-1/0);for(let c=0,f=r.length;c<f;c+=n){const h=r[c],p=r[c+1],m=r[c+2];i.x=Math.min(h,i.x),i.y=Math.min(p,i.y),i.z=Math.min(m,i.z),a.x=Math.max(h,a.x),a.y=Math.max(p,a.y),a.z=Math.max(m,a.z)}o.sub(a,i),s.add(i,a).divide(2)}computeBoundingSphere(t){t||(t=this.getPosition());const r=t.data,n=t.size;this.bounds||this.computeBoundingBox(t);let i=0;for(let a=0,s=r.length;a<s;a+=n)EM.fromArray(r,a),i=Math.max(i,this.bounds.center.squaredDistance(EM));this.bounds.radius=Math.sqrt(i)}remove(){for(let t in this.VAOs)this.gl.renderer.deleteVertexArray(this.VAOs[t]),delete this.VAOs[t];for(let t in this.attributes)this.gl.deleteBuffer(this.attributes[t].buffer),delete this.attributes[t]}}let yJ=1;const AM={};class _J{constructor(t,{vertex:r,fragment:n,uniforms:i={},transparent:a=!1,cullFace:s=t.BACK,frontFace:o=t.CCW,depthTest:c=!0,depthWrite:f=!0,depthFunc:h=t.LEQUAL}={}){t.canvas||console.error("gl not passed as first argument to Program"),this.gl=t,this.uniforms=i,this.id=yJ++,r||console.warn("vertex shader not supplied"),n||console.warn("fragment shader not supplied"),this.transparent=a,this.cullFace=s,this.frontFace=o,this.depthTest=c,this.depthWrite=f,this.depthFunc=h,this.blendFunc={},this.blendEquation={},this.stencilFunc={},this.stencilOp={},this.transparent&&!this.blendFunc.src&&(this.gl.renderer.premultipliedAlpha?this.setBlendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA):this.setBlendFunc(this.gl.SRC_ALPHA,this.gl.ONE_MINUS_SRC_ALPHA)),this.vertexShader=t.createShader(t.VERTEX_SHADER),this.fragmentShader=t.createShader(t.FRAGMENT_SHADER),this.program=t.createProgram(),t.attachShader(this.program,this.vertexShader),t.attachShader(this.program,this.fragmentShader),this.setShaders({vertex:r,fragment:n})}setShaders({vertex:t,fragment:r}){if(t&&(this.gl.shaderSource(this.vertexShader,t),this.gl.compileShader(this.vertexShader),this.gl.getShaderInfoLog(this.vertexShader)!==""&&console.warn(`${this.gl.getShaderInfoLog(this.vertexShader)}
Vertex Shader
${CM(t)}`)),r&&(this.gl.shaderSource(this.fragmentShader,r),this.gl.compileShader(this.fragmentShader),this.gl.getShaderInfoLog(this.fragmentShader)!==""&&console.warn(`${this.gl.getShaderInfoLog(this.fragmentShader)}
Fragment Shader
${CM(r)}`)),this.gl.linkProgram(this.program),!this.gl.getProgramParameter(this.program,this.gl.LINK_STATUS))return console.warn(this.gl.getProgramInfoLog(this.program));this.uniformLocations=new Map;let n=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_UNIFORMS);for(let s=0;s<n;s++){let o=this.gl.getActiveUniform(this.program,s);this.uniformLocations.set(o,this.gl.getUniformLocation(this.program,o.name));const c=o.name.match(/(\w+)/g);o.uniformName=c[0],o.nameComponents=c.slice(1)}this.attributeLocations=new Map;const i=[],a=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES);for(let s=0;s<a;s++){const o=this.gl.getActiveAttrib(this.program,s),c=this.gl.getAttribLocation(this.program,o.name);c!==-1&&(i[c]=o.name,this.attributeLocations.set(o,c))}this.attributeOrder=i.join("")}setBlendFunc(t,r,n,i){this.blendFunc.src=t,this.blendFunc.dst=r,this.blendFunc.srcAlpha=n,this.blendFunc.dstAlpha=i,t&&(this.transparent=!0)}setBlendEquation(t,r){this.blendEquation.modeRGB=t,this.blendEquation.modeAlpha=r}setStencilFunc(t,r,n){this.stencilRef=r,this.stencilFunc.func=t,this.stencilFunc.ref=r,this.stencilFunc.mask=n}setStencilOp(t,r,n){this.stencilOp.stencilFail=t,this.stencilOp.depthFail=r,this.stencilOp.depthPass=n}applyState(){this.depthTest?this.gl.renderer.enable(this.gl.DEPTH_TEST):this.gl.renderer.disable(this.gl.DEPTH_TEST),this.cullFace?this.gl.renderer.enable(this.gl.CULL_FACE):this.gl.renderer.disable(this.gl.CULL_FACE),this.blendFunc.src?this.gl.renderer.enable(this.gl.BLEND):this.gl.renderer.disable(this.gl.BLEND),this.cullFace&&this.gl.renderer.setCullFace(this.cullFace),this.gl.renderer.setFrontFace(this.frontFace),this.gl.renderer.setDepthMask(this.depthWrite),this.gl.renderer.setDepthFunc(this.depthFunc),this.blendFunc.src&&this.gl.renderer.setBlendFunc(this.blendFunc.src,this.blendFunc.dst,this.blendFunc.srcAlpha,this.blendFunc.dstAlpha),this.gl.renderer.setBlendEquation(this.blendEquation.modeRGB,this.blendEquation.modeAlpha),this.stencilFunc.func||this.stencilOp.stencilFail?this.gl.renderer.enable(this.gl.STENCIL_TEST):this.gl.renderer.disable(this.gl.STENCIL_TEST),this.gl.renderer.setStencilFunc(this.stencilFunc.func,this.stencilFunc.ref,this.stencilFunc.mask),this.gl.renderer.setStencilOp(this.stencilOp.stencilFail,this.stencilOp.depthFail,this.stencilOp.depthPass)}use({flipFaces:t=!1}={}){let r=-1;this.gl.renderer.state.currentProgram===this.id||(this.gl.useProgram(this.program),this.gl.renderer.state.currentProgram=this.id),this.uniformLocations.forEach((i,a)=>{let s=this.uniforms[a.uniformName];for(const o of a.nameComponents){if(!s)break;if(o in s)s=s[o];else{if(Array.isArray(s.value))break;s=void 0;break}}if(!s)return OM(`Active uniform ${a.name} has not been supplied`);if(s&&s.value===void 0)return OM(`${a.name} uniform is missing a value parameter`);if(s.value.texture)return r=r+1,s.value.update(r),Y_(this.gl,a.type,i,r);if(s.value.length&&s.value[0].texture){const o=[];return s.value.forEach(c=>{r=r+1,c.update(r),o.push(r)}),Y_(this.gl,a.type,i,o)}Y_(this.gl,a.type,i,s.value)}),this.applyState(),t&&this.gl.renderer.setFrontFace(this.frontFace===this.gl.CCW?this.gl.CW:this.gl.CCW)}remove(){this.gl.deleteProgram(this.program)}}function Y_(e,t,r,n){n=n.length?bJ(n):n;const i=e.renderer.state.uniformLocations.get(r);if(n.length)if(i===void 0||i.length!==n.length)e.renderer.state.uniformLocations.set(r,n.slice(0));else{if(wJ(i,n))return;i.set?i.set(n):SJ(i,n),e.renderer.state.uniformLocations.set(r,i)}else{if(i===n)return;e.renderer.state.uniformLocations.set(r,n)}switch(t){case 5126:return n.length?e.uniform1fv(r,n):e.uniform1f(r,n);case 35664:return e.uniform2fv(r,n);case 35665:return e.uniform3fv(r,n);case 35666:return e.uniform4fv(r,n);case 35670:case 5124:case 35678:case 36306:case 35680:case 36289:return n.length?e.uniform1iv(r,n):e.uniform1i(r,n);case 35671:case 35667:return e.uniform2iv(r,n);case 35672:case 35668:return e.uniform3iv(r,n);case 35673:case 35669:return e.uniform4iv(r,n);case 35674:return e.uniformMatrix2fv(r,!1,n);case 35675:return e.uniformMatrix3fv(r,!1,n);case 35676:return e.uniformMatrix4fv(r,!1,n)}}function CM(e){let t=e.split(`
`);for(let r=0;r<t.length;r++)t[r]=r+1+": "+t[r];return t.join(`
`)}function bJ(e){const t=e.length,r=e[0].length;if(r===void 0)return e;const n=t*r;let i=AM[n];i||(AM[n]=i=new Float32Array(n));for(let a=0;a<t;a++)i.set(e[a],a*r);return i}function wJ(e,t){if(e.length!==t.length)return!1;for(let r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}function SJ(e,t){for(let r=0,n=e.length;r<n;r++)e[r]=t[r]}let K_=0;function OM(e){K_>100||(console.warn(e),K_++,K_>100&&console.warn("More than 100 program warnings - stopping logs."))}const Z_=new Vs;let EJ=1;class TJ{constructor({canvas:t=document.createElement("canvas"),width:r=300,height:n=150,dpr:i=1,alpha:a=!1,depth:s=!0,stencil:o=!1,antialias:c=!1,premultipliedAlpha:f=!1,preserveDrawingBuffer:h=!1,powerPreference:p="default",autoClear:m=!0,webgl:g=2}={}){const y={alpha:a,depth:s,stencil:o,antialias:c,premultipliedAlpha:f,preserveDrawingBuffer:h,powerPreference:p};this.dpr=i,this.alpha=a,this.color=!0,this.depth=s,this.stencil=o,this.premultipliedAlpha=f,this.autoClear=m,this.id=EJ++,g===2&&(this.gl=t.getContext("webgl2",y)),this.isWebgl2=!!this.gl,this.gl||(this.gl=t.getContext("webgl",y)),this.gl||console.error("unable to create webgl context"),this.gl.renderer=this,this.setSize(r,n),this.state={},this.state.blendFunc={src:this.gl.ONE,dst:this.gl.ZERO},this.state.blendEquation={modeRGB:this.gl.FUNC_ADD},this.state.cullFace=!1,this.state.frontFace=this.gl.CCW,this.state.depthMask=!0,this.state.depthFunc=this.gl.LEQUAL,this.state.premultiplyAlpha=!1,this.state.flipY=!1,this.state.unpackAlignment=4,this.state.framebuffer=null,this.state.viewport={x:0,y:0,width:null,height:null},this.state.textureUnits=[],this.state.activeTextureUnit=0,this.state.boundBuffer=null,this.state.uniformLocations=new Map,this.state.currentProgram=null,this.extensions={},this.isWebgl2?(this.getExtension("EXT_color_buffer_float"),this.getExtension("OES_texture_float_linear")):(this.getExtension("OES_texture_float"),this.getExtension("OES_texture_float_linear"),this.getExtension("OES_texture_half_float"),this.getExtension("OES_texture_half_float_linear"),this.getExtension("OES_element_index_uint"),this.getExtension("OES_standard_derivatives"),this.getExtension("EXT_sRGB"),this.getExtension("WEBGL_depth_texture"),this.getExtension("WEBGL_draw_buffers")),this.getExtension("WEBGL_compressed_texture_astc"),this.getExtension("EXT_texture_compression_bptc"),this.getExtension("WEBGL_compressed_texture_s3tc"),this.getExtension("WEBGL_compressed_texture_etc1"),this.getExtension("WEBGL_compressed_texture_pvrtc"),this.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),this.vertexAttribDivisor=this.getExtension("ANGLE_instanced_arrays","vertexAttribDivisor","vertexAttribDivisorANGLE"),this.drawArraysInstanced=this.getExtension("ANGLE_instanced_arrays","drawArraysInstanced","drawArraysInstancedANGLE"),this.drawElementsInstanced=this.getExtension("ANGLE_instanced_arrays","drawElementsInstanced","drawElementsInstancedANGLE"),this.createVertexArray=this.getExtension("OES_vertex_array_object","createVertexArray","createVertexArrayOES"),this.bindVertexArray=this.getExtension("OES_vertex_array_object","bindVertexArray","bindVertexArrayOES"),this.deleteVertexArray=this.getExtension("OES_vertex_array_object","deleteVertexArray","deleteVertexArrayOES"),this.drawBuffers=this.getExtension("WEBGL_draw_buffers","drawBuffers","drawBuffersWEBGL"),this.parameters={},this.parameters.maxTextureUnits=this.gl.getParameter(this.gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this.parameters.maxAnisotropy=this.getExtension("EXT_texture_filter_anisotropic")?this.gl.getParameter(this.getExtension("EXT_texture_filter_anisotropic").MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}setSize(t,r){this.width=t,this.height=r,this.gl.canvas.width=t*this.dpr,this.gl.canvas.height=r*this.dpr,this.gl.canvas.style&&Object.assign(this.gl.canvas.style,{width:t+"px",height:r+"px"})}setViewport(t,r,n=0,i=0){this.state.viewport.width===t&&this.state.viewport.height===r||(this.state.viewport.width=t,this.state.viewport.height=r,this.state.viewport.x=n,this.state.viewport.y=i,this.gl.viewport(n,i,t,r))}setScissor(t,r,n=0,i=0){this.gl.scissor(n,i,t,r)}enable(t){this.state[t]!==!0&&(this.gl.enable(t),this.state[t]=!0)}disable(t){this.state[t]!==!1&&(this.gl.disable(t),this.state[t]=!1)}setBlendFunc(t,r,n,i){this.state.blendFunc.src===t&&this.state.blendFunc.dst===r&&this.state.blendFunc.srcAlpha===n&&this.state.blendFunc.dstAlpha===i||(this.state.blendFunc.src=t,this.state.blendFunc.dst=r,this.state.blendFunc.srcAlpha=n,this.state.blendFunc.dstAlpha=i,n!==void 0?this.gl.blendFuncSeparate(t,r,n,i):this.gl.blendFunc(t,r))}setBlendEquation(t,r){t=t||this.gl.FUNC_ADD,!(this.state.blendEquation.modeRGB===t&&this.state.blendEquation.modeAlpha===r)&&(this.state.blendEquation.modeRGB=t,this.state.blendEquation.modeAlpha=r,r!==void 0?this.gl.blendEquationSeparate(t,r):this.gl.blendEquation(t))}setCullFace(t){this.state.cullFace!==t&&(this.state.cullFace=t,this.gl.cullFace(t))}setFrontFace(t){this.state.frontFace!==t&&(this.state.frontFace=t,this.gl.frontFace(t))}setDepthMask(t){this.state.depthMask!==t&&(this.state.depthMask=t,this.gl.depthMask(t))}setDepthFunc(t){this.state.depthFunc!==t&&(this.state.depthFunc=t,this.gl.depthFunc(t))}setStencilMask(t){this.state.stencilMask!==t&&(this.state.stencilMask=t,this.gl.stencilMask(t))}setStencilFunc(t,r,n){this.state.stencilFunc===t&&this.state.stencilRef===r&&this.state.stencilFuncMask===n||(this.state.stencilFunc=t||this.gl.ALWAYS,this.state.stencilRef=r||0,this.state.stencilFuncMask=n||0,this.gl.stencilFunc(t||this.gl.ALWAYS,r||0,n||0))}setStencilOp(t,r,n){this.state.stencilFail===t&&this.state.stencilDepthFail===r&&this.state.stencilDepthPass===n||(this.state.stencilFail=t,this.state.stencilDepthFail=r,this.state.stencilDepthPass=n,this.gl.stencilOp(t,r,n))}activeTexture(t){this.state.activeTextureUnit!==t&&(this.state.activeTextureUnit=t,this.gl.activeTexture(this.gl.TEXTURE0+t))}bindFramebuffer({target:t=this.gl.FRAMEBUFFER,buffer:r=null}={}){this.state.framebuffer!==r&&(this.state.framebuffer=r,this.gl.bindFramebuffer(t,r))}getExtension(t,r,n){return r&&this.gl[r]?this.gl[r].bind(this.gl):(this.extensions[t]||(this.extensions[t]=this.gl.getExtension(t)),r?this.extensions[t]?this.extensions[t][n].bind(this.extensions[t]):null:this.extensions[t])}sortOpaque(t,r){return t.renderOrder!==r.renderOrder?t.renderOrder-r.renderOrder:t.program.id!==r.program.id?t.program.id-r.program.id:t.zDepth!==r.zDepth?t.zDepth-r.zDepth:r.id-t.id}sortTransparent(t,r){return t.renderOrder!==r.renderOrder?t.renderOrder-r.renderOrder:t.zDepth!==r.zDepth?r.zDepth-t.zDepth:r.id-t.id}sortUI(t,r){return t.renderOrder!==r.renderOrder?t.renderOrder-r.renderOrder:t.program.id!==r.program.id?t.program.id-r.program.id:r.id-t.id}getRenderList({scene:t,camera:r,frustumCull:n,sort:i}){let a=[];if(r&&n&&r.updateFrustum(),t.traverse(s=>{if(!s.visible)return!0;s.draw&&(n&&s.frustumCulled&&r&&!r.frustumIntersectsMesh(s)||a.push(s))}),i){const s=[],o=[],c=[];a.forEach(f=>{f.program.transparent?f.program.depthTest?o.push(f):c.push(f):s.push(f),f.zDepth=0,!(f.renderOrder!==0||!f.program.depthTest||!r)&&(f.worldMatrix.getTranslation(Z_),Z_.applyMatrix4(r.projectionViewMatrix),f.zDepth=Z_.z)}),s.sort(this.sortOpaque),o.sort(this.sortTransparent),c.sort(this.sortUI),a=s.concat(o,c)}return a}render({scene:t,camera:r,target:n=null,update:i=!0,sort:a=!0,frustumCull:s=!0,clear:o}){n===null?(this.bindFramebuffer(),this.setViewport(this.width*this.dpr,this.height*this.dpr)):(this.bindFramebuffer(n),this.setViewport(n.width,n.height)),(o||this.autoClear&&o!==!1)&&(this.depth&&(!n||n.depth)&&(this.enable(this.gl.DEPTH_TEST),this.setDepthMask(!0)),(this.stencil||!n||n.stencil)&&(this.enable(this.gl.STENCIL_TEST),this.setStencilMask(255)),this.gl.clear((this.color?this.gl.COLOR_BUFFER_BIT:0)|(this.depth?this.gl.DEPTH_BUFFER_BIT:0)|(this.stencil?this.gl.STENCIL_BUFFER_BIT:0))),i&&t.updateMatrixWorld(),r&&r.updateMatrixWorld(),this.getRenderList({scene:t,camera:r,frustumCull:s,sort:a}).forEach(f=>{f.draw({camera:r})})}}function AJ(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function CJ(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function OJ(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r*r+n*n+i*i+a*a;return s>0&&(s=1/Math.sqrt(s)),e[0]=r*s,e[1]=n*s,e[2]=i*s,e[3]=a*s,e}function kJ(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function DJ(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function PJ(e,t,r){r=r*.5;let n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e}function kM(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=r[0],c=r[1],f=r[2],h=r[3];return e[0]=n*h+s*o+i*f-a*c,e[1]=i*h+s*c+a*o-n*f,e[2]=a*h+s*f+n*c-i*o,e[3]=s*h-n*o-i*c-a*f,e}function MJ(e,t,r){r*=.5;let n=t[0],i=t[1],a=t[2],s=t[3],o=Math.sin(r),c=Math.cos(r);return e[0]=n*c+s*o,e[1]=i*c+a*o,e[2]=a*c-i*o,e[3]=s*c-n*o,e}function RJ(e,t,r){r*=.5;let n=t[0],i=t[1],a=t[2],s=t[3],o=Math.sin(r),c=Math.cos(r);return e[0]=n*c-a*o,e[1]=i*c+s*o,e[2]=a*c+n*o,e[3]=s*c-i*o,e}function NJ(e,t,r){r*=.5;let n=t[0],i=t[1],a=t[2],s=t[3],o=Math.sin(r),c=Math.cos(r);return e[0]=n*c+i*o,e[1]=i*c-n*o,e[2]=a*c+s*o,e[3]=s*c-a*o,e}function FJ(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=t[3],c=r[0],f=r[1],h=r[2],p=r[3],m,g,y,x,_;return g=i*c+a*f+s*h+o*p,g<0&&(g=-g,c=-c,f=-f,h=-h,p=-p),1-g>1e-6?(m=Math.acos(g),y=Math.sin(m),x=Math.sin((1-n)*m)/y,_=Math.sin(n*m)/y):(x=1-n,_=n),e[0]=x*i+_*c,e[1]=x*a+_*f,e[2]=x*s+_*h,e[3]=x*o+_*p,e}function LJ(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r*r+n*n+i*i+a*a,o=s?1/s:0;return e[0]=-r*o,e[1]=-n*o,e[2]=-i*o,e[3]=a*o,e}function IJ(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function BJ(e,t){let r=t[0]+t[4]+t[8],n;if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{let i=0;t[4]>t[0]&&(i=1),t[8]>t[i*3+i]&&(i=2);let a=(i+1)%3,s=(i+2)%3;n=Math.sqrt(t[i*3+i]-t[a*3+a]-t[s*3+s]+1),e[i]=.5*n,n=.5/n,e[3]=(t[a*3+s]-t[s*3+a])*n,e[a]=(t[a*3+i]+t[i*3+a])*n,e[s]=(t[s*3+i]+t[i*3+s])*n}return e}function jJ(e,t,r="YXZ"){let n=Math.sin(t[0]*.5),i=Math.cos(t[0]*.5),a=Math.sin(t[1]*.5),s=Math.cos(t[1]*.5),o=Math.sin(t[2]*.5),c=Math.cos(t[2]*.5);return r==="XYZ"?(e[0]=n*s*c+i*a*o,e[1]=i*a*c-n*s*o,e[2]=i*s*o+n*a*c,e[3]=i*s*c-n*a*o):r==="YXZ"?(e[0]=n*s*c+i*a*o,e[1]=i*a*c-n*s*o,e[2]=i*s*o-n*a*c,e[3]=i*s*c+n*a*o):r==="ZXY"?(e[0]=n*s*c-i*a*o,e[1]=i*a*c+n*s*o,e[2]=i*s*o+n*a*c,e[3]=i*s*c-n*a*o):r==="ZYX"?(e[0]=n*s*c-i*a*o,e[1]=i*a*c+n*s*o,e[2]=i*s*o-n*a*c,e[3]=i*s*c+n*a*o):r==="YZX"?(e[0]=n*s*c+i*a*o,e[1]=i*a*c+n*s*o,e[2]=i*s*o-n*a*c,e[3]=i*s*c-n*a*o):r==="XZY"&&(e[0]=n*s*c-i*a*o,e[1]=i*a*c-n*s*o,e[2]=i*s*o+n*a*c,e[3]=i*s*c+n*a*o),e}const UJ=AJ,zJ=CJ,VJ=kJ,HJ=OJ;class $J extends Array{constructor(t=0,r=0,n=0,i=1){super(t,r,n,i),this.onChange=()=>{},this._target=this;const a=["0","1","2","3"];return new Proxy(this,{set(s,o){const c=Reflect.set(...arguments);return c&&a.includes(o)&&s.onChange(),c}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}get w(){return this[3]}set x(t){this._target[0]=t,this.onChange()}set y(t){this._target[1]=t,this.onChange()}set z(t){this._target[2]=t,this.onChange()}set w(t){this._target[3]=t,this.onChange()}identity(){return DJ(this._target),this.onChange(),this}set(t,r,n,i){return t.length?this.copy(t):(zJ(this._target,t,r,n,i),this.onChange(),this)}rotateX(t){return MJ(this._target,this._target,t),this.onChange(),this}rotateY(t){return RJ(this._target,this._target,t),this.onChange(),this}rotateZ(t){return NJ(this._target,this._target,t),this.onChange(),this}inverse(t=this._target){return LJ(this._target,t),this.onChange(),this}conjugate(t=this._target){return IJ(this._target,t),this.onChange(),this}copy(t){return UJ(this._target,t),this.onChange(),this}normalize(t=this._target){return HJ(this._target,t),this.onChange(),this}multiply(t,r){return r?kM(this._target,t,r):kM(this._target,this._target,t),this.onChange(),this}dot(t){return VJ(this._target,t)}fromMatrix3(t){return BJ(this._target,t),this.onChange(),this}fromEuler(t,r){return jJ(this._target,t,t.order),r||this.onChange(),this}fromAxisAngle(t,r){return PJ(this._target,t,r),this.onChange(),this}slerp(t,r){return FJ(this._target,this._target,t,r),this.onChange(),this}fromArray(t,r=0){return this._target[0]=t[r],this._target[1]=t[r+1],this._target[2]=t[r+2],this._target[3]=t[r+3],this.onChange(),this}toArray(t=[],r=0){return t[r]=this[0],t[r+1]=this[1],t[r+2]=this[2],t[r+3]=this[3],t}}const WJ=1e-6;function qJ(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function GJ(e,t,r,n,i,a,s,o,c,f,h,p,m,g,y,x,_){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=c,e[8]=f,e[9]=h,e[10]=p,e[11]=m,e[12]=g,e[13]=y,e[14]=x,e[15]=_,e}function XJ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function YJ(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],c=t[6],f=t[7],h=t[8],p=t[9],m=t[10],g=t[11],y=t[12],x=t[13],_=t[14],w=t[15],T=r*o-n*s,S=r*c-i*s,O=r*f-a*s,C=n*c-i*o,k=n*f-a*o,D=i*f-a*c,M=h*x-p*y,N=h*_-m*y,z=h*w-g*y,H=p*_-m*x,B=p*w-g*x,te=m*w-g*_,ne=T*te-S*B+O*H+C*z-k*N+D*M;return ne?(ne=1/ne,e[0]=(o*te-c*B+f*H)*ne,e[1]=(i*B-n*te-a*H)*ne,e[2]=(x*D-_*k+w*C)*ne,e[3]=(m*k-p*D-g*C)*ne,e[4]=(c*z-s*te-f*N)*ne,e[5]=(r*te-i*z+a*N)*ne,e[6]=(_*O-y*D-w*S)*ne,e[7]=(h*D-m*O+g*S)*ne,e[8]=(s*B-o*z+f*M)*ne,e[9]=(n*z-r*B-a*M)*ne,e[10]=(y*k-x*O+w*T)*ne,e[11]=(p*O-h*k-g*T)*ne,e[12]=(o*N-s*H-c*M)*ne,e[13]=(r*H-n*N+i*M)*ne,e[14]=(x*S-y*C-_*T)*ne,e[15]=(h*C-p*S+m*T)*ne,e):null}function z7(e){let t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],s=e[5],o=e[6],c=e[7],f=e[8],h=e[9],p=e[10],m=e[11],g=e[12],y=e[13],x=e[14],_=e[15],w=t*s-r*a,T=t*o-n*a,S=t*c-i*a,O=r*o-n*s,C=r*c-i*s,k=n*c-i*o,D=f*y-h*g,M=f*x-p*g,N=f*_-m*g,z=h*x-p*y,H=h*_-m*y,B=p*_-m*x;return w*B-T*H+S*z+O*N-C*M+k*D}function DM(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],c=t[5],f=t[6],h=t[7],p=t[8],m=t[9],g=t[10],y=t[11],x=t[12],_=t[13],w=t[14],T=t[15],S=r[0],O=r[1],C=r[2],k=r[3];return e[0]=S*n+O*o+C*p+k*x,e[1]=S*i+O*c+C*m+k*_,e[2]=S*a+O*f+C*g+k*w,e[3]=S*s+O*h+C*y+k*T,S=r[4],O=r[5],C=r[6],k=r[7],e[4]=S*n+O*o+C*p+k*x,e[5]=S*i+O*c+C*m+k*_,e[6]=S*a+O*f+C*g+k*w,e[7]=S*s+O*h+C*y+k*T,S=r[8],O=r[9],C=r[10],k=r[11],e[8]=S*n+O*o+C*p+k*x,e[9]=S*i+O*c+C*m+k*_,e[10]=S*a+O*f+C*g+k*w,e[11]=S*s+O*h+C*y+k*T,S=r[12],O=r[13],C=r[14],k=r[15],e[12]=S*n+O*o+C*p+k*x,e[13]=S*i+O*c+C*m+k*_,e[14]=S*a+O*f+C*g+k*w,e[15]=S*s+O*h+C*y+k*T,e}function KJ(e,t,r){let n=r[0],i=r[1],a=r[2],s,o,c,f,h,p,m,g,y,x,_,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(s=t[0],o=t[1],c=t[2],f=t[3],h=t[4],p=t[5],m=t[6],g=t[7],y=t[8],x=t[9],_=t[10],w=t[11],e[0]=s,e[1]=o,e[2]=c,e[3]=f,e[4]=h,e[5]=p,e[6]=m,e[7]=g,e[8]=y,e[9]=x,e[10]=_,e[11]=w,e[12]=s*n+h*i+y*a+t[12],e[13]=o*n+p*i+x*a+t[13],e[14]=c*n+m*i+_*a+t[14],e[15]=f*n+g*i+w*a+t[15]),e}function ZJ(e,t,r){let n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function QJ(e,t,r,n){let i=n[0],a=n[1],s=n[2],o=Math.hypot(i,a,s),c,f,h,p,m,g,y,x,_,w,T,S,O,C,k,D,M,N,z,H,B,te,ne,le;return Math.abs(o)<WJ?null:(o=1/o,i*=o,a*=o,s*=o,c=Math.sin(r),f=Math.cos(r),h=1-f,p=t[0],m=t[1],g=t[2],y=t[3],x=t[4],_=t[5],w=t[6],T=t[7],S=t[8],O=t[9],C=t[10],k=t[11],D=i*i*h+f,M=a*i*h+s*c,N=s*i*h-a*c,z=i*a*h-s*c,H=a*a*h+f,B=s*a*h+i*c,te=i*s*h+a*c,ne=a*s*h-i*c,le=s*s*h+f,e[0]=p*D+x*M+S*N,e[1]=m*D+_*M+O*N,e[2]=g*D+w*M+C*N,e[3]=y*D+T*M+k*N,e[4]=p*z+x*H+S*B,e[5]=m*z+_*H+O*B,e[6]=g*z+w*H+C*B,e[7]=y*z+T*H+k*B,e[8]=p*te+x*ne+S*le,e[9]=m*te+_*ne+O*le,e[10]=g*te+w*ne+C*le,e[11]=y*te+T*ne+k*le,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function JJ(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function V7(e,t){let r=t[0],n=t[1],i=t[2],a=t[4],s=t[5],o=t[6],c=t[8],f=t[9],h=t[10];return e[0]=Math.hypot(r,n,i),e[1]=Math.hypot(a,s,o),e[2]=Math.hypot(c,f,h),e}function eee(e){let t=e[0],r=e[1],n=e[2],i=e[4],a=e[5],s=e[6],o=e[8],c=e[9],f=e[10];const h=t*t+r*r+n*n,p=i*i+a*a+s*s,m=o*o+c*c+f*f;return Math.sqrt(Math.max(h,p,m))}const H7=function(){const e=[1,1,1];return function(t,r){let n=e;V7(n,r);let i=1/n[0],a=1/n[1],s=1/n[2],o=r[0]*i,c=r[1]*a,f=r[2]*s,h=r[4]*i,p=r[5]*a,m=r[6]*s,g=r[8]*i,y=r[9]*a,x=r[10]*s,_=o+p+x,w=0;return _>0?(w=Math.sqrt(_+1)*2,t[3]=.25*w,t[0]=(m-y)/w,t[1]=(g-f)/w,t[2]=(c-h)/w):o>p&&o>x?(w=Math.sqrt(1+o-p-x)*2,t[3]=(m-y)/w,t[0]=.25*w,t[1]=(c+h)/w,t[2]=(g+f)/w):p>x?(w=Math.sqrt(1+p-o-x)*2,t[3]=(g-f)/w,t[0]=(c+h)/w,t[1]=.25*w,t[2]=(m+y)/w):(w=Math.sqrt(1+x-o-p)*2,t[3]=(c-h)/w,t[0]=(g+f)/w,t[1]=(m+y)/w,t[2]=.25*w),t}}();function tee(e,t,r,n){let i=jd([e[0],e[1],e[2]]);const a=jd([e[4],e[5],e[6]]),s=jd([e[8],e[9],e[10]]);z7(e)<0&&(i=-i),r[0]=e[12],r[1]=e[13],r[2]=e[14];const c=e.slice(),f=1/i,h=1/a,p=1/s;c[0]*=f,c[1]*=f,c[2]*=f,c[4]*=h,c[5]*=h,c[6]*=h,c[8]*=p,c[9]*=p,c[10]*=p,H7(t,c),n[0]=i,n[1]=a,n[2]=s}function ree(e,t,r,n){const i=e,a=t[0],s=t[1],o=t[2],c=t[3],f=a+a,h=s+s,p=o+o,m=a*f,g=a*h,y=a*p,x=s*h,_=s*p,w=o*p,T=c*f,S=c*h,O=c*p,C=n[0],k=n[1],D=n[2];return i[0]=(1-(x+w))*C,i[1]=(g+O)*C,i[2]=(y-S)*C,i[3]=0,i[4]=(g-O)*k,i[5]=(1-(m+w))*k,i[6]=(_+T)*k,i[7]=0,i[8]=(y+S)*D,i[9]=(_-T)*D,i[10]=(1-(m+x))*D,i[11]=0,i[12]=r[0],i[13]=r[1],i[14]=r[2],i[15]=1,i}function nee(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r+r,o=n+n,c=i+i,f=r*s,h=n*s,p=n*o,m=i*s,g=i*o,y=i*c,x=a*s,_=a*o,w=a*c;return e[0]=1-p-y,e[1]=h+w,e[2]=m-_,e[3]=0,e[4]=h-w,e[5]=1-f-y,e[6]=g+x,e[7]=0,e[8]=m+_,e[9]=g-x,e[10]=1-f-p,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function iee(e,t,r,n,i){let a=1/Math.tan(t/2),s=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*s,e[15]=0,e}function aee(e,t,r,n,i,a,s){let o=1/(t-r),c=1/(n-i),f=1/(a-s);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(t+r)*o,e[13]=(i+n)*c,e[14]=(s+a)*f,e[15]=1,e}function see(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=n[0],c=n[1],f=n[2],h=i-r[0],p=a-r[1],m=s-r[2],g=h*h+p*p+m*m;g===0?m=1:(g=1/Math.sqrt(g),h*=g,p*=g,m*=g);let y=c*m-f*p,x=f*h-o*m,_=o*p-c*h;return g=y*y+x*x+_*_,g===0&&(f?o+=1e-6:c?f+=1e-6:c+=1e-6,y=c*m-f*p,x=f*h-o*m,_=o*p-c*h,g=y*y+x*x+_*_),g=1/Math.sqrt(g),y*=g,x*=g,_*=g,e[0]=y,e[1]=x,e[2]=_,e[3]=0,e[4]=p*_-m*x,e[5]=m*y-h*_,e[6]=h*x-p*y,e[7]=0,e[8]=h,e[9]=p,e[10]=m,e[11]=0,e[12]=i,e[13]=a,e[14]=s,e[15]=1,e}function PM(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e}function MM(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function oee(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e}class lv extends Array{constructor(t=1,r=0,n=0,i=0,a=0,s=1,o=0,c=0,f=0,h=0,p=1,m=0,g=0,y=0,x=0,_=1){return super(t,r,n,i,a,s,o,c,f,h,p,m,g,y,x,_),this}get x(){return this[12]}get y(){return this[13]}get z(){return this[14]}get w(){return this[15]}set x(t){this[12]=t}set y(t){this[13]=t}set z(t){this[14]=t}set w(t){this[15]=t}set(t,r,n,i,a,s,o,c,f,h,p,m,g,y,x,_){return t.length?this.copy(t):(GJ(this,t,r,n,i,a,s,o,c,f,h,p,m,g,y,x,_),this)}translate(t,r=this){return KJ(this,r,t),this}rotate(t,r,n=this){return QJ(this,n,t,r),this}scale(t,r=this){return ZJ(this,r,typeof t=="number"?[t,t,t]:t),this}add(t,r){return r?PM(this,t,r):PM(this,this,t),this}sub(t,r){return r?MM(this,t,r):MM(this,this,t),this}multiply(t,r){return t.length?r?DM(this,t,r):DM(this,this,t):oee(this,this,t),this}identity(){return XJ(this),this}copy(t){return qJ(this,t),this}fromPerspective({fov:t,aspect:r,near:n,far:i}={}){return iee(this,t,r,n,i),this}fromOrthogonal({left:t,right:r,bottom:n,top:i,near:a,far:s}){return aee(this,t,r,n,i,a,s),this}fromQuaternion(t){return nee(this,t),this}setPosition(t){return this.x=t[0],this.y=t[1],this.z=t[2],this}inverse(t=this){return YJ(this,t),this}compose(t,r,n){return ree(this,t,r,n),this}decompose(t,r,n){return tee(this,t,r,n),this}getRotation(t){return H7(t,this),this}getTranslation(t){return JJ(t,this),this}getScaling(t){return V7(t,this),this}getMaxScaleOnAxis(){return eee(this)}lookAt(t,r,n){return see(this,t,r,n),this}determinant(){return z7(this)}fromArray(t,r=0){return this[0]=t[r],this[1]=t[r+1],this[2]=t[r+2],this[3]=t[r+3],this[4]=t[r+4],this[5]=t[r+5],this[6]=t[r+6],this[7]=t[r+7],this[8]=t[r+8],this[9]=t[r+9],this[10]=t[r+10],this[11]=t[r+11],this[12]=t[r+12],this[13]=t[r+13],this[14]=t[r+14],this[15]=t[r+15],this}toArray(t=[],r=0){return t[r]=this[0],t[r+1]=this[1],t[r+2]=this[2],t[r+3]=this[3],t[r+4]=this[4],t[r+5]=this[5],t[r+6]=this[6],t[r+7]=this[7],t[r+8]=this[8],t[r+9]=this[9],t[r+10]=this[10],t[r+11]=this[11],t[r+12]=this[12],t[r+13]=this[13],t[r+14]=this[14],t[r+15]=this[15],t}}function lee(e,t,r="YXZ"){return r==="XYZ"?(e[1]=Math.asin(Math.min(Math.max(t[8],-1),1)),Math.abs(t[8])<.99999?(e[0]=Math.atan2(-t[9],t[10]),e[2]=Math.atan2(-t[4],t[0])):(e[0]=Math.atan2(t[6],t[5]),e[2]=0)):r==="YXZ"?(e[0]=Math.asin(-Math.min(Math.max(t[9],-1),1)),Math.abs(t[9])<.99999?(e[1]=Math.atan2(t[8],t[10]),e[2]=Math.atan2(t[1],t[5])):(e[1]=Math.atan2(-t[2],t[0]),e[2]=0)):r==="ZXY"?(e[0]=Math.asin(Math.min(Math.max(t[6],-1),1)),Math.abs(t[6])<.99999?(e[1]=Math.atan2(-t[2],t[10]),e[2]=Math.atan2(-t[4],t[5])):(e[1]=0,e[2]=Math.atan2(t[1],t[0]))):r==="ZYX"?(e[1]=Math.asin(-Math.min(Math.max(t[2],-1),1)),Math.abs(t[2])<.99999?(e[0]=Math.atan2(t[6],t[10]),e[2]=Math.atan2(t[1],t[0])):(e[0]=0,e[2]=Math.atan2(-t[4],t[5]))):r==="YZX"?(e[2]=Math.asin(Math.min(Math.max(t[1],-1),1)),Math.abs(t[1])<.99999?(e[0]=Math.atan2(-t[9],t[5]),e[1]=Math.atan2(-t[2],t[0])):(e[0]=0,e[1]=Math.atan2(t[8],t[10]))):r==="XZY"&&(e[2]=Math.asin(-Math.min(Math.max(t[4],-1),1)),Math.abs(t[4])<.99999?(e[0]=Math.atan2(t[6],t[5]),e[1]=Math.atan2(t[8],t[0])):(e[0]=Math.atan2(-t[9],t[10]),e[1]=0)),e}const RM=new lv;class cee extends Array{constructor(t=0,r=t,n=t,i="YXZ"){super(t,r,n),this.order=i,this.onChange=()=>{},this._target=this;const a=["0","1","2"];return new Proxy(this,{set(s,o){const c=Reflect.set(...arguments);return c&&a.includes(o)&&s.onChange(),c}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(t){this._target[0]=t,this.onChange()}set y(t){this._target[1]=t,this.onChange()}set z(t){this._target[2]=t,this.onChange()}set(t,r=t,n=t){return t.length?this.copy(t):(this._target[0]=t,this._target[1]=r,this._target[2]=n,this.onChange(),this)}copy(t){return this._target[0]=t[0],this._target[1]=t[1],this._target[2]=t[2],this.onChange(),this}reorder(t){return this._target.order=t,this.onChange(),this}fromRotationMatrix(t,r=this.order){return lee(this._target,t,r),this.onChange(),this}fromQuaternion(t,r=this.order,n){return RM.fromQuaternion(t),this._target.fromRotationMatrix(RM,r),n||this.onChange(),this}fromArray(t,r=0){return this._target[0]=t[r],this._target[1]=t[r+1],this._target[2]=t[r+2],this}toArray(t=[],r=0){return t[r]=this[0],t[r+1]=this[1],t[r+2]=this[2],t}}class uee{constructor(){this.parent=null,this.children=[],this.visible=!0,this.matrix=new lv,this.worldMatrix=new lv,this.matrixAutoUpdate=!0,this.worldMatrixNeedsUpdate=!1,this.position=new Vs,this.quaternion=new $J,this.scale=new Vs(1),this.rotation=new cee,this.up=new Vs(0,1,0),this.rotation._target.onChange=()=>this.quaternion.fromEuler(this.rotation,!0),this.quaternion._target.onChange=()=>this.rotation.fromQuaternion(this.quaternion,void 0,!0)}setParent(t,r=!0){this.parent&&t!==this.parent&&this.parent.removeChild(this,!1),this.parent=t,r&&t&&t.addChild(this,!1)}addChild(t,r=!0){~this.children.indexOf(t)||this.children.push(t),r&&t.setParent(this,!1)}removeChild(t,r=!0){~this.children.indexOf(t)&&this.children.splice(this.children.indexOf(t),1),r&&t.setParent(null,!1)}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.worldMatrixNeedsUpdate||t)&&(this.parent===null?this.worldMatrix.copy(this.matrix):this.worldMatrix.multiply(this.parent.worldMatrix,this.matrix),this.worldMatrixNeedsUpdate=!1,t=!0);for(let r=0,n=this.children.length;r<n;r++)this.children[r].updateMatrixWorld(t)}updateMatrix(){this.matrix.compose(this.quaternion,this.position,this.scale),this.worldMatrixNeedsUpdate=!0}traverse(t){if(!t(this))for(let r=0,n=this.children.length;r<n;r++)this.children[r].traverse(t)}decompose(){this.matrix.decompose(this.quaternion._target,this.position,this.scale),this.rotation.fromQuaternion(this.quaternion)}lookAt(t,r=!1){r?this.matrix.lookAt(this.position,t,this.up):this.matrix.lookAt(t,this.position,this.up),this.matrix.getRotation(this.quaternion._target),this.rotation.fromQuaternion(this.quaternion)}}function fee(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function hee(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r+r,o=n+n,c=i+i,f=r*s,h=n*s,p=n*o,m=i*s,g=i*o,y=i*c,x=a*s,_=a*o,w=a*c;return e[0]=1-p-y,e[3]=h-w,e[6]=m+_,e[1]=h+w,e[4]=1-f-y,e[7]=g-x,e[2]=m-_,e[5]=g+x,e[8]=1-f-p,e}function dee(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function pee(e,t,r,n,i,a,s,o,c,f){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=c,e[8]=f,e}function mee(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function gee(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],c=t[6],f=t[7],h=t[8],p=h*s-o*f,m=-h*a+o*c,g=f*a-s*c,y=r*p+n*m+i*g;return y?(y=1/y,e[0]=p*y,e[1]=(-h*n+i*f)*y,e[2]=(o*n-i*s)*y,e[3]=m*y,e[4]=(h*r-i*c)*y,e[5]=(-o*r+i*a)*y,e[6]=g*y,e[7]=(-f*r+n*c)*y,e[8]=(s*r-n*a)*y,e):null}function NM(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],c=t[5],f=t[6],h=t[7],p=t[8],m=r[0],g=r[1],y=r[2],x=r[3],_=r[4],w=r[5],T=r[6],S=r[7],O=r[8];return e[0]=m*n+g*s+y*f,e[1]=m*i+g*o+y*h,e[2]=m*a+g*c+y*p,e[3]=x*n+_*s+w*f,e[4]=x*i+_*o+w*h,e[5]=x*a+_*c+w*p,e[6]=T*n+S*s+O*f,e[7]=T*i+S*o+O*h,e[8]=T*a+S*c+O*p,e}function vee(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],c=t[5],f=t[6],h=t[7],p=t[8],m=r[0],g=r[1];return e[0]=n,e[1]=i,e[2]=a,e[3]=s,e[4]=o,e[5]=c,e[6]=m*n+g*s+f,e[7]=m*i+g*o+h,e[8]=m*a+g*c+p,e}function xee(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],c=t[5],f=t[6],h=t[7],p=t[8],m=Math.sin(r),g=Math.cos(r);return e[0]=g*n+m*s,e[1]=g*i+m*o,e[2]=g*a+m*c,e[3]=g*s-m*n,e[4]=g*o-m*i,e[5]=g*c-m*a,e[6]=f,e[7]=h,e[8]=p,e}function yee(e,t,r){let n=r[0],i=r[1];return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function _ee(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],c=t[6],f=t[7],h=t[8],p=t[9],m=t[10],g=t[11],y=t[12],x=t[13],_=t[14],w=t[15],T=r*o-n*s,S=r*c-i*s,O=r*f-a*s,C=n*c-i*o,k=n*f-a*o,D=i*f-a*c,M=h*x-p*y,N=h*_-m*y,z=h*w-g*y,H=p*_-m*x,B=p*w-g*x,te=m*w-g*_,ne=T*te-S*B+O*H+C*z-k*N+D*M;return ne?(ne=1/ne,e[0]=(o*te-c*B+f*H)*ne,e[1]=(c*z-s*te-f*N)*ne,e[2]=(s*B-o*z+f*M)*ne,e[3]=(i*B-n*te-a*H)*ne,e[4]=(r*te-i*z+a*N)*ne,e[5]=(n*z-r*B-a*M)*ne,e[6]=(x*D-_*k+w*C)*ne,e[7]=(_*O-y*D-w*S)*ne,e[8]=(y*k-x*O+w*T)*ne,e):null}class bee extends Array{constructor(t=1,r=0,n=0,i=0,a=1,s=0,o=0,c=0,f=1){return super(t,r,n,i,a,s,o,c,f),this}set(t,r,n,i,a,s,o,c,f){return t.length?this.copy(t):(pee(this,t,r,n,i,a,s,o,c,f),this)}translate(t,r=this){return vee(this,r,t),this}rotate(t,r=this){return xee(this,r,t),this}scale(t,r=this){return yee(this,r,t),this}multiply(t,r){return r?NM(this,t,r):NM(this,this,t),this}identity(){return mee(this),this}copy(t){return dee(this,t),this}fromMatrix4(t){return fee(this,t),this}fromQuaternion(t){return hee(this,t),this}fromBasis(t,r,n){return this.set(t[0],t[1],t[2],r[0],r[1],r[2],n[0],n[1],n[2]),this}inverse(t=this){return gee(this,t),this}getNormalMatrix(t){return _ee(this,t),this}}let wee=0;class See extends uee{constructor(t,{geometry:r,program:n,mode:i=t.TRIANGLES,frustumCulled:a=!0,renderOrder:s=0}={}){super(),t.canvas||console.error("gl not passed as first argument to Mesh"),this.gl=t,this.id=wee++,this.geometry=r,this.program=n,this.mode=i,this.frustumCulled=a,this.renderOrder=s,this.modelViewMatrix=new lv,this.normalMatrix=new bee,this.beforeRenderCallbacks=[],this.afterRenderCallbacks=[]}onBeforeRender(t){return this.beforeRenderCallbacks.push(t),this}onAfterRender(t){return this.afterRenderCallbacks.push(t),this}draw({camera:t}={}){t&&(this.program.uniforms.modelMatrix||Object.assign(this.program.uniforms,{modelMatrix:{value:null},viewMatrix:{value:null},modelViewMatrix:{value:null},normalMatrix:{value:null},projectionMatrix:{value:null},cameraPosition:{value:null}}),this.program.uniforms.projectionMatrix.value=t.projectionMatrix,this.program.uniforms.cameraPosition.value=t.worldPosition,this.program.uniforms.viewMatrix.value=t.viewMatrix,this.modelViewMatrix.multiply(t.viewMatrix,this.worldMatrix),this.normalMatrix.getNormalMatrix(this.modelViewMatrix),this.program.uniforms.modelMatrix.value=this.worldMatrix,this.program.uniforms.modelViewMatrix.value=this.modelViewMatrix,this.program.uniforms.normalMatrix.value=this.normalMatrix),this.beforeRenderCallbacks.forEach(n=>n&&n({mesh:this,camera:t}));let r=this.program.cullFace&&this.worldMatrix.determinant()<0;this.program.use({flipFaces:r}),this.geometry.draw({mode:this.mode,program:this.program}),this.afterRenderCallbacks.forEach(n=>n&&n({mesh:this,camera:t}))}}function Eee(e,t){return e[0]=t[0],e[1]=t[1],e}function Tee(e,t,r){return e[0]=t,e[1]=r,e}function FM(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function LM(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Aee(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function Cee(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function Q_(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Oee(e,t){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}function kee(e,t){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function IM(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function Dee(e){var t=e[0],r=e[1];return t*t+r*r}function Pee(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Mee(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function Ree(e,t){var r=t[0],n=t[1],i=r*r+n*n;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e}function Nee(e,t){return e[0]*t[0]+e[1]*t[1]}function BM(e,t){return e[0]*t[1]-e[1]*t[0]}function Fee(e,t,r,n){var i=t[0],a=t[1];return e[0]=i+n*(r[0]-i),e[1]=a+n*(r[1]-a),e}function Lee(e,t,r,n,i){const a=Math.exp(-n*i);let s=t[0],o=t[1];return e[0]=r[0]+(s-r[0])*a,e[1]=r[1]+(o-r[1])*a,e}function Iee(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[3]*i+r[6],e[1]=r[1]*n+r[4]*i+r[7],e}function Bee(e,t,r){let n=t[0],i=t[1];return e[0]=r[0]*n+r[4]*i+r[12],e[1]=r[1]*n+r[5]*i+r[13],e}function jee(e,t){return e[0]===t[0]&&e[1]===t[1]}class aA extends Array{constructor(t=0,r=t){return super(t,r),this}get x(){return this[0]}get y(){return this[1]}set x(t){this[0]=t}set y(t){this[1]=t}set(t,r=t){return t.length?this.copy(t):(Tee(this,t,r),this)}copy(t){return Eee(this,t),this}add(t,r){return r?FM(this,t,r):FM(this,this,t),this}sub(t,r){return r?LM(this,t,r):LM(this,this,t),this}multiply(t){return t.length?Aee(this,this,t):Q_(this,this,t),this}divide(t){return t.length?Cee(this,this,t):Q_(this,this,1/t),this}inverse(t=this){return Mee(this,t),this}len(){return IM(this)}distance(t){return t?Oee(this,t):IM(this)}squaredLen(){return this.squaredDistance()}squaredDistance(t){return t?kee(this,t):Dee(this)}negate(t=this){return Pee(this,t),this}cross(t,r){return r?BM(t,r):BM(this,t)}scale(t){return Q_(this,this,t),this}normalize(){return Ree(this,this),this}dot(t){return Nee(this,t)}equals(t){return jee(this,t)}applyMatrix3(t){return Iee(this,this,t),this}applyMatrix4(t){return Bee(this,this,t),this}lerp(t,r){return Fee(this,this,t,r),this}smoothLerp(t,r,n){return Lee(this,this,t,r,n),this}clone(){return new aA(this[0],this[1])}fromArray(t,r=0){return this[0]=t[r],this[1]=t[r+1],this}toArray(t=[],r=0){return t[r]=this[0],t[r+1]=this[1],t}}class Uee extends xJ{constructor(t,{attributes:r={}}={}){Object.assign(r,{position:{size:2,data:new Float32Array([-1,-1,3,-1,-1,3])},uv:{size:2,data:new Float32Array([0,0,2,0,0,2])}}),super(t,r)}}const zee=`
attribute vec2 position;
void main(){gl_Position=vec4(position,0.0,1.0);}
`,Vee=`
#ifdef GL_ES
precision lowp float;
#endif
uniform vec2 uResolution;
uniform float uTime;
uniform float uHueShift;
uniform float uNoise;
uniform float uScan;
uniform float uScanFreq;
uniform float uWarp;
#define iTime uTime
#define iResolution uResolution

vec4 buf[8];
float rand(vec2 c){return fract(sin(dot(c,vec2(12.9898,78.233)))*43758.5453);}

mat3 rgb2yiq=mat3(0.299,0.587,0.114,0.596,-0.274,-0.322,0.211,-0.523,0.312);
mat3 yiq2rgb=mat3(1.0,0.956,0.621,1.0,-0.272,-0.647,1.0,-1.106,1.703);

vec3 hueShiftRGB(vec3 col,float deg){
    vec3 yiq=rgb2yiq*col;
    float rad=radians(deg);
    float cosh=cos(rad),sinh=sin(rad);
    vec3 yiqShift=vec3(yiq.x,yiq.y*cosh-yiq.z*sinh,yiq.y*sinh+yiq.z*cosh);
    return clamp(yiq2rgb*yiqShift,0.0,1.0);
}

vec4 sigmoid(vec4 x){return 1./(1.+exp(-x));}

vec4 cppn_fn(vec2 coordinate,float in0,float in1,float in2){
    buf[6]=vec4(coordinate.x,coordinate.y,0.3948333106474662+in0,0.36+in1);
    buf[7]=vec4(0.14+in2,sqrt(coordinate.x*coordinate.x+coordinate.y*coordinate.y),0.,0.);
    buf[0]=mat4(vec4(6.5404263,-3.6126034,0.7590882,-1.13613),vec4(2.4582713,3.1660357,1.2219609,0.06276096),vec4(-5.478085,-6.159632,1.8701609,-4.7742867),vec4(6.039214,-5.542865,-0.90925294,3.251348))*buf[6]+mat4(vec4(0.8473259,-5.722911,3.975766,1.6522468),vec4(-0.24321538,0.5839259,-1.7661959,-5.350116),vec4(0.,0.,0.,0.),vec4(0.,0.,0.,0.))*buf[7]+vec4(0.21808943,1.1243913,-1.7969975,5.0294676);
    buf[1]=mat4(vec4(-3.3522482,-6.0612736,0.55641043,-4.4719114),vec4(0.8631464,1.7432913,5.643898,1.6106541),vec4(2.4941394,-3.5012043,1.7184316,6.357333),vec4(3.310376,8.209261,1.1355612,-1.165539))*buf[6]+mat4(vec4(5.24046,-13.034365,0.009859298,15.870829),vec4(2.987511,3.129433,-0.89023495,-1.6822904),vec4(0.,0.,0.,0.),vec4(0.,0.,0.,0.))*buf[7]+vec4(-5.9457836,-6.573602,-0.8812491,1.5436668);
    buf[0]=sigmoid(buf[0]);buf[1]=sigmoid(buf[1]);
    buf[2]=mat4(vec4(-15.219568,8.095543,-2.429353,-1.9381982),vec4(-5.951362,4.3115187,2.6393783,1.274315),vec4(-7.3145227,6.7297835,5.2473326,5.9411426),vec4(5.0796127,8.979051,-1.7278991,-1.158976))*buf[6]+mat4(vec4(-11.967154,-11.608155,6.1486754,11.237008),vec4(2.124141,-6.263192,-1.7050359,-0.7021966),vec4(0.,0.,0.,0.),vec4(0.,0.,0.,0.))*buf[7]+vec4(-4.17164,-3.2281182,-4.576417,-3.6401186);
    buf[3]=mat4(vec4(3.1832156,-13.738922,1.879223,3.233465),vec4(0.64300746,12.768129,1.9141049,0.50990224),vec4(-0.049295485,4.4807224,1.4733979,1.801449),vec4(5.0039253,13.000481,3.3991797,-4.5561905))*buf[6]+mat4(vec4(-0.1285731,7.720628,-3.1425676,4.742367),vec4(0.6393625,3.714393,-0.8108378,-0.39174938),vec4(0.,0.,0.,0.),vec4(0.,0.,0.,0.))*buf[7]+vec4(-1.1811101,-21.621881,0.7851888,1.2329718);
    buf[2]=sigmoid(buf[2]);buf[3]=sigmoid(buf[3]);
    buf[4]=mat4(vec4(5.214916,-7.183024,2.7228765,2.6592617),vec4(-5.601878,-25.3591,4.067988,0.4602802),vec4(-10.57759,24.286327,21.102104,37.546658),vec4(4.3024497,-1.9625226,2.3458803,-1.372816))*buf[0]+mat4(vec4(-17.6526,-10.507558,2.2587414,12.462782),vec4(6.265566,-502.75443,-12.642513,0.9112289),vec4(-10.983244,20.741234,-9.701768,-0.7635988),vec4(5.383626,1.4819539,-4.1911616,-4.8444734))*buf[1]+mat4(vec4(12.785233,-16.345072,-0.39901125,1.7955981),vec4(-30.48365,-1.8345358,1.4542528,-1.1118771),vec4(19.872723,-7.337935,-42.941723,-98.52709),vec4(8.337645,-2.7312303,-2.2927687,-36.142323))*buf[2]+mat4(vec4(-16.298317,3.5471997,-0.44300047,-9.444417),vec4(57.5077,-35.609753,16.163465,-4.1534753),vec4(-0.07470326,-3.8656476,-7.0901804,3.1523974),vec4(-12.559385,-7.077619,1.490437,-0.8211543))*buf[3]+vec4(-7.67914,15.927437,1.3207729,-1.6686112);
    buf[5]=mat4(vec4(-1.4109162,-0.372762,-3.770383,-21.367174),vec4(-6.2103205,-9.35908,0.92529047,8.82561),vec4(11.460242,-22.348068,13.625772,-18.693201),vec4(-0.3429052,-3.9905605,-2.4626114,-0.45033523))*buf[0]+mat4(vec4(7.3481627,-4.3661838,-6.3037653,-3.868115),vec4(1.5462853,6.5488915,1.9701879,-0.58291394),vec4(6.5858274,-2.2180402,3.7127688,-1.3730392),vec4(-5.7973905,10.134961,-2.3395722,-5.965605))*buf[1]+mat4(vec4(-2.5132585,-6.6685553,-1.4029363,-0.16285264),vec4(-0.37908727,0.53738135,4.389061,-1.3024765),vec4(-0.70647055,2.0111287,-5.1659346,-3.728635),vec4(-13.562562,10.487719,-0.9173751,-2.6487076))*buf[2]+mat4(vec4(-8.645013,6.5546675,-6.3944063,-5.5933375),vec4(-0.57783127,-1.077275,36.91025,5.736769),vec4(14.283112,3.7146652,7.1452246,-4.5958776),vec4(2.7192075,3.6021907,-4.366337,-2.3653464))*buf[3]+vec4(-5.9000807,-4.329569,1.2427121,8.59503);
    buf[4]=sigmoid(buf[4]);buf[5]=sigmoid(buf[5]);
    buf[6]=mat4(vec4(-1.61102,0.7970257,1.4675229,0.20917463),vec4(-28.793737,-7.1390953,1.5025433,4.656581),vec4(-10.94861,39.66238,0.74318546,-10.095605),vec4(-0.7229728,-1.5483948,0.7301322,2.1687684))*buf[0]+mat4(vec4(3.2547753,21.489103,-1.0194173,-3.3100595),vec4(-3.7316632,-3.3792162,-7.223193,-0.23685838),vec4(13.1804495,0.7916005,5.338587,5.687114),vec4(-4.167605,-17.798311,-6.815736,-1.6451967))*buf[1]+mat4(vec4(0.604885,-7.800309,-7.213122,-2.741014),vec4(-3.522382,-0.12359311,-0.5258442,0.43852118),vec4(9.6752825,-22.853785,2.062431,0.099892326),vec4(-4.3196306,-17.730087,2.5184598,5.30267))*buf[2]+mat4(vec4(-6.545563,-15.790176,-6.0438633,-5.415399),vec4(-43.591583,28.551912,-16.00161,18.84728),vec4(4.212382,8.394307,3.0958717,8.657522),vec4(-5.0237565,-4.450633,-4.4768,-5.5010443))*buf[3]+mat4(vec4(1.6985557,-67.05806,6.897715,1.9004834),vec4(1.8680354,2.3915145,2.5231109,4.081538),vec4(11.158006,1.7294737,2.0738268,7.386411),vec4(-4.256034,-306.24686,8.258898,-17.132736))*buf[4]+mat4(vec4(1.6889864,-4.5852966,3.8534803,-6.3482175),vec4(1.3543309,-1.2640043,9.932754,2.9079645),vec4(-5.2770967,0.07150358,-0.13962056,3.3269649),vec4(28.34703,-4.918278,6.1044083,4.085355))*buf[5]+vec4(6.6818056,12.522166,-3.7075126,-4.104386);
    buf[7]=mat4(vec4(-8.265602,-4.7027016,5.098234,0.7509808),vec4(8.6507845,-17.15949,16.51939,-8.884479),vec4(-4.036479,-2.3946867,-2.6055532,-1.9866527),vec4(-2.2167742,-1.8135649,-5.9759874,4.8846445))*buf[0]+mat4(vec4(6.7790847,3.5076547,-2.8191125,-2.7028968),vec4(-5.743024,-0.27844876,1.4958696,-5.0517144),vec4(13.122226,15.735168,-2.9397483,-4.101023),vec4(-14.375265,-5.030483,-6.2599335,2.9848232))*buf[1]+mat4(vec4(4.0950394,-0.94011575,-5.674733,4.755022),vec4(4.3809423,4.8310084,1.7425908,-3.437416),vec4(2.117492,0.16342592,-104.56341,16.949184),vec4(-5.22543,-2.994248,3.8350096,-1.9364246))*buf[2]+mat4(vec4(-5.900337,1.7946124,-13.604192,-3.8060522),vec4(6.6583457,31.911177,25.164474,91.81147),vec4(11.840538,4.1503043,-0.7314397,6.768467),vec4(-6.3967767,4.034772,6.1714606,-0.32874924))*buf[3]+mat4(vec4(3.4992442,-196.91893,-8.923708,2.8142626),vec4(3.4806502,-3.1846354,5.1725626,5.1804223),vec4(-2.4009497,15.585794,1.2863957,2.0252278),vec4(-71.25271,-62.441242,-8.138444,0.50670296))*buf[4]+mat4(vec4(-12.291733,-11.176166,-7.3474145,4.390294),vec4(10.805477,5.6337385,-0.9385842,-4.7348723),vec4(-12.869276,-7.039391,5.3029537,7.5436664),vec4(1.4593618,8.91898,3.5101583,5.840625))*buf[5]+vec4(2.2415268,-6.705987,-0.98861027,-2.117676);
    buf[6]=sigmoid(buf[6]);buf[7]=sigmoid(buf[7]);
    buf[0]=mat4(vec4(1.6794263,1.3817469,2.9625452,0.),vec4(-1.8834411,-1.4806935,-3.5924516,0.),vec4(-1.3279216,-1.0918057,-2.3124623,0.),vec4(0.2662234,0.23235129,0.44178495,0.))*buf[0]+mat4(vec4(-0.6299101,-0.5945583,-0.9125601,0.),vec4(0.17828953,0.18300213,0.18182953,0.),vec4(-2.96544,-2.5819945,-4.9001055,0.),vec4(1.4195864,1.1868085,2.5176322,0.))*buf[1]+mat4(vec4(-1.2584374,-1.0552157,-2.1688404,0.),vec4(-0.7200217,-0.52666044,-1.438251,0.),vec4(0.15345335,0.15196142,0.272854,0.),vec4(0.945728,0.8861938,1.2766753,0.))*buf[2]+mat4(vec4(-2.4218085,-1.968602,-4.35166,0.),vec4(-22.683098,-18.0544,-41.954372,0.),vec4(0.63792,0.5470648,1.1078634,0.),vec4(-1.5489894,-1.3075932,-2.6444845,0.))*buf[3]+mat4(vec4(-0.49252132,-0.39877754,-0.91366625,0.),vec4(0.95609266,0.7923952,1.640221,0.),vec4(0.30616966,0.15693925,0.8639857,0.),vec4(1.1825981,0.94504964,2.176963,0.))*buf[4]+mat4(vec4(0.35446745,0.3293795,0.59547555,0.),vec4(-0.58784515,-0.48177817,-1.0614829,0.),vec4(2.5271258,1.9991658,4.6846647,0.),vec4(0.13042648,0.08864098,0.30187556,0.))*buf[5]+mat4(vec4(-1.7718065,-1.4033192,-3.3355875,0.),vec4(3.1664357,2.638297,5.378702,0.),vec4(-3.1724713,-2.6107926,-5.549295,0.),vec4(-2.851368,-2.249092,-5.3013067,0.))*buf[6]+mat4(vec4(1.5203838,1.2212278,2.8404984,0.),vec4(1.5210563,1.2651345,2.683903,0.),vec4(2.9789467,2.4364579,5.2347264,0.),vec4(2.2270417,1.8825914,3.8028636,0.))*buf[7]+vec4(-1.5468478,-3.6171484,0.24762098,0.);
    buf[0]=sigmoid(buf[0]);
    return vec4(buf[0].x,buf[0].y,buf[0].z,1.);
}

void mainImage(out vec4 fragColor,in vec2 fragCoord){
    vec2 uv=fragCoord/uResolution.xy*2.-1.;
    uv.y*=-1.;
    uv+=uWarp*vec2(sin(uv.y*6.283+uTime*0.5),cos(uv.x*6.283+uTime*0.5))*0.05;
    fragColor=cppn_fn(uv,0.1*sin(0.3*uTime),0.1*sin(0.69*uTime),0.1*sin(0.44*uTime));
}

void main(){
    vec4 col;mainImage(col,gl_FragCoord.xy);
    col.rgb=hueShiftRGB(col.rgb,uHueShift);
    float scanline_val=sin(gl_FragCoord.y*uScanFreq)*0.5+0.5;
    col.rgb*=1.-(scanline_val*scanline_val)*uScan;
    col.rgb+=(rand(gl_FragCoord.xy+uTime)-0.5)*uNoise;
    gl_FragColor=vec4(clamp(col.rgb,0.0,1.0),1.0);
}
`;function Hee({hueShift:e=0,noiseIntensity:t=0,scanlineIntensity:r=0,speed:n=.5,scanlineFrequency:i=0,warpAmount:a=0,resolutionScale:s=1}){const o=A.useRef(null);return A.useEffect(()=>{const c=o.current,f=c.parentElement,h=new TJ({dpr:Math.min(window.devicePixelRatio,2),canvas:c}),p=h.gl,m=new Uee(p),g=new _J(p,{vertex:zee,fragment:Vee,uniforms:{uTime:{value:0},uResolution:{value:new aA},uHueShift:{value:e},uNoise:{value:t},uScan:{value:r},uScanFreq:{value:i},uWarp:{value:a}}}),y=new See(p,{geometry:m,program:g}),x=()=>{const S=f.clientWidth,O=f.clientHeight;h.setSize(S*s,O*s),g.uniforms.uResolution.value.set(S,O)};window.addEventListener("resize",x),x();const _=performance.now();let w=0;const T=()=>{g.uniforms.uTime.value=(performance.now()-_)/1e3*n,g.uniforms.uHueShift.value=e,g.uniforms.uNoise.value=t,g.uniforms.uScan.value=r,g.uniforms.uScanFreq.value=i,g.uniforms.uWarp.value=a,h.render({scene:y}),w=requestAnimationFrame(T)};return T(),()=>{cancelAnimationFrame(w),window.removeEventListener("resize",x)}},[e,t,r,n,i,a,s]),P.jsx("canvas",{ref:o,className:"darkveil-canvas"})}function jo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
 * GSAP 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var Ba={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},w0={duration:.5,overwrite:!1,delay:0},sA,si,Ar,xs=1e8,hr=1/xs,LS=Math.PI*2,$ee=LS/4,Wee=0,W7=Math.sqrt,qee=Math.cos,Gee=Math.sin,qn=function(t){return typeof t=="string"},qr=function(t){return typeof t=="function"},il=function(t){return typeof t=="number"},oA=function(t){return typeof t>"u"},yo=function(t){return typeof t=="object"},aa=function(t){return t!==!1},lA=function(){return typeof window<"u"},$1=function(t){return qr(t)||qn(t)},q7=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ci=Array.isArray,IS=/(?:-?\.?\d|\.)+/gi,G7=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,r0=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,J_=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,X7=/[+-]=-?[.\d]+/,Y7=/[^,'"\[\]\s]+/gi,Xee=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Mr,ao,BS,cA,za={},cv={},K7,Z7=function(t){return(cv=S0(t,za))&&ha},uA=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},mp=function(t,r){return!r&&console.warn(t)},Q7=function(t,r){return t&&(za[t]=r)&&cv&&(cv[t]=r)||za},gp=function(){return 0},Yee={suppressEvents:!0,isStart:!0,kill:!1},Ig={suppressEvents:!0,kill:!1},Kee={suppressEvents:!0},fA={},ac=[],jS={},J7,Aa={},eb={},jM=30,Bg=[],hA="",dA=function(t){var r=t[0],n,i;if(yo(r)||qr(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=Bg.length;i--&&!Bg[i].targetTest(r););n=Bg[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new S9(t[i],n)))||t.splice(i,1);return t},pu=function(t){return t._gsap||dA(ys(t))[0]._gsap},e9=function(t,r,n){return(n=t[r])&&qr(n)?t[r]():oA(n)&&t.getAttribute&&t.getAttribute(r)||n},sa=function(t,r){return(t=t.split(",")).forEach(r)||t},nn=function(t){return Math.round(t*1e5)/1e5||0},yn=function(t){return Math.round(t*1e7)/1e7||0},l0=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},Zee=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},uv=function(){var t=ac.length,r=ac.slice(0),n,i;for(jS={},ac.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},pA=function(t){return!!(t._initted||t._startAt||t.add)},t9=function(t,r,n,i){ac.length&&!si&&uv(),t.render(r,n,!!(si&&r<0&&pA(t))),ac.length&&!si&&uv()},r9=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(Y7).length<2?r:qn(t)?t.trim():t},n9=function(t){return t},Va=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},Qee=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},S0=function(t,r){for(var n in r)t[n]=r[n];return t},UM=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=yo(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},fv=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},Ud=function(t){var r=t.parent||Mr,n=t.keyframes?Qee(Ci(t.keyframes)):Va;if(aa(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Jee=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},i9=function(t,r,n,i,a){var s=t[i],o;if(a)for(o=r[a];s&&s[a]>o;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=s,r.parent=r._dp=t,r},Tx=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,s=r._next;a?a._next=s:t[n]===r&&(t[n]=s),s?s._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},fc=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},mu=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},ete=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},US=function(t,r,n,i){return t._startAt&&(si?t._startAt.revert(Ig):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},tte=function e(t){return!t||t._ts&&e(t.parent)},zM=function(t){return t._repeat?E0(t._tTime,t=t.duration()+t._rDelay)*t:0},E0=function(t,r){var n=Math.floor(t=yn(t/r));return t&&n===t?n-1:n},hv=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Ax=function(t){return t._end=yn(t._start+(t._tDur/Math.abs(t._ts||t._rts||hr)||0))},Cx=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=yn(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Ax(t),n._dirty||mu(n,t)),t},a9=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=hv(t.rawTime(),r),(!r._dur||im(0,r.totalDuration(),n)-r._tTime>hr)&&r.render(n,!0)),mu(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-hr}},oo=function(t,r,n,i){return r.parent&&fc(r),r._start=yn((il(n)?n:n||t!==Mr?hs(t,n,r):t._time)+r._delay),r._end=yn(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),i9(t,r,"_first","_last",t._sort?"_start":0),zS(r)||(t._recent=r),i||a9(t,r),t._ts<0&&Cx(t,t._tTime),t},s9=function(t,r){return(za.ScrollTrigger||uA("scrollTrigger",r))&&za.ScrollTrigger.create(r,t)},o9=function(t,r,n,i,a){if(gA(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!si&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&J7!==Ma.frame)return ac.push(t),t._lazy=[a,i],1},rte=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},zS=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},nte=function(t,r,n,i){var a=t.ratio,s=r<0||!r&&(!t._start&&rte(t)&&!(!t._initted&&zS(t))||(t._ts<0||t._dp._ts<0)&&!zS(t))?0:1,o=t._rDelay,c=0,f,h,p;if(o&&t._repeat&&(c=im(0,t._tDur,r),h=E0(c,o),t._yoyo&&h&1&&(s=1-s),h!==E0(t._tTime,o)&&(a=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==a||si||i||t._zTime===hr||!r&&t._zTime){if(!t._initted&&o9(t,r,i,n,c))return;for(p=t._zTime,t._zTime=r||(n?hr:0),n||(n=r&&!p),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=c,f=t._pt;f;)f.r(s,f.d),f=f._next;r<0&&US(t,r,n,!0),t._onUpdate&&!n&&Ia(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&Ia(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===s&&(s&&fc(t,1),!n&&!si&&(Ia(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},ite=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},T0=function(t,r,n,i){var a=t._repeat,s=yn(r)||0,o=t._tTime/t._tDur;return o&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=a?a<0?1e10:yn(s*(a+1)+t._rDelay*a):s,o>0&&!i&&Cx(t,t._tTime=t._tDur*o),t.parent&&Ax(t),n||mu(t.parent,t),t},VM=function(t){return t instanceof Hi?mu(t):T0(t,t._dur)},ate={_start:0,endTime:gp,totalDuration:gp},hs=function e(t,r,n){var i=t.labels,a=t._recent||ate,s=t.duration()>=xs?a.endTime(!1):t._dur,o,c,f;return qn(r)&&(isNaN(r)||r in i)?(c=r.charAt(0),f=r.substr(-1)==="%",o=r.indexOf("="),c==="<"||c===">"?(o>=0&&(r=r.replace(/=/,"")),(c==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(f?(o<0?a:n).totalDuration()/100:1)):o<0?(r in i||(i[r]=s),i[r]):(c=parseFloat(r.charAt(o-1)+r.substr(o+1)),f&&n&&(c=c/100*(Ci(n)?n[0]:n).totalDuration()),o>1?e(t,r.substr(0,o-1),n)+c:s+c)):r==null?s:+r},zd=function(t,r,n){var i=il(r[1]),a=(i?2:1)+(t<2?0:1),s=r[a],o,c;if(i&&(s.duration=r[1]),s.parent=n,t){for(o=s,c=n;c&&!("immediateRender"in o);)o=c.vars.defaults||{},c=aa(c.vars.inherit)&&c.parent;s.immediateRender=aa(o.immediateRender),t<2?s.runBackwards=1:s.startAt=r[a-1]}return new xn(r[0],s,r[a+1])},_c=function(t,r){return t||t===0?r(t):r},im=function(t,r,n){return n<t?t:n>r?r:n},_i=function(t,r){return!qn(t)||!(r=Xee.exec(t))?"":r[1]},ste=function(t,r,n){return _c(n,function(i){return im(t,r,i)})},VS=[].slice,l9=function(t,r){return t&&yo(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&yo(t[0]))&&!t.nodeType&&t!==ao},ote=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return qn(i)&&!r||l9(i,1)?(a=n).push.apply(a,ys(i)):n.push(i)})||n},ys=function(t,r,n){return Ar&&!r&&Ar.selector?Ar.selector(t):qn(t)&&!n&&(BS||!A0())?VS.call((r||cA).querySelectorAll(t),0):Ci(t)?ote(t,n):l9(t)?VS.call(t,0):t?[t]:[]},HS=function(t){return t=ys(t)[0]||mp("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return ys(r,n.querySelectorAll?n:n===t?mp("Invalid scope")||cA.createElement("div"):t)}},c9=function(t){return t.sort(function(){return .5-Math.random()})},u9=function(t){if(qr(t))return t;var r=yo(t)?t:{each:t},n=gu(r.ease),i=r.from||0,a=parseFloat(r.base)||0,s={},o=i>0&&i<1,c=isNaN(i)||o,f=r.axis,h=i,p=i;return qn(i)?h=p={center:.5,edges:.5,end:1}[i]||0:!o&&c&&(h=i[0],p=i[1]),function(m,g,y){var x=(y||r).length,_=s[x],w,T,S,O,C,k,D,M,N;if(!_){if(N=r.grid==="auto"?0:(r.grid||[1,xs])[1],!N){for(D=-xs;D<(D=y[N++].getBoundingClientRect().left)&&N<x;);N<x&&N--}for(_=s[x]=[],w=c?Math.min(N,x)*h-.5:i%N,T=N===xs?0:c?x*p/N-.5:i/N|0,D=0,M=xs,k=0;k<x;k++)S=k%N-w,O=T-(k/N|0),_[k]=C=f?Math.abs(f==="y"?O:S):W7(S*S+O*O),C>D&&(D=C),C<M&&(M=C);i==="random"&&c9(_),_.max=D-M,_.min=M,_.v=x=(parseFloat(r.amount)||parseFloat(r.each)*(N>x?x-1:f?f==="y"?x/N:N:Math.max(N,x/N))||0)*(i==="edges"?-1:1),_.b=x<0?a-x:a,_.u=_i(r.amount||r.each)||0,n=n&&x<0?_9(n):n}return x=(_[m]-_.min)/_.max||0,yn(_.b+(n?n(x):x)*_.v)+_.u}},$S=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=yn(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(il(n)?0:_i(n))}},f9=function(t,r){var n=Ci(t),i,a;return!n&&yo(t)&&(i=n=t.radius||xs,t.values?(t=ys(t.values),(a=!il(t[0]))&&(i*=i)):t=$S(t.increment)),_c(r,n?qr(t)?function(s){return a=t(s),Math.abs(a-s)<=i?a:s}:function(s){for(var o=parseFloat(a?s.x:s),c=parseFloat(a?s.y:0),f=xs,h=0,p=t.length,m,g;p--;)a?(m=t[p].x-o,g=t[p].y-c,m=m*m+g*g):m=Math.abs(t[p]-o),m<f&&(f=m,h=p);return h=!i||f<=i?t[h]:s,a||h===s||il(s)?h:h+_i(s)}:$S(t))},h9=function(t,r,n,i){return _c(Ci(t)?!r:n===!0?!!(n=0):!i,function(){return Ci(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},lte=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,s){return s(a)},i)}},cte=function(t,r){return function(n){return t(parseFloat(n))+(r||_i(n))}},ute=function(t,r,n){return p9(t,r,0,1,n)},d9=function(t,r,n){return _c(n,function(i){return t[~~r(i)]})},fte=function e(t,r,n){var i=r-t;return Ci(t)?d9(t,e(0,t.length),r):_c(n,function(a){return(i+(a-t)%i)%i+t})},hte=function e(t,r,n){var i=r-t,a=i*2;return Ci(t)?d9(t,e(0,t.length-1),r):_c(n,function(s){return s=(a+(s-t)%a)%a||0,t+(s>i?a-s:s)})},vp=function(t){for(var r=0,n="",i,a,s,o;~(i=t.indexOf("random(",r));)s=t.indexOf(")",i),o=t.charAt(i+7)==="[",a=t.substr(i+7,s-i-7).match(o?Y7:IS),n+=t.substr(r,i-r)+h9(o?a:+a[0],o?0:+a[1],+a[2]||1e-5),r=s+1;return n+t.substr(r,t.length-r)},p9=function(t,r,n,i,a){var s=r-t,o=i-n;return _c(a,function(c){return n+((c-t)/s*o||0)})},dte=function e(t,r,n,i){var a=isNaN(t+r)?0:function(g){return(1-g)*t+g*r};if(!a){var s=qn(t),o={},c,f,h,p,m;if(n===!0&&(i=1)&&(n=null),s)t={p:t},r={p:r};else if(Ci(t)&&!Ci(r)){for(h=[],p=t.length,m=p-2,f=1;f<p;f++)h.push(e(t[f-1],t[f]));p--,a=function(y){y*=p;var x=Math.min(m,~~y);return h[x](y-x)},n=r}else i||(t=S0(Ci(t)?[]:{},t));if(!h){for(c in r)mA.call(o,t,c,"get",r[c]);a=function(y){return yA(y,o)||(s?t.p:t)}}}return _c(n,a)},HM=function(t,r,n){var i=t.labels,a=xs,s,o,c;for(s in i)o=i[s]-r,o<0==!!n&&o&&a>(o=Math.abs(o))&&(c=s,a=o);return c},Ia=function(t,r,n){var i=t.vars,a=i[r],s=Ar,o=t._ctx,c,f,h;if(a)return c=i[r+"Params"],f=i.callbackScope||t,n&&ac.length&&uv(),o&&(Ar=o),h=c?a.apply(f,c):a.call(f),Ar=s,h},wd=function(t){return fc(t),t.scrollTrigger&&t.scrollTrigger.kill(!!si),t.progress()<1&&Ia(t,"onInterrupt"),t},n0,m9=[],g9=function(t){if(t)if(t=!t.name&&t.default||t,lA()||t.headless){var r=t.name,n=qr(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:gp,render:yA,add:mA,kill:kte,modifier:Ote,rawVars:0},s={targetTest:0,get:0,getSetter:xA,aliases:{},register:0};if(A0(),t!==i){if(Aa[r])return;Va(i,Va(fv(t,a),s)),S0(i.prototype,S0(a,fv(t,s))),Aa[i.prop=r]=i,t.targetTest&&(Bg.push(i),fA[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}Q7(r,i),t.register&&t.register(ha,i,oa)}else m9.push(t)},fr=255,Sd={aqua:[0,fr,fr],lime:[0,fr,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,fr],navy:[0,0,128],white:[fr,fr,fr],olive:[128,128,0],yellow:[fr,fr,0],orange:[fr,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[fr,0,0],pink:[fr,192,203],cyan:[0,fr,fr],transparent:[fr,fr,fr,0]},tb=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*fr+.5|0},v9=function(t,r,n){var i=t?il(t)?[t>>16,t>>8&fr,t&fr]:0:Sd.black,a,s,o,c,f,h,p,m,g,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Sd[t])i=Sd[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),s=t.charAt(2),o=t.charAt(3),t="#"+a+a+s+s+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&fr,i&fr,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&fr,t&fr]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(IS),!r)c=+i[0]%360/360,f=+i[1]/100,h=+i[2]/100,s=h<=.5?h*(f+1):h+f-h*f,a=h*2-s,i.length>3&&(i[3]*=1),i[0]=tb(c+1/3,a,s),i[1]=tb(c,a,s),i[2]=tb(c-1/3,a,s);else if(~t.indexOf("="))return i=t.match(G7),n&&i.length<4&&(i[3]=1),i}else i=t.match(IS)||Sd.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/fr,s=i[1]/fr,o=i[2]/fr,p=Math.max(a,s,o),m=Math.min(a,s,o),h=(p+m)/2,p===m?c=f=0:(g=p-m,f=h>.5?g/(2-p-m):g/(p+m),c=p===a?(s-o)/g+(s<o?6:0):p===s?(o-a)/g+2:(a-s)/g+4,c*=60),i[0]=~~(c+.5),i[1]=~~(f*100+.5),i[2]=~~(h*100+.5)),n&&i.length<4&&(i[3]=1),i},x9=function(t){var r=[],n=[],i=-1;return t.split(sc).forEach(function(a){var s=a.match(r0)||[];r.push.apply(r,s),n.push(i+=s.length+1)}),r.c=n,r},$M=function(t,r,n){var i="",a=(t+i).match(sc),s=r?"hsla(":"rgba(",o=0,c,f,h,p;if(!a)return t;if(a=a.map(function(m){return(m=v9(m,r,1))&&s+(r?m[0]+","+m[1]+"%,"+m[2]+"%,"+m[3]:m.join(","))+")"}),n&&(h=x9(t),c=n.c,c.join(i)!==h.c.join(i)))for(f=t.replace(sc,"1").split(r0),p=f.length-1;o<p;o++)i+=f[o]+(~c.indexOf(o)?a.shift()||s+"0,0,0,0)":(h.length?h:a.length?a:n).shift());if(!f)for(f=t.split(sc),p=f.length-1;o<p;o++)i+=f[o]+a[o];return i+f[p]},sc=function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Sd)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),pte=/hsl[a]?\(/,y9=function(t){var r=t.join(" "),n;if(sc.lastIndex=0,sc.test(r))return n=pte.test(r),t[1]=$M(t[1],n),t[0]=$M(t[0],n,x9(t[1])),!0},xp,Ma=function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,s=a,o=[],c,f,h,p,m,g,y=function x(_){var w=e()-i,T=_===!0,S,O,C,k;if((w>t||w<0)&&(n+=w-r),i+=w,C=i-n,S=C-s,(S>0||T)&&(k=++p.frame,m=C-p.time*1e3,p.time=C=C/1e3,s+=S+(S>=a?4:a-S),O=1),T||(c=f(x)),O)for(g=0;g<o.length;g++)o[g](C,m,k,_)};return p={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(_){return m/(1e3/(_||60))},wake:function(){K7&&(!BS&&lA()&&(ao=BS=window,cA=ao.document||{},za.gsap=ha,(ao.gsapVersions||(ao.gsapVersions=[])).push(ha.version),Z7(cv||ao.GreenSockGlobals||!ao.gsap&&ao||{}),m9.forEach(g9)),h=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&p.sleep(),f=h||function(_){return setTimeout(_,s-p.time*1e3+1|0)},xp=1,y(2))},sleep:function(){(h?cancelAnimationFrame:clearTimeout)(c),xp=0,f=gp},lagSmoothing:function(_,w){t=_||1/0,r=Math.min(w||33,t)},fps:function(_){a=1e3/(_||240),s=p.time*1e3+a},add:function(_,w,T){var S=w?function(O,C,k,D){_(O,C,k,D),p.remove(S)}:_;return p.remove(_),o[T?"unshift":"push"](S),A0(),S},remove:function(_,w){~(w=o.indexOf(_))&&o.splice(w,1)&&g>=w&&g--},_listeners:o},p}(),A0=function(){return!xp&&Ma.wake()},Bt={},mte=/^[\d.\-M][\d.\-,\s]/,gte=/["']/g,vte=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,s=n.length,o,c,f;a<s;a++)c=n[a],o=a!==s-1?c.lastIndexOf(","):c.length,f=c.substr(0,o),r[i]=isNaN(f)?f.replace(gte,"").trim():+f,i=c.substr(o+1).trim();return r},xte=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},yte=function(t){var r=(t+"").split("("),n=Bt[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[vte(r[1])]:xte(t).split(",").map(r9)):Bt._CE&&mte.test(t)?Bt._CE("",t):n},_9=function(t){return function(r){return 1-t(1-r)}},b9=function e(t,r){for(var n=t._first,i;n;)n instanceof Hi?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},gu=function(t,r){return t&&(qr(t)?t:Bt[t]||yte(t))||r},Xu=function(t,r,n,i){n===void 0&&(n=function(c){return 1-r(1-c)}),i===void 0&&(i=function(c){return c<.5?r(c*2)/2:1-r((1-c)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},s;return sa(t,function(o){Bt[o]=za[o]=a,Bt[s=o.toLowerCase()]=n;for(var c in a)Bt[s+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=Bt[o+"."+c]=a[c]}),a},w9=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},rb=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),s=a/LS*(Math.asin(1/i)||0),o=function(h){return h===1?1:i*Math.pow(2,-10*h)*Gee((h-s)*a)+1},c=t==="out"?o:t==="in"?function(f){return 1-o(1-f)}:w9(o);return a=LS/a,c.config=function(f,h){return e(t,f,h)},c},nb=function e(t,r){r===void 0&&(r=1.70158);var n=function(s){return s?--s*s*((r+1)*s+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:w9(n);return i.config=function(a){return e(t,a)},i};sa("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;Xu(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Bt.Linear.easeNone=Bt.none=Bt.Linear.easeIn;Xu("Elastic",rb("in"),rb("out"),rb());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(o){return o<r?e*o*o:o<n?e*Math.pow(o-1.5/t,2)+.75:o<i?e*(o-=2.25/t)*o+.9375:e*Math.pow(o-2.625/t,2)+.984375};Xu("Bounce",function(s){return 1-a(1-s)},a)})(7.5625,2.75);Xu("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});Xu("Circ",function(e){return-(W7(1-e*e)-1)});Xu("Sine",function(e){return e===1?1:-qee(e*$ee)+1});Xu("Back",nb("in"),nb("out"),nb());Bt.SteppedEase=Bt.steps=za.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,s=1-hr;return function(o){return((i*im(0,s,o)|0)+a)*n}}};w0.ease=Bt["quad.out"];sa("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return hA+=e+","+e+"Params,"});var S9=function(t,r){this.id=Wee++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:e9,this.set=r?r.getSetter:xA},yp=function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,T0(this,+r.duration,1,1),this.data=r.data,Ar&&(this._ctx=Ar,Ar.data.push(this)),xp||Ma.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,T0(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(A0(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Cx(this,n),!a._dp||a.parent||a9(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&oo(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===hr||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),t9(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+zM(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+zM(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?E0(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-hr?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?hv(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-hr?0:this._rts,this.totalTime(im(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Ax(this),ete(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(A0(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==hr&&(this._tTime-=hr)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&oo(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(aa(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?hv(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=Kee);var i=si;return si=n,pA(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),si=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,VM(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,VM(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(hs(this,n),aa(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,aa(i)),this._dur||(this._zTime=-hr),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-hr:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-hr,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-hr)},t.eventCallback=function(n,i,a){var s=this.vars;return arguments.length>1?(i?(s[n]=i,a&&(s[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete s[n],this):s[n]},t.then=function(n){var i=this;return new Promise(function(a){var s=qr(n)?n:n9,o=function(){var f=i.then;i.then=null,qr(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=f),a(s),i.then=f};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},t.kill=function(){wd(this)},e}();Va(yp.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-hr,_prom:0,_ps:!1,_rts:1});var Hi=function(e){$7(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=aa(n.sortChildren),Mr&&oo(n.parent||Mr,jo(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&s9(jo(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,s){return zd(0,arguments,this),this},r.from=function(i,a,s){return zd(1,arguments,this),this},r.fromTo=function(i,a,s,o){return zd(2,arguments,this),this},r.set=function(i,a,s){return a.duration=0,a.parent=this,Ud(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new xn(i,a,hs(this,s),1),this},r.call=function(i,a,s){return oo(this,xn.delayedCall(0,i,a),s)},r.staggerTo=function(i,a,s,o,c,f,h){return s.duration=a,s.stagger=s.stagger||o,s.onComplete=f,s.onCompleteParams=h,s.parent=this,new xn(i,s,hs(this,c)),this},r.staggerFrom=function(i,a,s,o,c,f,h){return s.runBackwards=1,Ud(s).immediateRender=aa(s.immediateRender),this.staggerTo(i,a,s,o,c,f,h)},r.staggerFromTo=function(i,a,s,o,c,f,h,p){return o.startAt=s,Ud(o).immediateRender=aa(o.immediateRender),this.staggerTo(i,a,o,c,f,h,p)},r.render=function(i,a,s){var o=this._time,c=this._dirty?this.totalDuration():this._tDur,f=this._dur,h=i<=0?0:yn(i),p=this._zTime<0!=i<0&&(this._initted||!f),m,g,y,x,_,w,T,S,O,C,k,D;if(this!==Mr&&h>c&&i>=0&&(h=c),h!==this._tTime||s||p){if(o!==this._time&&f&&(h+=this._time-o,i+=this._time-o),m=h,O=this._start,S=this._ts,w=!S,p&&(f||(o=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(k=this._yoyo,_=f+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(_*100+i,a,s);if(m=yn(h%_),h===c?(x=this._repeat,m=f):(C=yn(h/_),x=~~C,x&&x===C&&(m=f,x--),m>f&&(m=f)),C=E0(this._tTime,_),!o&&this._tTime&&C!==x&&this._tTime-C*_-this._dur<=0&&(C=x),k&&x&1&&(m=f-m,D=1),x!==C&&!this._lock){var M=k&&C&1,N=M===(k&&x&1);if(x<C&&(M=!M),o=M?0:h%f?f:h,this._lock=1,this.render(o||(D?0:yn(x*_)),a,!f)._lock=0,this._tTime=h,!a&&this.parent&&Ia(this,"onRepeat"),this.vars.repeatRefresh&&!D&&(this.invalidate()._lock=1),o&&o!==this._time||w!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(f=this._dur,c=this._tDur,N&&(this._lock=2,o=M?f:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!D&&this.invalidate()),this._lock=0,!this._ts&&!w)return this;b9(this,D)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(T=ite(this,yn(o),yn(m)),T&&(h-=m-(m=T._start))),this._tTime=h,this._time=m,this._act=!S,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&h&&!a&&!C&&(Ia(this,"onStart"),this._tTime!==h))return this;if(m>=o&&i>=0)for(g=this._first;g;){if(y=g._next,(g._act||m>=g._start)&&g._ts&&T!==g){if(g.parent!==this)return this.render(i,a,s);if(g.render(g._ts>0?(m-g._start)*g._ts:(g._dirty?g.totalDuration():g._tDur)+(m-g._start)*g._ts,a,s),m!==this._time||!this._ts&&!w){T=0,y&&(h+=this._zTime=-hr);break}}g=y}else{g=this._last;for(var z=i<0?i:m;g;){if(y=g._prev,(g._act||z<=g._end)&&g._ts&&T!==g){if(g.parent!==this)return this.render(i,a,s);if(g.render(g._ts>0?(z-g._start)*g._ts:(g._dirty?g.totalDuration():g._tDur)+(z-g._start)*g._ts,a,s||si&&pA(g)),m!==this._time||!this._ts&&!w){T=0,y&&(h+=this._zTime=z?-hr:hr);break}}g=y}}if(T&&!a&&(this.pause(),T.render(m>=o?0:-hr)._zTime=m>=o?1:-1,this._ts))return this._start=O,Ax(this),this.render(i,a,s);this._onUpdate&&!a&&Ia(this,"onUpdate",!0),(h===c&&this._tTime>=this.totalDuration()||!h&&o)&&(O===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!f)&&(h===c&&this._ts>0||!h&&this._ts<0)&&fc(this,1),!a&&!(i<0&&!o)&&(h||o||!c)&&(Ia(this,h===c&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(h<c&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var s=this;if(il(a)||(a=hs(this,a,i)),!(i instanceof yp)){if(Ci(i))return i.forEach(function(o){return s.add(o,a)}),this;if(qn(i))return this.addLabel(i,a);if(qr(i))i=xn.delayedCall(0,i);else return this}return this!==i?oo(this,i,a):this},r.getChildren=function(i,a,s,o){i===void 0&&(i=!0),a===void 0&&(a=!0),s===void 0&&(s=!0),o===void 0&&(o=-xs);for(var c=[],f=this._first;f;)f._start>=o&&(f instanceof xn?a&&c.push(f):(s&&c.push(f),i&&c.push.apply(c,f.getChildren(!0,a,s)))),f=f._next;return c},r.getById=function(i){for(var a=this.getChildren(1,1,1),s=a.length;s--;)if(a[s].vars.id===i)return a[s]},r.remove=function(i){return qn(i)?this.removeLabel(i):qr(i)?this.killTweensOf(i):(i.parent===this&&Tx(this,i),i===this._recent&&(this._recent=this._last),mu(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=yn(Ma.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=hs(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,s){var o=xn.delayedCall(0,a||gp,s);return o.data="isPause",this._hasPause=1,oo(this,o,hs(this,i))},r.removePause=function(i){var a=this._first;for(i=hs(this,i);a;)a._start===i&&a.data==="isPause"&&fc(a),a=a._next},r.killTweensOf=function(i,a,s){for(var o=this.getTweensOf(i,s),c=o.length;c--;)Ql!==o[c]&&o[c].kill(i,a);return this},r.getTweensOf=function(i,a){for(var s=[],o=ys(i),c=this._first,f=il(a),h;c;)c instanceof xn?Zee(c._targets,o)&&(f?(!Ql||c._initted&&c._ts)&&c.globalTime(0)<=a&&c.globalTime(c.totalDuration())>a:!a||c.isActive())&&s.push(c):(h=c.getTweensOf(o,a)).length&&s.push.apply(s,h),c=c._next;return s},r.tweenTo=function(i,a){a=a||{};var s=this,o=hs(s,i),c=a,f=c.startAt,h=c.onStart,p=c.onStartParams,m=c.immediateRender,g,y=xn.to(s,Va({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:a.duration||Math.abs((o-(f&&"time"in f?f.time:s._time))/s.timeScale())||hr,onStart:function(){if(s.pause(),!g){var _=a.duration||Math.abs((o-(f&&"time"in f?f.time:s._time))/s.timeScale());y._dur!==_&&T0(y,_,0,1).render(y._time,!0,!0),g=1}h&&h.apply(y,p||[])}},a));return m?y.render(0):y},r.tweenFromTo=function(i,a,s){return this.tweenTo(a,Va({startAt:{time:hs(this,i)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),HM(this,hs(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),HM(this,hs(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+hr)},r.shiftChildren=function(i,a,s){s===void 0&&(s=0);for(var o=this._first,c=this.labels,f;o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(a)for(f in c)c[f]>=s&&(c[f]+=i);return mu(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,s;a;)s=a._next,this.remove(a),a=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),mu(this)},r.totalDuration=function(i){var a=0,s=this,o=s._last,c=xs,f,h,p;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(p=s.parent;o;)f=o._prev,o._dirty&&o.totalDuration(),h=o._start,h>c&&s._sort&&o._ts&&!s._lock?(s._lock=1,oo(s,o,h-o._delay,1)._lock=0):c=h,h<0&&o._ts&&(a-=h,(!p&&!s._dp||p&&p.smoothChildTiming)&&(s._start+=h/s._ts,s._time-=h,s._tTime-=h),s.shiftChildren(-h,!1,-1/0),c=0),o._end>a&&o._ts&&(a=o._end),o=f;T0(s,s===Mr&&s._time>a?s._time:a,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(i){if(Mr._ts&&(t9(Mr,hv(i,Mr)),J7=Ma.frame),Ma.frame>=jM){jM+=Ba.autoSleep||120;var a=Mr._first;if((!a||!a._ts)&&Ba.autoSleep&&Ma._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Ma.sleep()}}},t}(yp);Va(Hi.prototype,{_lock:0,_hasPause:0,_forcing:0});var _te=function(t,r,n,i,a,s,o){var c=new oa(this._pt,t,r,0,1,k9,null,a),f=0,h=0,p,m,g,y,x,_,w,T;for(c.b=n,c.e=i,n+="",i+="",(w=~i.indexOf("random("))&&(i=vp(i)),s&&(T=[n,i],s(T,t,r),n=T[0],i=T[1]),m=n.match(J_)||[];p=J_.exec(i);)y=p[0],x=i.substring(f,p.index),g?g=(g+1)%5:x.substr(-5)==="rgba("&&(g=1),y!==m[h++]&&(_=parseFloat(m[h-1])||0,c._pt={_next:c._pt,p:x||h===1?x:",",s:_,c:y.charAt(1)==="="?l0(_,y)-_:parseFloat(y)-_,m:g&&g<4?Math.round:0},f=J_.lastIndex);return c.c=f<i.length?i.substring(f,i.length):"",c.fp=o,(X7.test(i)||w)&&(c.e=0),this._pt=c,c},mA=function(t,r,n,i,a,s,o,c,f,h){qr(i)&&(i=i(a||0,t,s));var p=t[r],m=n!=="get"?n:qr(p)?f?t[r.indexOf("set")||!qr(t["get"+r.substr(3)])?r:"get"+r.substr(3)](f):t[r]():p,g=qr(p)?f?Tte:C9:vA,y;if(qn(i)&&(~i.indexOf("random(")&&(i=vp(i)),i.charAt(1)==="="&&(y=l0(m,i)+(_i(m)||0),(y||y===0)&&(i=y))),!h||m!==i||WS)return!isNaN(m*i)&&i!==""?(y=new oa(this._pt,t,r,+m||0,i-(m||0),typeof p=="boolean"?Cte:O9,0,g),f&&(y.fp=f),o&&y.modifier(o,this,t),this._pt=y):(!p&&!(r in t)&&uA(r,i),_te.call(this,t,r,m,i,g,c||Ba.stringFilter,f))},bte=function(t,r,n,i,a){if(qr(t)&&(t=Vd(t,a,r,n,i)),!yo(t)||t.style&&t.nodeType||Ci(t)||q7(t))return qn(t)?Vd(t,a,r,n,i):t;var s={},o;for(o in t)s[o]=Vd(t[o],a,r,n,i);return s},E9=function(t,r,n,i,a,s){var o,c,f,h;if(Aa[t]&&(o=new Aa[t]).init(a,o.rawVars?r[t]:bte(r[t],i,a,s,n),n,i,s)!==!1&&(n._pt=c=new oa(n._pt,a,t,0,1,o.render,o,0,o.priority),n!==n0))for(f=n._ptLookup[n._targets.indexOf(a)],h=o._props.length;h--;)f[o._props[h]]=c;return o},Ql,WS,gA=function e(t,r,n){var i=t.vars,a=i.ease,s=i.startAt,o=i.immediateRender,c=i.lazy,f=i.onUpdate,h=i.runBackwards,p=i.yoyoEase,m=i.keyframes,g=i.autoRevert,y=t._dur,x=t._startAt,_=t._targets,w=t.parent,T=w&&w.data==="nested"?w.vars.targets:_,S=t._overwrite==="auto"&&!sA,O=t.timeline,C,k,D,M,N,z,H,B,te,ne,le,Q,ee;if(O&&(!m||!a)&&(a="none"),t._ease=gu(a,w0.ease),t._yEase=p?_9(gu(p===!0?a:p,w0.ease)):0,p&&t._yoyo&&!t._repeat&&(p=t._yEase,t._yEase=t._ease,t._ease=p),t._from=!O&&!!i.runBackwards,!O||m&&!i.stagger){if(B=_[0]?pu(_[0]).harness:0,Q=B&&i[B.prop],C=fv(i,fA),x&&(x._zTime<0&&x.progress(1),r<0&&h&&o&&!g?x.render(-1,!0):x.revert(h&&y?Ig:Yee),x._lazy=0),s){if(fc(t._startAt=xn.set(_,Va({data:"isStart",overwrite:!1,parent:w,immediateRender:!0,lazy:!x&&aa(c),startAt:null,delay:0,onUpdate:f&&function(){return Ia(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(si||!o&&!g)&&t._startAt.revert(Ig),o&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(h&&y&&!x){if(r&&(o=!1),D=Va({overwrite:!1,data:"isFromStart",lazy:o&&!x&&aa(c),immediateRender:o,stagger:0,parent:w},C),Q&&(D[B.prop]=Q),fc(t._startAt=xn.set(_,D)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(si?t._startAt.revert(Ig):t._startAt.render(-1,!0)),t._zTime=r,!o)e(t._startAt,hr,hr);else if(!r)return}for(t._pt=t._ptCache=0,c=y&&aa(c)||c&&!y,k=0;k<_.length;k++){if(N=_[k],H=N._gsap||dA(_)[k]._gsap,t._ptLookup[k]=ne={},jS[H.id]&&ac.length&&uv(),le=T===_?k:T.indexOf(N),B&&(te=new B).init(N,Q||C,t,le,T)!==!1&&(t._pt=M=new oa(t._pt,N,te.name,0,1,te.render,te,0,te.priority),te._props.forEach(function(ce){ne[ce]=M}),te.priority&&(z=1)),!B||Q)for(D in C)Aa[D]&&(te=E9(D,C,t,le,N,T))?te.priority&&(z=1):ne[D]=M=mA.call(t,N,D,"get",C[D],le,T,0,i.stringFilter);t._op&&t._op[k]&&t.kill(N,t._op[k]),S&&t._pt&&(Ql=t,Mr.killTweensOf(N,ne,t.globalTime(r)),ee=!t.parent,Ql=0),t._pt&&c&&(jS[H.id]=1)}z&&D9(t),t._onInit&&t._onInit(t)}t._onUpdate=f,t._initted=(!t._op||t._pt)&&!ee,m&&r<=0&&O.render(xs,!0,!0)},wte=function(t,r,n,i,a,s,o,c){var f=(t._pt&&t._ptCache||(t._ptCache={}))[r],h,p,m,g;if(!f)for(f=t._ptCache[r]=[],m=t._ptLookup,g=t._targets.length;g--;){if(h=m[g][r],h&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==r&&h.fp!==r;)h=h._next;if(!h)return WS=1,t.vars[r]="+=0",gA(t,o),WS=0,c?mp(r+" not eligible for reset"):1;f.push(h)}for(g=f.length;g--;)p=f[g],h=p._pt||p,h.s=(i||i===0)&&!a?i:h.s+(i||0)+s*h.c,h.c=n-h.s,p.e&&(p.e=nn(n)+_i(p.e)),p.b&&(p.b=h.s+_i(p.b))},Ste=function(t,r){var n=t[0]?pu(t[0]).harness:0,i=n&&n.aliases,a,s,o,c;if(!i)return r;a=S0({},r);for(s in i)if(s in a)for(c=i[s].split(","),o=c.length;o--;)a[c[o]]=a[s];return a},Ete=function(t,r,n,i){var a=r.ease||i||"power1.inOut",s,o;if(Ci(r))o=n[t]||(n[t]=[]),r.forEach(function(c,f){return o.push({t:f/(r.length-1)*100,v:c,e:a})});else for(s in r)o=n[s]||(n[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:r[s],e:a})},Vd=function(t,r,n,i,a){return qr(t)?t.call(r,n,i,a):qn(t)&&~t.indexOf("random(")?vp(t):t},T9=hA+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",A9={};sa(T9+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return A9[e]=1});var xn=function(e){$7(t,e);function t(n,i,a,s){var o;typeof i=="number"&&(a.duration=i,i=a,a=null),o=e.call(this,s?i:Ud(i))||this;var c=o.vars,f=c.duration,h=c.delay,p=c.immediateRender,m=c.stagger,g=c.overwrite,y=c.keyframes,x=c.defaults,_=c.scrollTrigger,w=c.yoyoEase,T=i.parent||Mr,S=(Ci(n)||q7(n)?il(n[0]):"length"in i)?[n]:ys(n),O,C,k,D,M,N,z,H;if(o._targets=S.length?dA(S):mp("GSAP target "+n+" not found. https://gsap.com",!Ba.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=g,y||m||$1(f)||$1(h)){if(i=o.vars,O=o.timeline=new Hi({data:"nested",defaults:x||{},targets:T&&T.data==="nested"?T.vars.targets:S}),O.kill(),O.parent=O._dp=jo(o),O._start=0,m||$1(f)||$1(h)){if(D=S.length,z=m&&u9(m),yo(m))for(M in m)~T9.indexOf(M)&&(H||(H={}),H[M]=m[M]);for(C=0;C<D;C++)k=fv(i,A9),k.stagger=0,w&&(k.yoyoEase=w),H&&S0(k,H),N=S[C],k.duration=+Vd(f,jo(o),C,N,S),k.delay=(+Vd(h,jo(o),C,N,S)||0)-o._delay,!m&&D===1&&k.delay&&(o._delay=h=k.delay,o._start+=h,k.delay=0),O.to(N,k,z?z(C,N,S):0),O._ease=Bt.none;O.duration()?f=h=0:o.timeline=0}else if(y){Ud(Va(O.vars.defaults,{ease:"none"})),O._ease=gu(y.ease||i.ease||"none");var B=0,te,ne,le;if(Ci(y))y.forEach(function(Q){return O.to(S,Q,">")}),O.duration();else{k={};for(M in y)M==="ease"||M==="easeEach"||Ete(M,y[M],k,y.easeEach);for(M in k)for(te=k[M].sort(function(Q,ee){return Q.t-ee.t}),B=0,C=0;C<te.length;C++)ne=te[C],le={ease:ne.e,duration:(ne.t-(C?te[C-1].t:0))/100*f},le[M]=ne.v,O.to(S,le,B),B+=le.duration;O.duration()<f&&O.to({},{duration:f-O.duration()})}}f||o.duration(f=O.duration())}else o.timeline=0;return g===!0&&!sA&&(Ql=jo(o),Mr.killTweensOf(S),Ql=0),oo(T,jo(o),a),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(p||!f&&!y&&o._start===yn(T._time)&&aa(p)&&tte(jo(o))&&T.data!=="nested")&&(o._tTime=-hr,o.render(Math.max(0,-h)||0)),_&&s9(jo(o),_),o}var r=t.prototype;return r.render=function(i,a,s){var o=this._time,c=this._tDur,f=this._dur,h=i<0,p=i>c-hr&&!h?c:i<hr?0:i,m,g,y,x,_,w,T,S,O;if(!f)nte(this,i,a,s);else if(p!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(m=p,S=this.timeline,this._repeat){if(x=f+this._rDelay,this._repeat<-1&&h)return this.totalTime(x*100+i,a,s);if(m=yn(p%x),p===c?(y=this._repeat,m=f):(_=yn(p/x),y=~~_,y&&y===_?(m=f,y--):m>f&&(m=f)),w=this._yoyo&&y&1,w&&(O=this._yEase,m=f-m),_=E0(this._tTime,x),m===o&&!s&&this._initted&&y===_)return this._tTime=p,this;y!==_&&(S&&this._yEase&&b9(S,w),this.vars.repeatRefresh&&!w&&!this._lock&&m!==x&&this._initted&&(this._lock=s=1,this.render(yn(x*y),!0).invalidate()._lock=0))}if(!this._initted){if(o9(this,h?i:m,s,a,p))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&y!==_))return this;if(f!==this._dur)return this.render(i,a,s)}if(this._tTime=p,this._time=m,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=T=(O||this._ease)(m/f),this._from&&(this.ratio=T=1-T),!o&&p&&!a&&!_&&(Ia(this,"onStart"),this._tTime!==p))return this;for(g=this._pt;g;)g.r(T,g.d),g=g._next;S&&S.render(i<0?i:S._dur*S._ease(m/this._dur),a,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(h&&US(this,i,a,s),Ia(this,"onUpdate")),this._repeat&&y!==_&&this.vars.onRepeat&&!a&&this.parent&&Ia(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(h&&!this._onUpdate&&US(this,i,!0,!0),(i||!f)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&fc(this,1),!a&&!(h&&!o)&&(p||o||w)&&(Ia(this,p===c?"onComplete":"onReverseComplete",!0),this._prom&&!(p<c&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,s,o,c){xp||Ma.wake(),this._ts||this.play();var f=Math.min(this._dur,(this._dp._time-this._start)*this._ts),h;return this._initted||gA(this,f),h=this._ease(f/this._dur),wte(this,i,a,s,o,h,f,c)?this.resetTo(i,a,s,o,1):(Cx(this,0),this.parent||i9(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?wd(this):this.scrollTrigger&&this.scrollTrigger.kill(!!si),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,Ql&&Ql.vars.overwrite!==!0)._first||wd(this),this.parent&&s!==this.timeline.totalDuration()&&T0(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,c=i?ys(i):o,f=this._ptLookup,h=this._pt,p,m,g,y,x,_,w;if((!a||a==="all")&&Jee(o,c))return a==="all"&&(this._pt=0),wd(this);for(p=this._op=this._op||[],a!=="all"&&(qn(a)&&(x={},sa(a,function(T){return x[T]=1}),a=x),a=Ste(o,a)),w=o.length;w--;)if(~c.indexOf(o[w])){m=f[w],a==="all"?(p[w]=a,y=m,g={}):(g=p[w]=p[w]||{},y=a);for(x in y)_=m&&m[x],_&&((!("kill"in _.d)||_.d.kill(x)===!0)&&Tx(this,_,"_pt"),delete m[x]),g!=="all"&&(g[x]=1)}return this._initted&&!this._pt&&h&&wd(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return zd(1,arguments)},t.delayedCall=function(i,a,s,o){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(i,a,s){return zd(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,s){return Mr.killTweensOf(i,a,s)},t}(yp);Va(xn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});sa("staggerTo,staggerFrom,staggerFromTo",function(e){xn[e]=function(){var t=new Hi,r=VS.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var vA=function(t,r,n){return t[r]=n},C9=function(t,r,n){return t[r](n)},Tte=function(t,r,n,i){return t[r](i.fp,n)},Ate=function(t,r,n){return t.setAttribute(r,n)},xA=function(t,r){return qr(t[r])?C9:oA(t[r])&&t.setAttribute?Ate:vA},O9=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},Cte=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},k9=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},yA=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},Ote=function(t,r,n,i){for(var a=this._pt,s;a;)s=a._next,a.p===i&&a.modifier(t,r,n),a=s},kte=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?Tx(this,r,"_pt"):r.dep||(n=1),r=i;return!n},Dte=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},D9=function(t){for(var r=t._pt,n,i,a,s;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:s=r,r=n}t._pt=a},oa=function(){function e(r,n,i,a,s,o,c,f,h){this.t=n,this.s=a,this.c=s,this.p=i,this.r=o||O9,this.d=c||this,this.set=f||vA,this.pr=h||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=Dte,this.m=n,this.mt=a,this.tween=i},e}();sa(hA+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return fA[e]=1});za.TweenMax=za.TweenLite=xn;za.TimelineLite=za.TimelineMax=Hi;Mr=new Hi({sortChildren:!1,defaults:w0,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ba.stringFilter=y9;var vu=[],jg={},Pte=[],WM=0,Mte=0,ib=function(t){return(jg[t]||Pte).map(function(r){return r()})},qS=function(){var t=Date.now(),r=[];t-WM>2&&(ib("matchMediaInit"),vu.forEach(function(n){var i=n.queries,a=n.conditions,s,o,c,f;for(o in i)s=ao.matchMedia(i[o]).matches,s&&(c=1),s!==a[o]&&(a[o]=s,f=1);f&&(n.revert(),c&&r.push(n))}),ib("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),WM=t,ib("matchMedia"))},P9=function(){function e(r,n){this.selector=n&&HS(n),this.data=[],this._r=[],this.isReverted=!1,this.id=Mte++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){qr(n)&&(a=i,i=n,n=qr);var s=this,o=function(){var f=Ar,h=s.selector,p;return f&&f!==s&&f.data.push(s),a&&(s.selector=HS(a)),Ar=s,p=i.apply(s,arguments),qr(p)&&s._r.push(p),Ar=f,s.selector=h,s.isReverted=!1,p};return s.last=o,n===qr?o(s,function(c){return s.add(null,c)}):n?s[n]=o:o},t.ignore=function(n){var i=Ar;Ar=null,n(this),Ar=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof xn&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?function(){for(var o=a.getTweens(),c=a.data.length,f;c--;)f=a.data[c],f.data==="isFlip"&&(f.revert(),f.getChildren(!0,!0,!1).forEach(function(h){return o.splice(o.indexOf(h),1)}));for(o.map(function(h){return{g:h._dur||h._delay||h._sat&&!h._sat.vars.immediateRender?h.globalTime(0):-1/0,t:h}}).sort(function(h,p){return p.g-h.g||-1/0}).forEach(function(h){return h.t.revert(n)}),c=a.data.length;c--;)f=a.data[c],f instanceof Hi?f.data!=="nested"&&(f.scrollTrigger&&f.scrollTrigger.revert(),f.kill()):!(f instanceof xn)&&f.revert&&f.revert(n);a._r.forEach(function(h){return h(n,a)}),a.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=vu.length;s--;)vu[s].id===this.id&&vu.splice(s,1)},t.revert=function(n){this.kill(n||{})},e}(),Rte=function(){function e(r){this.contexts=[],this.scope=r,Ar&&Ar.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){yo(n)||(n={matches:n});var s=new P9(0,a||this.scope),o=s.conditions={},c,f,h;Ar&&!s.selector&&(s.selector=Ar.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=n;for(f in n)f==="all"?h=1:(c=ao.matchMedia(n[f]),c&&(vu.indexOf(s)<0&&vu.push(s),(o[f]=c.matches)&&(h=1),c.addListener?c.addListener(qS):c.addEventListener("change",qS)));return h&&i(s,function(p){return s.add(null,p)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e}(),dv={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return g9(i)})},timeline:function(t){return new Hi(t)},getTweensOf:function(t,r){return Mr.getTweensOf(t,r)},getProperty:function(t,r,n,i){qn(t)&&(t=ys(t)[0]);var a=pu(t||{}).get,s=n?n9:r9;return n==="native"&&(n=""),t&&(r?s((Aa[r]&&Aa[r].get||a)(t,r,n,i)):function(o,c,f){return s((Aa[o]&&Aa[o].get||a)(t,o,c,f))})},quickSetter:function(t,r,n){if(t=ys(t),t.length>1){var i=t.map(function(h){return ha.quickSetter(h,r,n)}),a=i.length;return function(h){for(var p=a;p--;)i[p](h)}}t=t[0]||{};var s=Aa[r],o=pu(t),c=o.harness&&(o.harness.aliases||{})[r]||r,f=s?function(h){var p=new s;n0._pt=0,p.init(t,n?h+n:h,n0,0,[t]),p.render(1,p),n0._pt&&yA(1,n0)}:o.set(t,c);return s?f:function(h){return f(t,c,n?h+n:h,o,1)}},quickTo:function(t,r,n){var i,a=ha.to(t,Va((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),s=function(c,f,h){return a.resetTo(r,c,f,h)};return s.tween=a,s},isTweening:function(t){return Mr.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=gu(t.ease,w0.ease)),UM(w0,t||{})},config:function(t){return UM(Ba,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!Aa[o]&&!za[o]&&mp(r+" effect requires "+o+" plugin.")}),eb[r]=function(o,c,f){return n(ys(o),Va(c||{},a),f)},s&&(Hi.prototype[r]=function(o,c,f){return this.add(eb[r](o,yo(c)?c:(f=c)&&{},this),f)})},registerEase:function(t,r){Bt[t]=gu(r)},parseEase:function(t,r){return arguments.length?gu(t,r):Bt},getById:function(t){return Mr.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new Hi(t),i,a;for(n.smoothChildTiming=aa(t.smoothChildTiming),Mr.remove(n),n._dp=0,n._time=n._tTime=Mr._time,i=Mr._first;i;)a=i._next,(r||!(!i._dur&&i instanceof xn&&i.vars.onComplete===i._targets[0]))&&oo(n,i,i._start-i._delay),i=a;return oo(Mr,n,0),n},context:function(t,r){return t?new P9(t,r):Ar},matchMedia:function(t){return new Rte(t)},matchMediaRefresh:function(){return vu.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||qS()},addEventListener:function(t,r){var n=jg[t]||(jg[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=jg[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:fte,wrapYoyo:hte,distribute:u9,random:h9,snap:f9,normalize:ute,getUnit:_i,clamp:ste,splitColor:v9,toArray:ys,selector:HS,mapRange:p9,pipe:lte,unitize:cte,interpolate:dte,shuffle:c9},install:Z7,effects:eb,ticker:Ma,updateRoot:Hi.updateRoot,plugins:Aa,globalTimeline:Mr,core:{PropTween:oa,globals:Q7,Tween:xn,Timeline:Hi,Animation:yp,getCache:pu,_removeLinkedListItem:Tx,reverting:function(){return si},context:function(t){return t&&Ar&&(Ar.data.push(t),t._ctx=Ar),Ar},suppressOverwrites:function(t){return sA=t}}};sa("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return dv[e]=xn[e]});Ma.add(Hi.updateRoot);n0=dv.to({},{duration:0});var Nte=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},Fte=function(t,r){var n=t._targets,i,a,s;for(i in r)for(a=n.length;a--;)s=t._ptLookup[a][i],s&&(s=s.d)&&(s._pt&&(s=Nte(s,i)),s&&s.modifier&&s.modifier(r[i],t,n[a],i))},ab=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,s){s._onInit=function(o){var c,f;if(qn(a)&&(c={},sa(a,function(h){return c[h]=1}),a=c),r){c={};for(f in a)c[f]=r(a[f]);a=c}Fte(o,a)}}}},ha=dv.registerPlugin({name:"attr",init:function(t,r,n,i,a){var s,o,c;this.tween=n;for(s in r)c=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(c||0)+"",r[s],i,a,0,0,s),o.op=s,o.b=c,this._props.push(s)},render:function(t,r){for(var n=r._pt;n;)si?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},ab("roundProps",$S),ab("modifiers"),ab("snap",f9))||dv;xn.version=Hi.version=ha.version="3.13.0";K7=1;lA()&&A0();Bt.Power0;Bt.Power1;Bt.Power2;Bt.Power3;Bt.Power4;Bt.Linear;Bt.Quad;Bt.Cubic;Bt.Quart;Bt.Quint;Bt.Strong;Bt.Elastic;Bt.Back;Bt.SteppedEase;Bt.Bounce;Bt.Sine;Bt.Expo;Bt.Circ;/*!
 * CSSPlugin 3.13.0
 * https://gsap.com
 *
 * Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var qM,Jl,c0,_A,iu,GM,bA,Lte=function(){return typeof window<"u"},al={},Yc=180/Math.PI,u0=Math.PI/180,jf=Math.atan2,XM=1e8,wA=/([A-Z])/g,Ite=/(left|right|width|margin|padding|x)/i,Bte=/[\s,\(]\S/,lo={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},GS=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},jte=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},Ute=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},zte=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},M9=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},R9=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},Vte=function(t,r,n){return t.style[r]=n},Hte=function(t,r,n){return t.style.setProperty(r,n)},$te=function(t,r,n){return t._gsap[r]=n},Wte=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},qte=function(t,r,n,i,a){var s=t._gsap;s.scaleX=s.scaleY=n,s.renderTransform(a,s)},Gte=function(t,r,n,i,a){var s=t._gsap;s[r]=n,s.renderTransform(a,s)},Nr="transform",la=Nr+"Origin",Xte=function e(t,r){var n=this,i=this.target,a=i.style,s=i._gsap;if(t in al&&a){if(this.tfm=this.tfm||{},t!=="transform")t=lo[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return n.tfm[o]=Uo(i,o)}):this.tfm[t]=s.x?s[t]:Uo(i,t),t===la&&(this.tfm.zOrigin=s.zOrigin);else return lo.transform.split(",").forEach(function(o){return e.call(n,o,r)});if(this.props.indexOf(Nr)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(la,r,"")),t=Nr}(a||r)&&this.props.push(t,r,a[t])},N9=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Yte=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,s;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(wA,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=bA(),(!a||!a.isStart)&&!n[Nr]&&(N9(n),i.zOrigin&&n[la]&&(n[la]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},F9=function(t,r){var n={target:t,props:[],revert:Yte,save:Xte};return t._gsap||ha.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},L9,XS=function(t,r){var n=Jl.createElementNS?Jl.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Jl.createElement(t);return n&&n.style?n:Jl.createElement(t)},_s=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(wA,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,C0(r)||r,1)||""},YM="O,Moz,ms,Ms,Webkit".split(","),C0=function(t,r,n){var i=r||iu,a=i.style,s=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(YM[s]+t in a););return s<0?null:(s===3?"ms":s>=0?YM[s]:"")+t},YS=function(){Lte()&&window.document&&(qM=window,Jl=qM.document,c0=Jl.documentElement,iu=XS("div")||{style:{}},XS("div"),Nr=C0(Nr),la=Nr+"Origin",iu.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",L9=!!C0("perspective"),bA=ha.core.reverting,_A=1)},KM=function(t){var r=t.ownerSVGElement,n=XS("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),c0.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),c0.removeChild(n),a},ZM=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},I9=function(t){var r,n;try{r=t.getBBox()}catch{r=KM(t),n=1}return r&&(r.width||r.height)||n||(r=KM(t)),r&&!r.width&&!r.x&&!r.y?{x:+ZM(t,["x","cx","x1"])||0,y:+ZM(t,["y","cy","y1"])||0,width:0,height:0}:r},B9=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&I9(t))},Du=function(t,r){if(r){var n=t.style,i;r in al&&r!==la&&(r=Nr),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(wA,"-$1").toLowerCase())):n.removeAttribute(r)}},ec=function(t,r,n,i,a,s){var o=new oa(t._pt,r,n,0,1,s?R9:M9);return t._pt=o,o.b=i,o.e=a,t._props.push(n),o},QM={deg:1,rad:1,turn:1},Kte={grid:1,flex:1},hc=function e(t,r,n,i){var a=parseFloat(n)||0,s=(n+"").trim().substr((a+"").length)||"px",o=iu.style,c=Ite.test(r),f=t.tagName.toLowerCase()==="svg",h=(f?"client":"offset")+(c?"Width":"Height"),p=100,m=i==="px",g=i==="%",y,x,_,w;if(i===s||!a||QM[i]||QM[s])return a;if(s!=="px"&&!m&&(a=e(t,r,n,"px")),w=t.getCTM&&B9(t),(g||s==="%")&&(al[r]||~r.indexOf("adius")))return y=w?t.getBBox()[c?"width":"height"]:t[h],nn(g?a/y*p:a/100*y);if(o[c?"width":"height"]=p+(m?s:i),x=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!f?t:t.parentNode,w&&(x=(t.ownerSVGElement||{}).parentNode),(!x||x===Jl||!x.appendChild)&&(x=Jl.body),_=x._gsap,_&&g&&_.width&&c&&_.time===Ma.time&&!_.uncache)return nn(a/_.width*p);if(g&&(r==="height"||r==="width")){var T=t.style[r];t.style[r]=p+i,y=t[h],T?t.style[r]=T:Du(t,r)}else(g||s==="%")&&!Kte[_s(x,"display")]&&(o.position=_s(t,"position")),x===t&&(o.position="static"),x.appendChild(iu),y=iu[h],x.removeChild(iu),o.position="absolute";return c&&g&&(_=pu(x),_.time=Ma.time,_.width=x[h]),nn(m?y*a/p:y&&a?p/y*a:0)},Uo=function(t,r,n,i){var a;return _A||YS(),r in lo&&r!=="transform"&&(r=lo[r],~r.indexOf(",")&&(r=r.split(",")[0])),al[r]&&r!=="transform"?(a=bp(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:mv(_s(t,la))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=pv[r]&&pv[r](t,r,n)||_s(t,r)||e9(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?hc(t,r,a,n)+n:a},Zte=function(t,r,n,i){if(!n||n==="none"){var a=C0(r,t,1),s=a&&_s(t,a,1);s&&s!==n?(r=a,n=s):r==="borderColor"&&(n=_s(t,"borderTopColor"))}var o=new oa(this._pt,t.style,r,0,1,k9),c=0,f=0,h,p,m,g,y,x,_,w,T,S,O,C;if(o.b=n,o.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=_s(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(x=t.style[r],t.style[r]=i,i=_s(t,r)||i,x?t.style[r]=x:Du(t,r)),h=[n,i],y9(h),n=h[0],i=h[1],m=n.match(r0)||[],C=i.match(r0)||[],C.length){for(;p=r0.exec(i);)_=p[0],T=i.substring(c,p.index),y?y=(y+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(y=1),_!==(x=m[f++]||"")&&(g=parseFloat(x)||0,O=x.substr((g+"").length),_.charAt(1)==="="&&(_=l0(g,_)+O),w=parseFloat(_),S=_.substr((w+"").length),c=r0.lastIndex-S.length,S||(S=S||Ba.units[r]||O,c===i.length&&(i+=S,o.e+=S)),O!==S&&(g=hc(t,r,x,S)||0),o._pt={_next:o._pt,p:T||f===1?T:",",s:g,c:w-g,m:y&&y<4||r==="zIndex"?Math.round:0});o.c=c<i.length?i.substring(c,i.length):""}else o.r=r==="display"&&i==="none"?R9:M9;return X7.test(i)&&(o.e=0),this._pt=o,o},JM={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Qte=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=JM[n]||n,r[1]=JM[i]||i,r.join(" ")},Jte=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,s=n._gsap,o,c,f;if(a==="all"||a===!0)i.cssText="",c=1;else for(a=a.split(","),f=a.length;--f>-1;)o=a[f],al[o]&&(c=1,o=o==="transformOrigin"?la:Nr),Du(n,o);c&&(Du(n,Nr),s&&(s.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",bp(n,1),s.uncache=1,N9(i)))}},pv={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var s=t._pt=new oa(t._pt,r,n,0,0,Jte);return s.u=i,s.pr=-10,s.tween=a,t._props.push(n),1}}},_p=[1,0,0,1,0,0],j9={},U9=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},eR=function(t){var r=_s(t,Nr);return U9(r)?_p:r.substr(7).match(G7).map(nn)},SA=function(t,r){var n=t._gsap||pu(t),i=t.style,a=eR(t),s,o,c,f;return n.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,a=[c.a,c.b,c.c,c.d,c.e,c.f],a.join(",")==="1,0,0,1,0,0"?_p:a):(a===_p&&!t.offsetParent&&t!==c0&&!n.svg&&(c=i.display,i.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(f=1,o=t.nextElementSibling,c0.appendChild(t)),a=eR(t),c?i.display=c:Du(t,"display"),f&&(o?s.insertBefore(t,o):s?s.appendChild(t):c0.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},KS=function(t,r,n,i,a,s){var o=t._gsap,c=a||SA(t,!0),f=o.xOrigin||0,h=o.yOrigin||0,p=o.xOffset||0,m=o.yOffset||0,g=c[0],y=c[1],x=c[2],_=c[3],w=c[4],T=c[5],S=r.split(" "),O=parseFloat(S[0])||0,C=parseFloat(S[1])||0,k,D,M,N;n?c!==_p&&(D=g*_-y*x)&&(M=O*(_/D)+C*(-x/D)+(x*T-_*w)/D,N=O*(-y/D)+C*(g/D)-(g*T-y*w)/D,O=M,C=N):(k=I9(t),O=k.x+(~S[0].indexOf("%")?O/100*k.width:O),C=k.y+(~(S[1]||S[0]).indexOf("%")?C/100*k.height:C)),i||i!==!1&&o.smooth?(w=O-f,T=C-h,o.xOffset=p+(w*g+T*x)-w,o.yOffset=m+(w*y+T*_)-T):o.xOffset=o.yOffset=0,o.xOrigin=O,o.yOrigin=C,o.smooth=!!i,o.origin=r,o.originIsAbsolute=!!n,t.style[la]="0px 0px",s&&(ec(s,o,"xOrigin",f,O),ec(s,o,"yOrigin",h,C),ec(s,o,"xOffset",p,o.xOffset),ec(s,o,"yOffset",m,o.yOffset)),t.setAttribute("data-svg-origin",O+" "+C)},bp=function(t,r){var n=t._gsap||new S9(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,s="px",o="deg",c=getComputedStyle(t),f=_s(t,la)||"0",h,p,m,g,y,x,_,w,T,S,O,C,k,D,M,N,z,H,B,te,ne,le,Q,ee,ce,J,R,se,F,V,q,X;return h=p=m=x=_=w=T=S=O=0,g=y=1,n.svg=!!(t.getCTM&&B9(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[Nr]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Nr]!=="none"?c[Nr]:"")),i.scale=i.rotate=i.translate="none"),D=SA(t,n.svg),n.svg&&(n.uncache?(ce=t.getBBox(),f=n.xOrigin-ce.x+"px "+(n.yOrigin-ce.y)+"px",ee=""):ee=!r&&t.getAttribute("data-svg-origin"),KS(t,ee||f,!!ee||n.originIsAbsolute,n.smooth!==!1,D)),C=n.xOrigin||0,k=n.yOrigin||0,D!==_p&&(H=D[0],B=D[1],te=D[2],ne=D[3],h=le=D[4],p=Q=D[5],D.length===6?(g=Math.sqrt(H*H+B*B),y=Math.sqrt(ne*ne+te*te),x=H||B?jf(B,H)*Yc:0,T=te||ne?jf(te,ne)*Yc+x:0,T&&(y*=Math.abs(Math.cos(T*u0))),n.svg&&(h-=C-(C*H+k*te),p-=k-(C*B+k*ne))):(X=D[6],V=D[7],R=D[8],se=D[9],F=D[10],q=D[11],h=D[12],p=D[13],m=D[14],M=jf(X,F),_=M*Yc,M&&(N=Math.cos(-M),z=Math.sin(-M),ee=le*N+R*z,ce=Q*N+se*z,J=X*N+F*z,R=le*-z+R*N,se=Q*-z+se*N,F=X*-z+F*N,q=V*-z+q*N,le=ee,Q=ce,X=J),M=jf(-te,F),w=M*Yc,M&&(N=Math.cos(-M),z=Math.sin(-M),ee=H*N-R*z,ce=B*N-se*z,J=te*N-F*z,q=ne*z+q*N,H=ee,B=ce,te=J),M=jf(B,H),x=M*Yc,M&&(N=Math.cos(M),z=Math.sin(M),ee=H*N+B*z,ce=le*N+Q*z,B=B*N-H*z,Q=Q*N-le*z,H=ee,le=ce),_&&Math.abs(_)+Math.abs(x)>359.9&&(_=x=0,w=180-w),g=nn(Math.sqrt(H*H+B*B+te*te)),y=nn(Math.sqrt(Q*Q+X*X)),M=jf(le,Q),T=Math.abs(M)>2e-4?M*Yc:0,O=q?1/(q<0?-q:q):0),n.svg&&(ee=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!U9(_s(t,Nr)),ee&&t.setAttribute("transform",ee))),Math.abs(T)>90&&Math.abs(T)<270&&(a?(g*=-1,T+=x<=0?180:-180,x+=x<=0?180:-180):(y*=-1,T+=T<=0?180:-180)),r=r||n.uncache,n.x=h-((n.xPercent=h&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-h)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+s,n.y=p-((n.yPercent=p&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-p)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+s,n.z=m+s,n.scaleX=nn(g),n.scaleY=nn(y),n.rotation=nn(x)+o,n.rotationX=nn(_)+o,n.rotationY=nn(w)+o,n.skewX=T+o,n.skewY=S+o,n.transformPerspective=O+s,(n.zOrigin=parseFloat(f.split(" ")[2])||!r&&n.zOrigin||0)&&(i[la]=mv(f)),n.xOffset=n.yOffset=0,n.force3D=Ba.force3D,n.renderTransform=n.svg?tre:L9?z9:ere,n.uncache=0,n},mv=function(t){return(t=t.split(" "))[0]+" "+t[1]},sb=function(t,r,n){var i=_i(r);return nn(parseFloat(r)+parseFloat(hc(t,"x",n+"px",i)))+i},ere=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,z9(t,r)},Wc="0deg",ad="0px",qc=") ",z9=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,s=n.x,o=n.y,c=n.z,f=n.rotation,h=n.rotationY,p=n.rotationX,m=n.skewX,g=n.skewY,y=n.scaleX,x=n.scaleY,_=n.transformPerspective,w=n.force3D,T=n.target,S=n.zOrigin,O="",C=w==="auto"&&t&&t!==1||w===!0;if(S&&(p!==Wc||h!==Wc)){var k=parseFloat(h)*u0,D=Math.sin(k),M=Math.cos(k),N;k=parseFloat(p)*u0,N=Math.cos(k),s=sb(T,s,D*N*-S),o=sb(T,o,-Math.sin(k)*-S),c=sb(T,c,M*N*-S+S)}_!==ad&&(O+="perspective("+_+qc),(i||a)&&(O+="translate("+i+"%, "+a+"%) "),(C||s!==ad||o!==ad||c!==ad)&&(O+=c!==ad||C?"translate3d("+s+", "+o+", "+c+") ":"translate("+s+", "+o+qc),f!==Wc&&(O+="rotate("+f+qc),h!==Wc&&(O+="rotateY("+h+qc),p!==Wc&&(O+="rotateX("+p+qc),(m!==Wc||g!==Wc)&&(O+="skew("+m+", "+g+qc),(y!==1||x!==1)&&(O+="scale("+y+", "+x+qc),T.style[Nr]=O||"translate(0, 0)"},tre=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,s=n.x,o=n.y,c=n.rotation,f=n.skewX,h=n.skewY,p=n.scaleX,m=n.scaleY,g=n.target,y=n.xOrigin,x=n.yOrigin,_=n.xOffset,w=n.yOffset,T=n.forceCSS,S=parseFloat(s),O=parseFloat(o),C,k,D,M,N;c=parseFloat(c),f=parseFloat(f),h=parseFloat(h),h&&(h=parseFloat(h),f+=h,c+=h),c||f?(c*=u0,f*=u0,C=Math.cos(c)*p,k=Math.sin(c)*p,D=Math.sin(c-f)*-m,M=Math.cos(c-f)*m,f&&(h*=u0,N=Math.tan(f-h),N=Math.sqrt(1+N*N),D*=N,M*=N,h&&(N=Math.tan(h),N=Math.sqrt(1+N*N),C*=N,k*=N)),C=nn(C),k=nn(k),D=nn(D),M=nn(M)):(C=p,M=m,k=D=0),(S&&!~(s+"").indexOf("px")||O&&!~(o+"").indexOf("px"))&&(S=hc(g,"x",s,"px"),O=hc(g,"y",o,"px")),(y||x||_||w)&&(S=nn(S+y-(y*C+x*D)+_),O=nn(O+x-(y*k+x*M)+w)),(i||a)&&(N=g.getBBox(),S=nn(S+i/100*N.width),O=nn(O+a/100*N.height)),N="matrix("+C+","+k+","+D+","+M+","+S+","+O+")",g.setAttribute("transform",N),T&&(g.style[Nr]=N)},rre=function(t,r,n,i,a){var s=360,o=qn(a),c=parseFloat(a)*(o&&~a.indexOf("rad")?Yc:1),f=c-i,h=i+f+"deg",p,m;return o&&(p=a.split("_")[1],p==="short"&&(f%=s,f!==f%(s/2)&&(f+=f<0?s:-s)),p==="cw"&&f<0?f=(f+s*XM)%s-~~(f/s)*s:p==="ccw"&&f>0&&(f=(f-s*XM)%s-~~(f/s)*s)),t._pt=m=new oa(t._pt,r,n,i,f,jte),m.e=h,m.u="deg",t._props.push(n),m},tR=function(t,r){for(var n in r)t[n]=r[n];return t},nre=function(t,r,n){var i=tR({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",s=n.style,o,c,f,h,p,m,g,y;i.svg?(f=n.getAttribute("transform"),n.setAttribute("transform",""),s[Nr]=r,o=bp(n,1),Du(n,Nr),n.setAttribute("transform",f)):(f=getComputedStyle(n)[Nr],s[Nr]=r,o=bp(n,1),s[Nr]=f);for(c in al)f=i[c],h=o[c],f!==h&&a.indexOf(c)<0&&(g=_i(f),y=_i(h),p=g!==y?hc(n,c,f,y):parseFloat(f),m=parseFloat(h),t._pt=new oa(t._pt,o,c,p,m-p,GS),t._pt.u=y||0,t._props.push(c));tR(o,i)};sa("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",s=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(o){return t<2?e+o:"border"+o+e});pv[t>1?"border"+e:e]=function(o,c,f,h,p){var m,g;if(arguments.length<4)return m=s.map(function(y){return Uo(o,y,f)}),g=m.join(" "),g.split(m[0]).length===5?m[0]:g;m=(h+"").split(" "),g={},s.forEach(function(y,x){return g[y]=m[x]=m[x]||m[(x-1)/2|0]}),o.init(c,g,p)}});var V9={name:"css",register:YS,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var s=this._props,o=t.style,c=n.vars.startAt,f,h,p,m,g,y,x,_,w,T,S,O,C,k,D,M;_A||YS(),this.styles=this.styles||F9(t),M=this.styles.props,this.tween=n;for(x in r)if(x!=="autoRound"&&(h=r[x],!(Aa[x]&&E9(x,r,n,i,t,a)))){if(g=typeof h,y=pv[x],g==="function"&&(h=h.call(n,i,t,a),g=typeof h),g==="string"&&~h.indexOf("random(")&&(h=vp(h)),y)y(this,t,x,h,n)&&(D=1);else if(x.substr(0,2)==="--")f=(getComputedStyle(t).getPropertyValue(x)+"").trim(),h+="",sc.lastIndex=0,sc.test(f)||(_=_i(f),w=_i(h)),w?_!==w&&(f=hc(t,x,f,w)+w):_&&(h+=_),this.add(o,"setProperty",f,h,i,a,0,0,x),s.push(x),M.push(x,0,o[x]);else if(g!=="undefined"){if(c&&x in c?(f=typeof c[x]=="function"?c[x].call(n,i,t,a):c[x],qn(f)&&~f.indexOf("random(")&&(f=vp(f)),_i(f+"")||f==="auto"||(f+=Ba.units[x]||_i(Uo(t,x))||""),(f+"").charAt(1)==="="&&(f=Uo(t,x))):f=Uo(t,x),m=parseFloat(f),T=g==="string"&&h.charAt(1)==="="&&h.substr(0,2),T&&(h=h.substr(2)),p=parseFloat(h),x in lo&&(x==="autoAlpha"&&(m===1&&Uo(t,"visibility")==="hidden"&&p&&(m=0),M.push("visibility",0,o.visibility),ec(this,o,"visibility",m?"inherit":"hidden",p?"inherit":"hidden",!p)),x!=="scale"&&x!=="transform"&&(x=lo[x],~x.indexOf(",")&&(x=x.split(",")[0]))),S=x in al,S){if(this.styles.save(x),g==="string"&&h.substring(0,6)==="var(--"&&(h=_s(t,h.substring(4,h.indexOf(")"))),p=parseFloat(h)),O||(C=t._gsap,C.renderTransform&&!r.parseTransform||bp(t,r.parseTransform),k=r.smoothOrigin!==!1&&C.smooth,O=this._pt=new oa(this._pt,o,Nr,0,1,C.renderTransform,C,0,-1),O.dep=1),x==="scale")this._pt=new oa(this._pt,C,"scaleY",C.scaleY,(T?l0(C.scaleY,T+p):p)-C.scaleY||0,GS),this._pt.u=0,s.push("scaleY",x),x+="X";else if(x==="transformOrigin"){M.push(la,0,o[la]),h=Qte(h),C.svg?KS(t,h,0,k,0,this):(w=parseFloat(h.split(" ")[2])||0,w!==C.zOrigin&&ec(this,C,"zOrigin",C.zOrigin,w),ec(this,o,x,mv(f),mv(h)));continue}else if(x==="svgOrigin"){KS(t,h,1,k,0,this);continue}else if(x in j9){rre(this,C,x,m,T?l0(m,T+h):h);continue}else if(x==="smoothOrigin"){ec(this,C,"smooth",C.smooth,h);continue}else if(x==="force3D"){C[x]=h;continue}else if(x==="transform"){nre(this,h,t);continue}}else x in o||(x=C0(x)||x);if(S||(p||p===0)&&(m||m===0)&&!Bte.test(h)&&x in o)_=(f+"").substr((m+"").length),p||(p=0),w=_i(h)||(x in Ba.units?Ba.units[x]:_),_!==w&&(m=hc(t,x,f,w)),this._pt=new oa(this._pt,S?C:o,x,m,(T?l0(m,T+p):p)-m,!S&&(w==="px"||x==="zIndex")&&r.autoRound!==!1?zte:GS),this._pt.u=w||0,_!==w&&w!=="%"&&(this._pt.b=f,this._pt.r=Ute);else if(x in o)Zte.call(this,t,x,f,T?T+h:h);else if(x in t)this.add(t,x,f||t[x],T?T+h:h,i,a);else if(x!=="parseTransform"){uA(x,h);continue}S||(x in o?M.push(x,0,o[x]):typeof t[x]=="function"?M.push(x,2,t[x]()):M.push(x,1,f||t[x])),s.push(x)}}D&&D9(this)},render:function(t,r){if(r.tween._time||!bA())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:Uo,aliases:lo,getSetter:function(t,r,n){var i=lo[r];return i&&i.indexOf(",")<0&&(r=i),r in al&&r!==la&&(t._gsap.x||Uo(t,"x"))?n&&GM===n?r==="scale"?Wte:$te:(GM=n||{})&&(r==="scale"?qte:Gte):t.style&&!oA(t.style[r])?Vte:~r.indexOf("-")?Hte:xA(t,r)},core:{_removeProperty:Du,_getMatrix:SA}};ha.utils.checkPrefix=C0;ha.core.getStyleSaver=F9;(function(e,t,r,n){var i=sa(e+","+t+","+r,function(a){al[a]=1});sa(t,function(a){Ba.units[a]="deg",j9[a]=1}),lo[i[13]]=e+","+t,sa(n,function(a){var s=a.split(":");lo[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");sa("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Ba.units[e]="px"});ha.registerPlugin(V9);var H9=ha.registerPlugin(V9)||ha;H9.core.Tween;function ire(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function are(e,t,r){return t&&ire(e.prototype,t),e}/*!
 * Observer 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var ai,Ug,Ra,tc,rc,f0,$9,Kc,Hd,W9,$o,Bs,q9,G9=function(){return ai||typeof window<"u"&&(ai=window.gsap)&&ai.registerPlugin&&ai},X9=1,i0=[],Mt=[],go=[],$d=Date.now,ZS=function(t,r){return r},sre=function(){var t=Hd.core,r=t.bridge||{},n=t._scrollers,i=t._proxies;n.push.apply(n,Mt),i.push.apply(i,go),Mt=n,go=i,ZS=function(s,o){return r[s](o)}},oc=function(t,r){return~go.indexOf(t)&&go[go.indexOf(t)+1][r]},Wd=function(t){return!!~W9.indexOf(t)},Ii=function(t,r,n,i,a){return t.addEventListener(r,n,{passive:i!==!1,capture:!!a})},Li=function(t,r,n,i){return t.removeEventListener(r,n,!!i)},W1="scrollLeft",q1="scrollTop",QS=function(){return $o&&$o.isPressed||Mt.cache++},gv=function(t,r){var n=function i(a){if(a||a===0){X9&&(Ra.history.scrollRestoration="manual");var s=$o&&$o.isPressed;a=i.v=Math.round(a)||($o&&$o.iOS?1:0),t(a),i.cacheID=Mt.cache,s&&ZS("ss",a)}else(r||Mt.cache!==i.cacheID||ZS("ref"))&&(i.cacheID=Mt.cache,i.v=t());return i.v+i.offset};return n.offset=0,t&&n},$i={s:W1,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:gv(function(e){return arguments.length?Ra.scrollTo(e,Cn.sc()):Ra.pageXOffset||tc[W1]||rc[W1]||f0[W1]||0})},Cn={s:q1,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:$i,sc:gv(function(e){return arguments.length?Ra.scrollTo($i.sc(),e):Ra.pageYOffset||tc[q1]||rc[q1]||f0[q1]||0})},ea=function(t,r){return(r&&r._ctx&&r._ctx.selector||ai.utils.toArray)(t)[0]||(typeof t=="string"&&ai.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},ore=function(t,r){for(var n=r.length;n--;)if(r[n]===t||r[n].contains(t))return!0;return!1},dc=function(t,r){var n=r.s,i=r.sc;Wd(t)&&(t=tc.scrollingElement||rc);var a=Mt.indexOf(t),s=i===Cn.sc?1:2;!~a&&(a=Mt.push(t)-1),Mt[a+s]||Ii(t,"scroll",QS);var o=Mt[a+s],c=o||(Mt[a+s]=gv(oc(t,n),!0)||(Wd(t)?i:gv(function(f){return arguments.length?t[n]=f:t[n]})));return c.target=t,o||(c.smooth=ai.getProperty(t,"scrollBehavior")==="smooth"),c},JS=function(t,r,n){var i=t,a=t,s=$d(),o=s,c=r||50,f=Math.max(500,c*3),h=function(y,x){var _=$d();x||_-s>c?(a=i,i=y,o=s,s=_):n?i+=y:i=a+(y-a)/(_-o)*(s-o)},p=function(){a=i=n?0:i,o=s=0},m=function(y){var x=o,_=a,w=$d();return(y||y===0)&&y!==i&&h(y),s===o||w-o>f?0:(i+(n?_:-_))/((n?w:s)-x)*1e3};return{update:h,reset:p,getVelocity:m}},sd=function(t,r){return r&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},rR=function(t){var r=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(r)>=Math.abs(n)?r:n},Y9=function(){Hd=ai.core.globals().ScrollTrigger,Hd&&Hd.core&&sre()},K9=function(t){return ai=t||G9(),!Ug&&ai&&typeof document<"u"&&document.body&&(Ra=window,tc=document,rc=tc.documentElement,f0=tc.body,W9=[Ra,tc,rc,f0],ai.utils.clamp,q9=ai.core.context||function(){},Kc="onpointerenter"in f0?"pointer":"mouse",$9=an.isTouch=Ra.matchMedia&&Ra.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ra||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Bs=an.eventTypes=("ontouchstart"in rc?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in rc?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return X9=0},500),Y9(),Ug=1),Ug};$i.op=Cn;Mt.cache=0;var an=function(){function e(r){this.init(r)}var t=e.prototype;return t.init=function(n){Ug||K9(ai)||console.warn("Please gsap.registerPlugin(Observer)"),Hd||Y9();var i=n.tolerance,a=n.dragMinimum,s=n.type,o=n.target,c=n.lineHeight,f=n.debounce,h=n.preventDefault,p=n.onStop,m=n.onStopDelay,g=n.ignore,y=n.wheelSpeed,x=n.event,_=n.onDragStart,w=n.onDragEnd,T=n.onDrag,S=n.onPress,O=n.onRelease,C=n.onRight,k=n.onLeft,D=n.onUp,M=n.onDown,N=n.onChangeX,z=n.onChangeY,H=n.onChange,B=n.onToggleX,te=n.onToggleY,ne=n.onHover,le=n.onHoverEnd,Q=n.onMove,ee=n.ignoreCheck,ce=n.isNormalizer,J=n.onGestureStart,R=n.onGestureEnd,se=n.onWheel,F=n.onEnable,V=n.onDisable,q=n.onClick,X=n.scrollSpeed,ae=n.capture,Se=n.allowClicks,Te=n.lockAxis,ue=n.onLockAxis;this.target=o=ea(o)||rc,this.vars=n,g&&(g=ai.utils.toArray(g)),i=i||1e-9,a=a||0,y=y||1,X=X||1,s=s||"wheel,touch,pointer",f=f!==!1,c||(c=parseFloat(Ra.getComputedStyle(f0).lineHeight)||22);var xe,Ne,j,ze,Le,He,Xe,ie=this,yt=0,Yt=0,Sr=n.passive||!h&&n.passive!==!1,Tt=dc(o,$i),Nn=dc(o,Cn),Dr=Tt(),vr=Nn(),It=~s.indexOf("touch")&&!~s.indexOf("pointer")&&Bs[0]==="pointerdown",xr=Wd(o),ge=o.ownerDocument||tc,Ie=[0,0,0],Re=[0,0,0],je=0,Ye=function(){return je=$d()},Ge=function(st,_t){return(ie.event=st)&&g&&ore(st.target,g)||_t&&It&&st.pointerType!=="touch"||ee&&ee(st,_t)},at=function(){ie._vx.reset(),ie._vy.reset(),Ne.pause(),p&&p(ie)},vt=function(){var st=ie.deltaX=rR(Ie),_t=ie.deltaY=rR(Re),Ue=Math.abs(st)>=i,et=Math.abs(_t)>=i;H&&(Ue||et)&&H(ie,st,_t,Ie,Re),Ue&&(C&&ie.deltaX>0&&C(ie),k&&ie.deltaX<0&&k(ie),N&&N(ie),B&&ie.deltaX<0!=yt<0&&B(ie),yt=ie.deltaX,Ie[0]=Ie[1]=Ie[2]=0),et&&(M&&ie.deltaY>0&&M(ie),D&&ie.deltaY<0&&D(ie),z&&z(ie),te&&ie.deltaY<0!=Yt<0&&te(ie),Yt=ie.deltaY,Re[0]=Re[1]=Re[2]=0),(ze||j)&&(Q&&Q(ie),j&&(_&&j===1&&_(ie),T&&T(ie),j=0),ze=!1),He&&!(He=!1)&&ue&&ue(ie),Le&&(se(ie),Le=!1),xe=0},nr=function(st,_t,Ue){Ie[Ue]+=st,Re[Ue]+=_t,ie._vx.update(st),ie._vy.update(_t),f?xe||(xe=requestAnimationFrame(vt)):vt()},cn=function(st,_t){Te&&!Xe&&(ie.axis=Xe=Math.abs(st)>Math.abs(_t)?"x":"y",He=!0),Xe!=="y"&&(Ie[2]+=st,ie._vx.update(st,!0)),Xe!=="x"&&(Re[2]+=_t,ie._vy.update(_t,!0)),f?xe||(xe=requestAnimationFrame(vt)):vt()},un=function(st){if(!Ge(st,1)){st=sd(st,h);var _t=st.clientX,Ue=st.clientY,et=_t-ie.x,tt=Ue-ie.y,ft=ie.isDragging;ie.x=_t,ie.y=Ue,(ft||(et||tt)&&(Math.abs(ie.startX-_t)>=a||Math.abs(ie.startY-Ue)>=a))&&(j=ft?2:1,ft||(ie.isDragging=!0),cn(et,tt))}},Xi=ie.onPress=function(gt){Ge(gt,1)||gt&&gt.button||(ie.axis=Xe=null,Ne.pause(),ie.isPressed=!0,gt=sd(gt),yt=Yt=0,ie.startX=ie.x=gt.clientX,ie.startY=ie.y=gt.clientY,ie._vx.reset(),ie._vy.reset(),Ii(ce?o:ge,Bs[1],un,Sr,!0),ie.deltaX=ie.deltaY=0,S&&S(ie))},xt=ie.onRelease=function(gt){if(!Ge(gt,1)){Li(ce?o:ge,Bs[1],un,!0);var st=!isNaN(ie.y-ie.startY),_t=ie.isDragging,Ue=_t&&(Math.abs(ie.x-ie.startX)>3||Math.abs(ie.y-ie.startY)>3),et=sd(gt);!Ue&&st&&(ie._vx.reset(),ie._vy.reset(),h&&Se&&ai.delayedCall(.08,function(){if($d()-je>300&&!gt.defaultPrevented){if(gt.target.click)gt.target.click();else if(ge.createEvent){var tt=ge.createEvent("MouseEvents");tt.initMouseEvent("click",!0,!0,Ra,1,et.screenX,et.screenY,et.clientX,et.clientY,!1,!1,!1,!1,0,null),gt.target.dispatchEvent(tt)}}})),ie.isDragging=ie.isGesturing=ie.isPressed=!1,p&&_t&&!ce&&Ne.restart(!0),j&&vt(),w&&_t&&w(ie),O&&O(ie,Ue)}},Mi=function(st){return st.touches&&st.touches.length>1&&(ie.isGesturing=!0)&&J(st,ie.isDragging)},wn=function(){return(ie.isGesturing=!1)||R(ie)},Ur=function(st){if(!Ge(st)){var _t=Tt(),Ue=Nn();nr((_t-Dr)*X,(Ue-vr)*X,1),Dr=_t,vr=Ue,p&&Ne.restart(!0)}},Zr=function(st){if(!Ge(st)){st=sd(st,h),se&&(Le=!0);var _t=(st.deltaMode===1?c:st.deltaMode===2?Ra.innerHeight:1)*y;nr(st.deltaX*_t,st.deltaY*_t,0),p&&!ce&&Ne.restart(!0)}},Yi=function(st){if(!Ge(st)){var _t=st.clientX,Ue=st.clientY,et=_t-ie.x,tt=Ue-ie.y;ie.x=_t,ie.y=Ue,ze=!0,p&&Ne.restart(!0),(et||tt)&&cn(et,tt)}},oi=function(st){ie.event=st,ne(ie)},Fn=function(st){ie.event=st,le(ie)},Ri=function(st){return Ge(st)||sd(st,h)&&q(ie)};Ne=ie._dc=ai.delayedCall(m||.25,at).pause(),ie.deltaX=ie.deltaY=0,ie._vx=JS(0,50,!0),ie._vy=JS(0,50,!0),ie.scrollX=Tt,ie.scrollY=Nn,ie.isDragging=ie.isGesturing=ie.isPressed=!1,q9(this),ie.enable=function(gt){return ie.isEnabled||(Ii(xr?ge:o,"scroll",QS),s.indexOf("scroll")>=0&&Ii(xr?ge:o,"scroll",Ur,Sr,ae),s.indexOf("wheel")>=0&&Ii(o,"wheel",Zr,Sr,ae),(s.indexOf("touch")>=0&&$9||s.indexOf("pointer")>=0)&&(Ii(o,Bs[0],Xi,Sr,ae),Ii(ge,Bs[2],xt),Ii(ge,Bs[3],xt),Se&&Ii(o,"click",Ye,!0,!0),q&&Ii(o,"click",Ri),J&&Ii(ge,"gesturestart",Mi),R&&Ii(ge,"gestureend",wn),ne&&Ii(o,Kc+"enter",oi),le&&Ii(o,Kc+"leave",Fn),Q&&Ii(o,Kc+"move",Yi)),ie.isEnabled=!0,ie.isDragging=ie.isGesturing=ie.isPressed=ze=j=!1,ie._vx.reset(),ie._vy.reset(),Dr=Tt(),vr=Nn(),gt&&gt.type&&Xi(gt),F&&F(ie)),ie},ie.disable=function(){ie.isEnabled&&(i0.filter(function(gt){return gt!==ie&&Wd(gt.target)}).length||Li(xr?ge:o,"scroll",QS),ie.isPressed&&(ie._vx.reset(),ie._vy.reset(),Li(ce?o:ge,Bs[1],un,!0)),Li(xr?ge:o,"scroll",Ur,ae),Li(o,"wheel",Zr,ae),Li(o,Bs[0],Xi,ae),Li(ge,Bs[2],xt),Li(ge,Bs[3],xt),Li(o,"click",Ye,!0),Li(o,"click",Ri),Li(ge,"gesturestart",Mi),Li(ge,"gestureend",wn),Li(o,Kc+"enter",oi),Li(o,Kc+"leave",Fn),Li(o,Kc+"move",Yi),ie.isEnabled=ie.isPressed=ie.isDragging=!1,V&&V(ie))},ie.kill=ie.revert=function(){ie.disable();var gt=i0.indexOf(ie);gt>=0&&i0.splice(gt,1),$o===ie&&($o=0)},i0.push(ie),ce&&Wd(o)&&($o=ie),ie.enable(x)},are(e,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),e}();an.version="3.13.0";an.create=function(e){return new an(e)};an.register=K9;an.getAll=function(){return i0.slice()};an.getById=function(e){return i0.filter(function(t){return t.vars.id===e})[0]};G9()&&ai.registerPlugin(an);/*!
 * ScrollTrigger 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var Qe,Xf,Pt,mr,Oa,Xt,EA,vv,wp,qd,Ed,G1,di,Ox,eE,ji,nR,iR,Yf,Z9,ob,Q9,Bi,tE,J9,eI,Xl,rE,TA,h0,AA,xv,nE,lb,X1=1,mi=Date.now,cb=mi(),Ss=0,Td=0,aR=function(t,r,n){var i=Ta(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return n["_"+r+"Clamp"]=i,i?t.substr(6,t.length-7):t},sR=function(t,r){return r&&(!Ta(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},lre=function e(){return Td&&requestAnimationFrame(e)},oR=function(){return Ox=1},lR=function(){return Ox=0},so=function(t){return t},Ad=function(t){return Math.round(t*1e5)/1e5||0},tI=function(){return typeof window<"u"},rI=function(){return Qe||tI()&&(Qe=window.gsap)&&Qe.registerPlugin&&Qe},Pu=function(t){return!!~EA.indexOf(t)},nI=function(t){return(t==="Height"?AA:Pt["inner"+t])||Oa["client"+t]||Xt["client"+t]},iI=function(t){return oc(t,"getBoundingClientRect")||(Pu(t)?function(){return Wg.width=Pt.innerWidth,Wg.height=AA,Wg}:function(){return zo(t)})},cre=function(t,r,n){var i=n.d,a=n.d2,s=n.a;return(s=oc(t,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(r?nI(a):t["client"+a])||0}},ure=function(t,r){return!r||~go.indexOf(t)?iI(t):function(){return Wg}},co=function(t,r){var n=r.s,i=r.d2,a=r.d,s=r.a;return Math.max(0,(n="scroll"+i)&&(s=oc(t,n))?s()-iI(t)()[a]:Pu(t)?(Oa[n]||Xt[n])-nI(i):t[n]-t["offset"+i])},Y1=function(t,r){for(var n=0;n<Yf.length;n+=3)(!r||~r.indexOf(Yf[n+1]))&&t(Yf[n],Yf[n+1],Yf[n+2])},Ta=function(t){return typeof t=="string"},bi=function(t){return typeof t=="function"},Cd=function(t){return typeof t=="number"},Zc=function(t){return typeof t=="object"},od=function(t,r,n){return t&&t.progress(r?0:1)&&n&&t.pause()},ub=function(t,r){if(t.enabled){var n=t._ctx?t._ctx.add(function(){return r(t)}):r(t);n&&n.totalTime&&(t.callbackAnimation=n)}},Uf=Math.abs,aI="left",sI="top",CA="right",OA="bottom",xu="width",yu="height",Gd="Right",Xd="Left",Yd="Top",Kd="Bottom",gn="padding",ms="margin",O0="Width",kA="Height",An="px",gs=function(t){return Pt.getComputedStyle(t)},fre=function(t){var r=gs(t).position;t.style.position=r==="absolute"||r==="fixed"?r:"relative"},cR=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},zo=function(t,r){var n=r&&gs(t)[eE]!=="matrix(1, 0, 0, 1, 0, 0)"&&Qe.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=t.getBoundingClientRect();return n&&n.progress(0).kill(),i},yv=function(t,r){var n=r.d2;return t["offset"+n]||t["client"+n]||0},oI=function(t){var r=[],n=t.labels,i=t.duration(),a;for(a in n)r.push(n[a]/i);return r},hre=function(t){return function(r){return Qe.utils.snap(oI(t),r)}},DA=function(t){var r=Qe.utils.snap(t),n=Array.isArray(t)&&t.slice(0).sort(function(i,a){return i-a});return n?function(i,a,s){s===void 0&&(s=.001);var o;if(!a)return r(i);if(a>0){for(i-=s,o=0;o<n.length;o++)if(n[o]>=i)return n[o];return n[o-1]}else for(o=n.length,i+=s;o--;)if(n[o]<=i)return n[o];return n[0]}:function(i,a,s){s===void 0&&(s=.001);var o=r(i);return!a||Math.abs(o-i)<s||o-i<0==a<0?o:r(a<0?i-t:i+t)}},dre=function(t){return function(r,n){return DA(oI(t))(r,n.direction)}},K1=function(t,r,n,i){return n.split(",").forEach(function(a){return t(r,a,i)})},zn=function(t,r,n,i,a){return t.addEventListener(r,n,{passive:!i,capture:!!a})},Un=function(t,r,n,i){return t.removeEventListener(r,n,!!i)},Z1=function(t,r,n){n=n&&n.wheelHandler,n&&(t(r,"wheel",n),t(r,"touchmove",n))},uR={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Q1={toggleActions:"play",anticipatePin:0},_v={top:0,left:0,center:.5,bottom:1,right:1},zg=function(t,r){if(Ta(t)){var n=t.indexOf("="),i=~n?+(t.charAt(n-1)+1)*parseFloat(t.substr(n+1)):0;~n&&(t.indexOf("%")>n&&(i*=r/100),t=t.substr(0,n-1)),t=i+(t in _v?_v[t]*r:~t.indexOf("%")?parseFloat(t)*r/100:parseFloat(t)||0)}return t},J1=function(t,r,n,i,a,s,o,c){var f=a.startColor,h=a.endColor,p=a.fontSize,m=a.indent,g=a.fontWeight,y=mr.createElement("div"),x=Pu(n)||oc(n,"pinType")==="fixed",_=t.indexOf("scroller")!==-1,w=x?Xt:n,T=t.indexOf("start")!==-1,S=T?f:h,O="border-color:"+S+";font-size:"+p+";color:"+S+";font-weight:"+g+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return O+="position:"+((_||c)&&x?"fixed;":"absolute;"),(_||c||!x)&&(O+=(i===Cn?CA:OA)+":"+(s+parseFloat(m))+"px;"),o&&(O+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),y._isStart=T,y.setAttribute("class","gsap-marker-"+t+(r?" marker-"+r:"")),y.style.cssText=O,y.innerText=r||r===0?t+"-"+r:t,w.children[0]?w.insertBefore(y,w.children[0]):w.appendChild(y),y._offset=y["offset"+i.op.d2],Vg(y,0,i,T),y},Vg=function(t,r,n,i){var a={display:"block"},s=n[i?"os2":"p2"],o=n[i?"p2":"os2"];t._isFlipped=i,a[n.a+"Percent"]=i?-100:0,a[n.a]=i?"1px":0,a["border"+s+O0]=1,a["border"+o+O0]=0,a[n.p]=r+"px",Qe.set(t,a)},Ot=[],iE={},Sp,fR=function(){return mi()-Ss>34&&(Sp||(Sp=requestAnimationFrame(Yo)))},zf=function(){(!Bi||!Bi.isPressed||Bi.startX>Xt.clientWidth)&&(Mt.cache++,Bi?Sp||(Sp=requestAnimationFrame(Yo)):Yo(),Ss||Ru("scrollStart"),Ss=mi())},fb=function(){eI=Pt.innerWidth,J9=Pt.innerHeight},Od=function(t){Mt.cache++,(t===!0||!di&&!Q9&&!mr.fullscreenElement&&!mr.webkitFullscreenElement&&(!tE||eI!==Pt.innerWidth||Math.abs(Pt.innerHeight-J9)>Pt.innerHeight*.25))&&vv.restart(!0)},Mu={},pre=[],lI=function e(){return Un(Lt,"scrollEnd",e)||au(!0)},Ru=function(t){return Mu[t]&&Mu[t].map(function(r){return r()})||pre},Ea=[],cI=function(t){for(var r=0;r<Ea.length;r+=5)(!t||Ea[r+4]&&Ea[r+4].query===t)&&(Ea[r].style.cssText=Ea[r+1],Ea[r].getBBox&&Ea[r].setAttribute("transform",Ea[r+2]||""),Ea[r+3].uncache=1)},PA=function(t,r){var n;for(ji=0;ji<Ot.length;ji++)n=Ot[ji],n&&(!r||n._ctx===r)&&(t?n.kill(1):n.revert(!0,!0));xv=!0,r&&cI(r),r||Ru("revert")},uI=function(t,r){Mt.cache++,(r||!Ui)&&Mt.forEach(function(n){return bi(n)&&n.cacheID++&&(n.rec=0)}),Ta(t)&&(Pt.history.scrollRestoration=TA=t)},Ui,_u=0,hR,mre=function(){if(hR!==_u){var t=hR=_u;requestAnimationFrame(function(){return t===_u&&au(!0)})}},fI=function(){Xt.appendChild(h0),AA=!Bi&&h0.offsetHeight||Pt.innerHeight,Xt.removeChild(h0)},dR=function(t){return wp(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(r){return r.style.display=t?"none":"block"})},au=function(t,r){if(Oa=mr.documentElement,Xt=mr.body,EA=[Pt,mr,Oa,Xt],Ss&&!t&&!xv){zn(Lt,"scrollEnd",lI);return}fI(),Ui=Lt.isRefreshing=!0,Mt.forEach(function(i){return bi(i)&&++i.cacheID&&(i.rec=i())});var n=Ru("refreshInit");Z9&&Lt.sort(),r||PA(),Mt.forEach(function(i){bi(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),Ot.slice(0).forEach(function(i){return i.refresh()}),xv=!1,Ot.forEach(function(i){if(i._subPinOffset&&i.pin){var a=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[a];i.revert(!0,1),i.adjustPinSpacing(i.pin[a]-s),i.refresh()}}),nE=1,dR(!0),Ot.forEach(function(i){var a=co(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>a,o=i._startClamp&&i.start>=a;(s||o)&&i.setPositions(o?a-1:i.start,s?Math.max(o?a:i.start+1,a):i.end,!0)}),dR(!1),nE=0,n.forEach(function(i){return i&&i.render&&i.render(-1)}),Mt.forEach(function(i){bi(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),uI(TA,1),vv.pause(),_u++,Ui=2,Yo(2),Ot.forEach(function(i){return bi(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Ui=Lt.isRefreshing=!1,Ru("refresh")},aE=0,Hg=1,Zd,Yo=function(t){if(t===2||!Ui&&!xv){Lt.isUpdating=!0,Zd&&Zd.update(0);var r=Ot.length,n=mi(),i=n-cb>=50,a=r&&Ot[0].scroll();if(Hg=aE>a?-1:1,Ui||(aE=a),i&&(Ss&&!Ox&&n-Ss>200&&(Ss=0,Ru("scrollEnd")),Ed=cb,cb=n),Hg<0){for(ji=r;ji-- >0;)Ot[ji]&&Ot[ji].update(0,i);Hg=1}else for(ji=0;ji<r;ji++)Ot[ji]&&Ot[ji].update(0,i);Lt.isUpdating=!1}Sp=0},sE=[aI,sI,OA,CA,ms+Kd,ms+Gd,ms+Yd,ms+Xd,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],$g=sE.concat([xu,yu,"boxSizing","max"+O0,"max"+kA,"position",ms,gn,gn+Yd,gn+Gd,gn+Kd,gn+Xd]),gre=function(t,r,n){d0(n);var i=t._gsap;if(i.spacerIsNative)d0(i.spacerState);else if(t._gsap.swappedIn){var a=r.parentNode;a&&(a.insertBefore(t,r),a.removeChild(r))}t._gsap.swappedIn=!1},hb=function(t,r,n,i){if(!t._gsap.swappedIn){for(var a=sE.length,s=r.style,o=t.style,c;a--;)c=sE[a],s[c]=n[c];s.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(s.display="inline-block"),o[OA]=o[CA]="auto",s.flexBasis=n.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[xu]=yv(t,$i)+An,s[yu]=yv(t,Cn)+An,s[gn]=o[ms]=o[sI]=o[aI]="0",d0(i),o[xu]=o["max"+O0]=n[xu],o[yu]=o["max"+kA]=n[yu],o[gn]=n[gn],t.parentNode!==r&&(t.parentNode.insertBefore(r,t),r.appendChild(t)),t._gsap.swappedIn=!0}},vre=/([A-Z])/g,d0=function(t){if(t){var r=t.t.style,n=t.length,i=0,a,s;for((t.t._gsap||Qe.core.getCache(t.t)).uncache=1;i<n;i+=2)s=t[i+1],a=t[i],s?r[a]=s:r[a]&&r.removeProperty(a.replace(vre,"-$1").toLowerCase())}},eg=function(t){for(var r=$g.length,n=t.style,i=[],a=0;a<r;a++)i.push($g[a],n[$g[a]]);return i.t=t,i},xre=function(t,r,n){for(var i=[],a=t.length,s=n?8:0,o;s<a;s+=2)o=t[s],i.push(o,o in r?r[o]:t[s+1]);return i.t=t.t,i},Wg={left:0,top:0},pR=function(t,r,n,i,a,s,o,c,f,h,p,m,g,y){bi(t)&&(t=t(c)),Ta(t)&&t.substr(0,3)==="max"&&(t=m+(t.charAt(4)==="="?zg("0"+t.substr(3),n):0));var x=g?g.time():0,_,w,T;if(g&&g.seek(0),isNaN(t)||(t=+t),Cd(t))g&&(t=Qe.utils.mapRange(g.scrollTrigger.start,g.scrollTrigger.end,0,m,t)),o&&Vg(o,n,i,!0);else{bi(r)&&(r=r(c));var S=(t||"0").split(" "),O,C,k,D;T=ea(r,c)||Xt,O=zo(T)||{},(!O||!O.left&&!O.top)&&gs(T).display==="none"&&(D=T.style.display,T.style.display="block",O=zo(T),D?T.style.display=D:T.style.removeProperty("display")),C=zg(S[0],O[i.d]),k=zg(S[1]||"0",n),t=O[i.p]-f[i.p]-h+C+a-k,o&&Vg(o,k,i,n-k<20||o._isStart&&k>20),n-=n-k}if(y&&(c[y]=t||-.001,t<0&&(t=0)),s){var M=t+n,N=s._isStart;_="scroll"+i.d2,Vg(s,M,i,N&&M>20||!N&&(p?Math.max(Xt[_],Oa[_]):s.parentNode[_])<=M+1),p&&(f=zo(o),p&&(s.style[i.op.p]=f[i.op.p]-i.op.m-s._offset+An))}return g&&T&&(_=zo(T),g.seek(m),w=zo(T),g._caScrollDist=_[i.p]-w[i.p],t=t/g._caScrollDist*m),g&&g.seek(x),g?t:Math.round(t)},yre=/(webkit|moz|length|cssText|inset)/i,mR=function(t,r,n,i){if(t.parentNode!==r){var a=t.style,s,o;if(r===Xt){t._stOrig=a.cssText,o=gs(t);for(s in o)!+s&&!yre.test(s)&&o[s]&&typeof a[s]=="string"&&s!=="0"&&(a[s]=o[s]);a.top=n,a.left=i}else a.cssText=t._stOrig;Qe.core.getCache(t).uncache=1,r.appendChild(t)}},hI=function(t,r,n){var i=r,a=i;return function(s){var o=Math.round(t());return o!==i&&o!==a&&Math.abs(o-i)>3&&Math.abs(o-a)>3&&(s=o,n&&n()),a=i,i=Math.round(s),i}},tg=function(t,r,n){var i={};i[r.p]="+="+n,Qe.set(t,i)},gR=function(t,r){var n=dc(t,r),i="_scroll"+r.p2,a=function s(o,c,f,h,p){var m=s.tween,g=c.onComplete,y={};f=f||n();var x=hI(n,f,function(){m.kill(),s.tween=0});return p=h&&p||0,h=h||o-f,m&&m.kill(),c[i]=o,c.inherit=!1,c.modifiers=y,y[i]=function(){return x(f+h*m.ratio+p*m.ratio*m.ratio)},c.onUpdate=function(){Mt.cache++,s.tween&&Yo()},c.onComplete=function(){s.tween=0,g&&g.call(m)},m=s.tween=Qe.to(t,c),m};return t[i]=n,n.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},zn(t,"wheel",n.wheelHandler),Lt.isTouch&&zn(t,"touchmove",n.wheelHandler),a},Lt=function(){function e(r,n){Xf||e.register(Qe)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),rE(this),this.init(r,n)}var t=e.prototype;return t.init=function(n,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Td){this.update=this.refresh=this.kill=so;return}n=cR(Ta(n)||Cd(n)||n.nodeType?{trigger:n}:n,Q1);var a=n,s=a.onUpdate,o=a.toggleClass,c=a.id,f=a.onToggle,h=a.onRefresh,p=a.scrub,m=a.trigger,g=a.pin,y=a.pinSpacing,x=a.invalidateOnRefresh,_=a.anticipatePin,w=a.onScrubComplete,T=a.onSnapComplete,S=a.once,O=a.snap,C=a.pinReparent,k=a.pinSpacer,D=a.containerAnimation,M=a.fastScrollEnd,N=a.preventOverlaps,z=n.horizontal||n.containerAnimation&&n.horizontal!==!1?$i:Cn,H=!p&&p!==0,B=ea(n.scroller||Pt),te=Qe.core.getCache(B),ne=Pu(B),le=("pinType"in n?n.pinType:oc(B,"pinType")||ne&&"fixed")==="fixed",Q=[n.onEnter,n.onLeave,n.onEnterBack,n.onLeaveBack],ee=H&&n.toggleActions.split(" "),ce="markers"in n?n.markers:Q1.markers,J=ne?0:parseFloat(gs(B)["border"+z.p2+O0])||0,R=this,se=n.onRefreshInit&&function(){return n.onRefreshInit(R)},F=cre(B,ne,z),V=ure(B,ne),q=0,X=0,ae=0,Se=dc(B,z),Te,ue,xe,Ne,j,ze,Le,He,Xe,ie,yt,Yt,Sr,Tt,Nn,Dr,vr,It,xr,ge,Ie,Re,je,Ye,Ge,at,vt,nr,cn,un,Xi,xt,Mi,wn,Ur,Zr,Yi,oi,Fn;if(R._startClamp=R._endClamp=!1,R._dir=z,_*=45,R.scroller=B,R.scroll=D?D.time.bind(D):Se,Ne=Se(),R.vars=n,i=i||n.animation,"refreshPriority"in n&&(Z9=1,n.refreshPriority===-9999&&(Zd=R)),te.tweenScroll=te.tweenScroll||{top:gR(B,Cn),left:gR(B,$i)},R.tweenTo=Te=te.tweenScroll[z.p],R.scrubDuration=function(Ue){Mi=Cd(Ue)&&Ue,Mi?xt?xt.duration(Ue):xt=Qe.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Mi,paused:!0,onComplete:function(){return w&&w(R)}}):(xt&&xt.progress(1).kill(),xt=0)},i&&(i.vars.lazy=!1,i._initted&&!R.isReverted||i.vars.immediateRender!==!1&&n.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),R.animation=i.pause(),i.scrollTrigger=R,R.scrubDuration(p),un=0,c||(c=i.vars.id)),O&&((!Zc(O)||O.push)&&(O={snapTo:O}),"scrollBehavior"in Xt.style&&Qe.set(ne?[Xt,Oa]:B,{scrollBehavior:"auto"}),Mt.forEach(function(Ue){return bi(Ue)&&Ue.target===(ne?mr.scrollingElement||Oa:B)&&(Ue.smooth=!1)}),xe=bi(O.snapTo)?O.snapTo:O.snapTo==="labels"?hre(i):O.snapTo==="labelsDirectional"?dre(i):O.directional!==!1?function(Ue,et){return DA(O.snapTo)(Ue,mi()-X<500?0:et.direction)}:Qe.utils.snap(O.snapTo),wn=O.duration||{min:.1,max:2},wn=Zc(wn)?qd(wn.min,wn.max):qd(wn,wn),Ur=Qe.delayedCall(O.delay||Mi/2||.1,function(){var Ue=Se(),et=mi()-X<500,tt=Te.tween;if((et||Math.abs(R.getVelocity())<10)&&!tt&&!Ox&&q!==Ue){var ft=(Ue-ze)/Tt,zr=i&&!H?i.totalProgress():ft,I=et?0:(zr-Xi)/(mi()-Ed)*1e3||0,K=Qe.utils.clamp(-ft,1-ft,Uf(I/2)*I/.185),W=ft+(O.inertia===!1?0:K),G,Y,Z=O,de=Z.onStart,_e=Z.onInterrupt,fe=Z.onComplete;if(G=xe(W,R),Cd(G)||(G=W),Y=Math.max(0,Math.round(ze+G*Tt)),Ue<=Le&&Ue>=ze&&Y!==Ue){if(tt&&!tt._initted&&tt.data<=Uf(Y-Ue))return;O.inertia===!1&&(K=G-ft),Te(Y,{duration:wn(Uf(Math.max(Uf(W-zr),Uf(G-zr))*.185/I/.05||0)),ease:O.ease||"power3",data:Uf(Y-Ue),onInterrupt:function(){return Ur.restart(!0)&&_e&&_e(R)},onComplete:function(){R.update(),q=Se(),i&&!H&&(xt?xt.resetTo("totalProgress",G,i._tTime/i._tDur):i.progress(G)),un=Xi=i&&!H?i.totalProgress():R.progress,T&&T(R),fe&&fe(R)}},Ue,K*Tt,Y-Ue-K*Tt),de&&de(R,Te.tween)}}else R.isActive&&q!==Ue&&Ur.restart(!0)}).pause()),c&&(iE[c]=R),m=R.trigger=ea(m||g!==!0&&g),Fn=m&&m._gsap&&m._gsap.stRevert,Fn&&(Fn=Fn(R)),g=g===!0?m:ea(g),Ta(o)&&(o={targets:m,className:o}),g&&(y===!1||y===ms||(y=!y&&g.parentNode&&g.parentNode.style&&gs(g.parentNode).display==="flex"?!1:gn),R.pin=g,ue=Qe.core.getCache(g),ue.spacer?Nn=ue.pinState:(k&&(k=ea(k),k&&!k.nodeType&&(k=k.current||k.nativeElement),ue.spacerIsNative=!!k,k&&(ue.spacerState=eg(k))),ue.spacer=It=k||mr.createElement("div"),It.classList.add("pin-spacer"),c&&It.classList.add("pin-spacer-"+c),ue.pinState=Nn=eg(g)),n.force3D!==!1&&Qe.set(g,{force3D:!0}),R.spacer=It=ue.spacer,cn=gs(g),Ye=cn[y+z.os2],ge=Qe.getProperty(g),Ie=Qe.quickSetter(g,z.a,An),hb(g,It,cn),vr=eg(g)),ce){Yt=Zc(ce)?cR(ce,uR):uR,ie=J1("scroller-start",c,B,z,Yt,0),yt=J1("scroller-end",c,B,z,Yt,0,ie),xr=ie["offset"+z.op.d2];var Ri=ea(oc(B,"content")||B);He=this.markerStart=J1("start",c,Ri,z,Yt,xr,0,D),Xe=this.markerEnd=J1("end",c,Ri,z,Yt,xr,0,D),D&&(oi=Qe.quickSetter([He,Xe],z.a,An)),!le&&!(go.length&&oc(B,"fixedMarkers")===!0)&&(fre(ne?Xt:B),Qe.set([ie,yt],{force3D:!0}),at=Qe.quickSetter(ie,z.a,An),nr=Qe.quickSetter(yt,z.a,An))}if(D){var gt=D.vars.onUpdate,st=D.vars.onUpdateParams;D.eventCallback("onUpdate",function(){R.update(0,0,1),gt&&gt.apply(D,st||[])})}if(R.previous=function(){return Ot[Ot.indexOf(R)-1]},R.next=function(){return Ot[Ot.indexOf(R)+1]},R.revert=function(Ue,et){if(!et)return R.kill(!0);var tt=Ue!==!1||!R.enabled,ft=di;tt!==R.isReverted&&(tt&&(Zr=Math.max(Se(),R.scroll.rec||0),ae=R.progress,Yi=i&&i.progress()),He&&[He,Xe,ie,yt].forEach(function(zr){return zr.style.display=tt?"none":"block"}),tt&&(di=R,R.update(tt)),g&&(!C||!R.isActive)&&(tt?gre(g,It,Nn):hb(g,It,gs(g),Ge)),tt||R.update(tt),di=ft,R.isReverted=tt)},R.refresh=function(Ue,et,tt,ft){if(!((di||!R.enabled)&&!et)){if(g&&Ue&&Ss){zn(e,"scrollEnd",lI);return}!Ui&&se&&se(R),di=R,Te.tween&&!tt&&(Te.tween.kill(),Te.tween=0),xt&&xt.pause(),x&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(ci){return ci.vars.immediateRender&&ci.render(0,!0,!0)})),R.isReverted||R.revert(!0,!0),R._subPinOffset=!1;var zr=F(),I=V(),K=D?D.duration():co(B,z),W=Tt<=.01||!Tt,G=0,Y=ft||0,Z=Zc(tt)?tt.end:n.end,de=n.endTrigger||m,_e=Zc(tt)?tt.start:n.start||(n.start===0||!m?0:g?"0 0":"0 100%"),fe=R.pinnedContainer=n.pinnedContainer&&ea(n.pinnedContainer,R),ve=m&&Math.max(0,Ot.indexOf(R))||0,pe=ve,ke,Fe,qe,Be,Ve,Ze,At,Vt,Kt,Ni,Sn,Ln,li;for(ce&&Zc(tt)&&(Ln=Qe.getProperty(ie,z.p),li=Qe.getProperty(yt,z.p));pe-- >0;)Ze=Ot[pe],Ze.end||Ze.refresh(0,1)||(di=R),At=Ze.pin,At&&(At===m||At===g||At===fe)&&!Ze.isReverted&&(Ni||(Ni=[]),Ni.unshift(Ze),Ze.revert(!0,!0)),Ze!==Ot[pe]&&(ve--,pe--);for(bi(_e)&&(_e=_e(R)),_e=aR(_e,"start",R),ze=pR(_e,m,zr,z,Se(),He,ie,R,I,J,le,K,D,R._startClamp&&"_startClamp")||(g?-.001:0),bi(Z)&&(Z=Z(R)),Ta(Z)&&!Z.indexOf("+=")&&(~Z.indexOf(" ")?Z=(Ta(_e)?_e.split(" ")[0]:"")+Z:(G=zg(Z.substr(2),zr),Z=Ta(_e)?_e:(D?Qe.utils.mapRange(0,D.duration(),D.scrollTrigger.start,D.scrollTrigger.end,ze):ze)+G,de=m)),Z=aR(Z,"end",R),Le=Math.max(ze,pR(Z||(de?"100% 0":K),de,zr,z,Se()+G,Xe,yt,R,I,J,le,K,D,R._endClamp&&"_endClamp"))||-.001,G=0,pe=ve;pe--;)Ze=Ot[pe],At=Ze.pin,At&&Ze.start-Ze._pinPush<=ze&&!D&&Ze.end>0&&(ke=Ze.end-(R._startClamp?Math.max(0,Ze.start):Ze.start),(At===m&&Ze.start-Ze._pinPush<ze||At===fe)&&isNaN(_e)&&(G+=ke*(1-Ze.progress)),At===g&&(Y+=ke));if(ze+=G,Le+=G,R._startClamp&&(R._startClamp+=G),R._endClamp&&!Ui&&(R._endClamp=Le||-.001,Le=Math.min(Le,co(B,z))),Tt=Le-ze||(ze-=.01)&&.001,W&&(ae=Qe.utils.clamp(0,1,Qe.utils.normalize(ze,Le,Zr))),R._pinPush=Y,He&&G&&(ke={},ke[z.a]="+="+G,fe&&(ke[z.p]="-="+Se()),Qe.set([He,Xe],ke)),g&&!(nE&&R.end>=co(B,z)))ke=gs(g),Be=z===Cn,qe=Se(),Re=parseFloat(ge(z.a))+Y,!K&&Le>1&&(Sn=(ne?mr.scrollingElement||Oa:B).style,Sn={style:Sn,value:Sn["overflow"+z.a.toUpperCase()]},ne&&gs(Xt)["overflow"+z.a.toUpperCase()]!=="scroll"&&(Sn.style["overflow"+z.a.toUpperCase()]="scroll")),hb(g,It,ke),vr=eg(g),Fe=zo(g,!0),Vt=le&&dc(B,Be?$i:Cn)(),y?(Ge=[y+z.os2,Tt+Y+An],Ge.t=It,pe=y===gn?yv(g,z)+Tt+Y:0,pe&&(Ge.push(z.d,pe+An),It.style.flexBasis!=="auto"&&(It.style.flexBasis=pe+An)),d0(Ge),fe&&Ot.forEach(function(ci){ci.pin===fe&&ci.vars.pinSpacing!==!1&&(ci._subPinOffset=!0)}),le&&Se(Zr)):(pe=yv(g,z),pe&&It.style.flexBasis!=="auto"&&(It.style.flexBasis=pe+An)),le&&(Ve={top:Fe.top+(Be?qe-ze:Vt)+An,left:Fe.left+(Be?Vt:qe-ze)+An,boxSizing:"border-box",position:"fixed"},Ve[xu]=Ve["max"+O0]=Math.ceil(Fe.width)+An,Ve[yu]=Ve["max"+kA]=Math.ceil(Fe.height)+An,Ve[ms]=Ve[ms+Yd]=Ve[ms+Gd]=Ve[ms+Kd]=Ve[ms+Xd]="0",Ve[gn]=ke[gn],Ve[gn+Yd]=ke[gn+Yd],Ve[gn+Gd]=ke[gn+Gd],Ve[gn+Kd]=ke[gn+Kd],Ve[gn+Xd]=ke[gn+Xd],Dr=xre(Nn,Ve,C),Ui&&Se(0)),i?(Kt=i._initted,ob(1),i.render(i.duration(),!0,!0),je=ge(z.a)-Re+Tt+Y,vt=Math.abs(Tt-je)>1,le&&vt&&Dr.splice(Dr.length-2,2),i.render(0,!0,!0),Kt||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),ob(0)):je=Tt,Sn&&(Sn.value?Sn.style["overflow"+z.a.toUpperCase()]=Sn.value:Sn.style.removeProperty("overflow-"+z.a));else if(m&&Se()&&!D)for(Fe=m.parentNode;Fe&&Fe!==Xt;)Fe._pinOffset&&(ze-=Fe._pinOffset,Le-=Fe._pinOffset),Fe=Fe.parentNode;Ni&&Ni.forEach(function(ci){return ci.revert(!1,!0)}),R.start=ze,R.end=Le,Ne=j=Ui?Zr:Se(),!D&&!Ui&&(Ne<Zr&&Se(Zr),R.scroll.rec=0),R.revert(!1,!0),X=mi(),Ur&&(q=-1,Ur.restart(!0)),di=0,i&&H&&(i._initted||Yi)&&i.progress()!==Yi&&i.progress(Yi||0,!0).render(i.time(),!0,!0),(W||ae!==R.progress||D||x||i&&!i._initted)&&(i&&!H&&(i._initted||ae||i.vars.immediateRender!==!1)&&i.totalProgress(D&&ze<-.001&&!ae?Qe.utils.normalize(ze,Le,0):ae,!0),R.progress=W||(Ne-ze)/Tt===ae?0:ae),g&&y&&(It._pinOffset=Math.round(R.progress*je)),xt&&xt.invalidate(),isNaN(Ln)||(Ln-=Qe.getProperty(ie,z.p),li-=Qe.getProperty(yt,z.p),tg(ie,z,Ln),tg(He,z,Ln-(ft||0)),tg(yt,z,li),tg(Xe,z,li-(ft||0))),W&&!Ui&&R.update(),h&&!Ui&&!Sr&&(Sr=!0,h(R),Sr=!1)}},R.getVelocity=function(){return(Se()-j)/(mi()-Ed)*1e3||0},R.endAnimation=function(){od(R.callbackAnimation),i&&(xt?xt.progress(1):i.paused()?H||od(i,R.direction<0,1):od(i,i.reversed()))},R.labelToScroll=function(Ue){return i&&i.labels&&(ze||R.refresh()||ze)+i.labels[Ue]/i.duration()*Tt||0},R.getTrailing=function(Ue){var et=Ot.indexOf(R),tt=R.direction>0?Ot.slice(0,et).reverse():Ot.slice(et+1);return(Ta(Ue)?tt.filter(function(ft){return ft.vars.preventOverlaps===Ue}):tt).filter(function(ft){return R.direction>0?ft.end<=ze:ft.start>=Le})},R.update=function(Ue,et,tt){if(!(D&&!tt&&!Ue)){var ft=Ui===!0?Zr:R.scroll(),zr=Ue?0:(ft-ze)/Tt,I=zr<0?0:zr>1?1:zr||0,K=R.progress,W,G,Y,Z,de,_e,fe,ve;if(et&&(j=Ne,Ne=D?Se():ft,O&&(Xi=un,un=i&&!H?i.totalProgress():I)),_&&g&&!di&&!X1&&Ss&&(!I&&ze<ft+(ft-j)/(mi()-Ed)*_?I=1e-4:I===1&&Le>ft+(ft-j)/(mi()-Ed)*_&&(I=.9999)),I!==K&&R.enabled){if(W=R.isActive=!!I&&I<1,G=!!K&&K<1,_e=W!==G,de=_e||!!I!=!!K,R.direction=I>K?1:-1,R.progress=I,de&&!di&&(Y=I&&!K?0:I===1?1:K===1?2:3,H&&(Z=!_e&&ee[Y+1]!=="none"&&ee[Y+1]||ee[Y],ve=i&&(Z==="complete"||Z==="reset"||Z in i))),N&&(_e||ve)&&(ve||p||!i)&&(bi(N)?N(R):R.getTrailing(N).forEach(function(qe){return qe.endAnimation()})),H||(xt&&!di&&!X1?(xt._dp._time-xt._start!==xt._time&&xt.render(xt._dp._time-xt._start),xt.resetTo?xt.resetTo("totalProgress",I,i._tTime/i._tDur):(xt.vars.totalProgress=I,xt.invalidate().restart())):i&&i.totalProgress(I,!!(di&&(X||Ue)))),g){if(Ue&&y&&(It.style[y+z.os2]=Ye),!le)Ie(Ad(Re+je*I));else if(de){if(fe=!Ue&&I>K&&Le+1>ft&&ft+1>=co(B,z),C)if(!Ue&&(W||fe)){var pe=zo(g,!0),ke=ft-ze;mR(g,Xt,pe.top+(z===Cn?ke:0)+An,pe.left+(z===Cn?0:ke)+An)}else mR(g,It);d0(W||fe?Dr:vr),vt&&I<1&&W||Ie(Re+(I===1&&!fe?je:0))}}O&&!Te.tween&&!di&&!X1&&Ur.restart(!0),o&&(_e||S&&I&&(I<1||!lb))&&wp(o.targets).forEach(function(qe){return qe.classList[W||S?"add":"remove"](o.className)}),s&&!H&&!Ue&&s(R),de&&!di?(H&&(ve&&(Z==="complete"?i.pause().totalProgress(1):Z==="reset"?i.restart(!0).pause():Z==="restart"?i.restart(!0):i[Z]()),s&&s(R)),(_e||!lb)&&(f&&_e&&ub(R,f),Q[Y]&&ub(R,Q[Y]),S&&(I===1?R.kill(!1,1):Q[Y]=0),_e||(Y=I===1?1:3,Q[Y]&&ub(R,Q[Y]))),M&&!W&&Math.abs(R.getVelocity())>(Cd(M)?M:2500)&&(od(R.callbackAnimation),xt?xt.progress(1):od(i,Z==="reverse"?1:!I,1))):H&&s&&!di&&s(R)}if(nr){var Fe=D?ft/D.duration()*(D._caScrollDist||0):ft;at(Fe+(ie._isFlipped?1:0)),nr(Fe)}oi&&oi(-ft/D.duration()*(D._caScrollDist||0))}},R.enable=function(Ue,et){R.enabled||(R.enabled=!0,zn(B,"resize",Od),ne||zn(B,"scroll",zf),se&&zn(e,"refreshInit",se),Ue!==!1&&(R.progress=ae=0,Ne=j=q=Se()),et!==!1&&R.refresh())},R.getTween=function(Ue){return Ue&&Te?Te.tween:xt},R.setPositions=function(Ue,et,tt,ft){if(D){var zr=D.scrollTrigger,I=D.duration(),K=zr.end-zr.start;Ue=zr.start+K*Ue/I,et=zr.start+K*et/I}R.refresh(!1,!1,{start:sR(Ue,tt&&!!R._startClamp),end:sR(et,tt&&!!R._endClamp)},ft),R.update()},R.adjustPinSpacing=function(Ue){if(Ge&&Ue){var et=Ge.indexOf(z.d)+1;Ge[et]=parseFloat(Ge[et])+Ue+An,Ge[1]=parseFloat(Ge[1])+Ue+An,d0(Ge)}},R.disable=function(Ue,et){if(R.enabled&&(Ue!==!1&&R.revert(!0,!0),R.enabled=R.isActive=!1,et||xt&&xt.pause(),Zr=0,ue&&(ue.uncache=1),se&&Un(e,"refreshInit",se),Ur&&(Ur.pause(),Te.tween&&Te.tween.kill()&&(Te.tween=0)),!ne)){for(var tt=Ot.length;tt--;)if(Ot[tt].scroller===B&&Ot[tt]!==R)return;Un(B,"resize",Od),ne||Un(B,"scroll",zf)}},R.kill=function(Ue,et){R.disable(Ue,et),xt&&!et&&xt.kill(),c&&delete iE[c];var tt=Ot.indexOf(R);tt>=0&&Ot.splice(tt,1),tt===ji&&Hg>0&&ji--,tt=0,Ot.forEach(function(ft){return ft.scroller===R.scroller&&(tt=1)}),tt||Ui||(R.scroll.rec=0),i&&(i.scrollTrigger=null,Ue&&i.revert({kill:!1}),et||i.kill()),He&&[He,Xe,ie,yt].forEach(function(ft){return ft.parentNode&&ft.parentNode.removeChild(ft)}),Zd===R&&(Zd=0),g&&(ue&&(ue.uncache=1),tt=0,Ot.forEach(function(ft){return ft.pin===g&&tt++}),tt||(ue.spacer=0)),n.onKill&&n.onKill(R)},Ot.push(R),R.enable(!1,!1),Fn&&Fn(R),i&&i.add&&!Tt){var _t=R.update;R.update=function(){R.update=_t,Mt.cache++,ze||Le||R.refresh()},Qe.delayedCall(.01,R.update),Tt=.01,ze=Le=0}else R.refresh();g&&mre()},e.register=function(n){return Xf||(Qe=n||rI(),tI()&&window.document&&e.enable(),Xf=Td),Xf},e.defaults=function(n){if(n)for(var i in n)Q1[i]=n[i];return Q1},e.disable=function(n,i){Td=0,Ot.forEach(function(s){return s[i?"kill":"disable"](n)}),Un(Pt,"wheel",zf),Un(mr,"scroll",zf),clearInterval(G1),Un(mr,"touchcancel",so),Un(Xt,"touchstart",so),K1(Un,mr,"pointerdown,touchstart,mousedown",oR),K1(Un,mr,"pointerup,touchend,mouseup",lR),vv.kill(),Y1(Un);for(var a=0;a<Mt.length;a+=3)Z1(Un,Mt[a],Mt[a+1]),Z1(Un,Mt[a],Mt[a+2])},e.enable=function(){if(Pt=window,mr=document,Oa=mr.documentElement,Xt=mr.body,Qe&&(wp=Qe.utils.toArray,qd=Qe.utils.clamp,rE=Qe.core.context||so,ob=Qe.core.suppressOverwrites||so,TA=Pt.history.scrollRestoration||"auto",aE=Pt.pageYOffset||0,Qe.core.globals("ScrollTrigger",e),Xt)){Td=1,h0=document.createElement("div"),h0.style.height="100vh",h0.style.position="absolute",fI(),lre(),an.register(Qe),e.isTouch=an.isTouch,Xl=an.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),tE=an.isTouch===1,zn(Pt,"wheel",zf),EA=[Pt,mr,Oa,Xt],Qe.matchMedia?(e.matchMedia=function(f){var h=Qe.matchMedia(),p;for(p in f)h.add(p,f[p]);return h},Qe.addEventListener("matchMediaInit",function(){return PA()}),Qe.addEventListener("matchMediaRevert",function(){return cI()}),Qe.addEventListener("matchMedia",function(){au(0,1),Ru("matchMedia")}),Qe.matchMedia().add("(orientation: portrait)",function(){return fb(),fb})):console.warn("Requires GSAP 3.11.0 or later"),fb(),zn(mr,"scroll",zf);var n=Xt.hasAttribute("style"),i=Xt.style,a=i.borderTopStyle,s=Qe.core.Animation.prototype,o,c;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=zo(Xt),Cn.m=Math.round(o.top+Cn.sc())||0,$i.m=Math.round(o.left+$i.sc())||0,a?i.borderTopStyle=a:i.removeProperty("border-top-style"),n||(Xt.setAttribute("style",""),Xt.removeAttribute("style")),G1=setInterval(fR,250),Qe.delayedCall(.5,function(){return X1=0}),zn(mr,"touchcancel",so),zn(Xt,"touchstart",so),K1(zn,mr,"pointerdown,touchstart,mousedown",oR),K1(zn,mr,"pointerup,touchend,mouseup",lR),eE=Qe.utils.checkPrefix("transform"),$g.push(eE),Xf=mi(),vv=Qe.delayedCall(.2,au).pause(),Yf=[mr,"visibilitychange",function(){var f=Pt.innerWidth,h=Pt.innerHeight;mr.hidden?(nR=f,iR=h):(nR!==f||iR!==h)&&Od()},mr,"DOMContentLoaded",au,Pt,"load",au,Pt,"resize",Od],Y1(zn),Ot.forEach(function(f){return f.enable(0,1)}),c=0;c<Mt.length;c+=3)Z1(Un,Mt[c],Mt[c+1]),Z1(Un,Mt[c],Mt[c+2])}},e.config=function(n){"limitCallbacks"in n&&(lb=!!n.limitCallbacks);var i=n.syncInterval;i&&clearInterval(G1)||(G1=i)&&setInterval(fR,i),"ignoreMobileResize"in n&&(tE=e.isTouch===1&&n.ignoreMobileResize),"autoRefreshEvents"in n&&(Y1(Un)||Y1(zn,n.autoRefreshEvents||"none"),Q9=(n.autoRefreshEvents+"").indexOf("resize")===-1)},e.scrollerProxy=function(n,i){var a=ea(n),s=Mt.indexOf(a),o=Pu(a);~s&&Mt.splice(s,o?6:2),i&&(o?go.unshift(Pt,i,Xt,i,Oa,i):go.unshift(a,i))},e.clearMatchMedia=function(n){Ot.forEach(function(i){return i._ctx&&i._ctx.query===n&&i._ctx.kill(!0,!0)})},e.isInViewport=function(n,i,a){var s=(Ta(n)?ea(n):n).getBoundingClientRect(),o=s[a?xu:yu]*i||0;return a?s.right-o>0&&s.left+o<Pt.innerWidth:s.bottom-o>0&&s.top+o<Pt.innerHeight},e.positionInViewport=function(n,i,a){Ta(n)&&(n=ea(n));var s=n.getBoundingClientRect(),o=s[a?xu:yu],c=i==null?o/2:i in _v?_v[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return a?(s.left+c)/Pt.innerWidth:(s.top+c)/Pt.innerHeight},e.killAll=function(n){if(Ot.slice(0).forEach(function(a){return a.vars.id!=="ScrollSmoother"&&a.kill()}),n!==!0){var i=Mu.killAll||[];Mu={},i.forEach(function(a){return a()})}},e}();Lt.version="3.13.0";Lt.saveStyles=function(e){return e?wp(e).forEach(function(t){if(t&&t.style){var r=Ea.indexOf(t);r>=0&&Ea.splice(r,5),Ea.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Qe.core.getCache(t),rE())}}):Ea};Lt.revert=function(e,t){return PA(!e,t)};Lt.create=function(e,t){return new Lt(e,t)};Lt.refresh=function(e){return e?Od(!0):(Xf||Lt.register())&&au(!0)};Lt.update=function(e){return++Mt.cache&&Yo(e===!0?2:0)};Lt.clearScrollMemory=uI;Lt.maxScroll=function(e,t){return co(e,t?$i:Cn)};Lt.getScrollFunc=function(e,t){return dc(ea(e),t?$i:Cn)};Lt.getById=function(e){return iE[e]};Lt.getAll=function(){return Ot.filter(function(e){return e.vars.id!=="ScrollSmoother"})};Lt.isScrolling=function(){return!!Ss};Lt.snapDirectional=DA;Lt.addEventListener=function(e,t){var r=Mu[e]||(Mu[e]=[]);~r.indexOf(t)||r.push(t)};Lt.removeEventListener=function(e,t){var r=Mu[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)};Lt.batch=function(e,t){var r=[],n={},i=t.interval||.016,a=t.batchMax||1e9,s=function(f,h){var p=[],m=[],g=Qe.delayedCall(i,function(){h(p,m),p=[],m=[]}).pause();return function(y){p.length||g.restart(!0),p.push(y.trigger),m.push(y),a<=p.length&&g.progress(1)}},o;for(o in t)n[o]=o.substr(0,2)==="on"&&bi(t[o])&&o!=="onRefreshInit"?s(o,t[o]):t[o];return bi(a)&&(a=a(),zn(Lt,"refresh",function(){return a=t.batchMax()})),wp(e).forEach(function(c){var f={};for(o in n)f[o]=n[o];f.trigger=c,r.push(Lt.create(f))}),r};var vR=function(t,r,n,i){return r>i?t(i):r<0&&t(0),n>i?(i-r)/(n-r):n<0?r/(r-n):1},db=function e(t,r){r===!0?t.style.removeProperty("touch-action"):t.style.touchAction=r===!0?"auto":r?"pan-"+r+(an.isTouch?" pinch-zoom":""):"none",t===Oa&&e(Xt,r)},rg={auto:1,scroll:1},_re=function(t){var r=t.event,n=t.target,i=t.axis,a=(r.changedTouches?r.changedTouches[0]:r).target,s=a._gsap||Qe.core.getCache(a),o=mi(),c;if(!s._isScrollT||o-s._isScrollT>2e3){for(;a&&a!==Xt&&(a.scrollHeight<=a.clientHeight&&a.scrollWidth<=a.clientWidth||!(rg[(c=gs(a)).overflowY]||rg[c.overflowX]));)a=a.parentNode;s._isScroll=a&&a!==n&&!Pu(a)&&(rg[(c=gs(a)).overflowY]||rg[c.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},dI=function(t,r,n,i){return an.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&_re,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&zn(mr,an.eventTypes[0],yR,!1,!0)},onDisable:function(){return Un(mr,an.eventTypes[0],yR,!0)}})},bre=/(input|label|select|textarea)/i,xR,yR=function(t){var r=bre.test(t.target.tagName);(r||xR)&&(t._gsapAllow=!0,xR=r)},wre=function(t){Zc(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var r=t,n=r.normalizeScrollX,i=r.momentum,a=r.allowNestedScroll,s=r.onRelease,o,c,f=ea(t.target)||Oa,h=Qe.core.globals().ScrollSmoother,p=h&&h.get(),m=Xl&&(t.content&&ea(t.content)||p&&t.content!==!1&&!p.smooth()&&p.content()),g=dc(f,Cn),y=dc(f,$i),x=1,_=(an.isTouch&&Pt.visualViewport?Pt.visualViewport.scale*Pt.visualViewport.width:Pt.outerWidth)/Pt.innerWidth,w=0,T=bi(i)?function(){return i(o)}:function(){return i||2.8},S,O,C=dI(f,t.type,!0,a),k=function(){return O=!1},D=so,M=so,N=function(){c=co(f,Cn),M=qd(Xl?1:0,c),n&&(D=qd(0,co(f,$i))),S=_u},z=function(){m._gsap.y=Ad(parseFloat(m._gsap.y)+g.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",g.offset=g.cacheID=0},H=function(){if(O){requestAnimationFrame(k);var ce=Ad(o.deltaY/2),J=M(g.v-ce);if(m&&J!==g.v+g.offset){g.offset=J-g.v;var R=Ad((parseFloat(m&&m._gsap.y)||0)-g.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+R+", 0, 1)",m._gsap.y=R+"px",g.cacheID=Mt.cache,Yo()}return!0}g.offset&&z(),O=!0},B,te,ne,le,Q=function(){N(),B.isActive()&&B.vars.scrollY>c&&(g()>c?B.progress(1)&&g(c):B.resetTo("scrollY",c))};return m&&Qe.set(m,{y:"+=0"}),t.ignoreCheck=function(ee){return Xl&&ee.type==="touchmove"&&H()||x>1.05&&ee.type!=="touchstart"||o.isGesturing||ee.touches&&ee.touches.length>1},t.onPress=function(){O=!1;var ee=x;x=Ad((Pt.visualViewport&&Pt.visualViewport.scale||1)/_),B.pause(),ee!==x&&db(f,x>1.01?!0:n?!1:"x"),te=y(),ne=g(),N(),S=_u},t.onRelease=t.onGestureStart=function(ee,ce){if(g.offset&&z(),!ce)le.restart(!0);else{Mt.cache++;var J=T(),R,se;n&&(R=y(),se=R+J*.05*-ee.velocityX/.227,J*=vR(y,R,se,co(f,$i)),B.vars.scrollX=D(se)),R=g(),se=R+J*.05*-ee.velocityY/.227,J*=vR(g,R,se,co(f,Cn)),B.vars.scrollY=M(se),B.invalidate().duration(J).play(.01),(Xl&&B.vars.scrollY>=c||R>=c-1)&&Qe.to({},{onUpdate:Q,duration:J})}s&&s(ee)},t.onWheel=function(){B._ts&&B.pause(),mi()-w>1e3&&(S=0,w=mi())},t.onChange=function(ee,ce,J,R,se){if(_u!==S&&N(),ce&&n&&y(D(R[2]===ce?te+(ee.startX-ee.x):y()+ce-R[1])),J){g.offset&&z();var F=se[2]===J,V=F?ne+ee.startY-ee.y:g()+J-se[1],q=M(V);F&&V!==q&&(ne+=q-V),g(q)}(J||ce)&&Yo()},t.onEnable=function(){db(f,n?!1:"x"),Lt.addEventListener("refresh",Q),zn(Pt,"resize",Q),g.smooth&&(g.target.style.scrollBehavior="auto",g.smooth=y.smooth=!1),C.enable()},t.onDisable=function(){db(f,!0),Un(Pt,"resize",Q),Lt.removeEventListener("refresh",Q),C.kill()},t.lockAxis=t.lockAxis!==!1,o=new an(t),o.iOS=Xl,Xl&&!g()&&g(1),Xl&&Qe.ticker.add(so),le=o._dc,B=Qe.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:n?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:hI(g,g(),function(){return B.pause()})},onUpdate:Yo,onComplete:le.vars.onComplete}),o};Lt.sort=function(e){if(bi(e))return Ot.sort(e);var t=Pt.pageYOffset||0;return Lt.getAll().forEach(function(r){return r._sortY=r.trigger?t+r.trigger.getBoundingClientRect().top:r.start+Pt.innerHeight}),Ot.sort(e||function(r,n){return(r.vars.refreshPriority||0)*-1e6+(r.vars.containerAnimation?1e6:r._sortY)-((n.vars.containerAnimation?1e6:n._sortY)+(n.vars.refreshPriority||0)*-1e6)})};Lt.observe=function(e){return new an(e)};Lt.normalizeScroll=function(e){if(typeof e>"u")return Bi;if(e===!0&&Bi)return Bi.enable();if(e===!1){Bi&&Bi.kill(),Bi=e;return}var t=e instanceof an?e:wre(e);return Bi&&Bi.target===t.target&&Bi.kill(),Pu(t.target)&&(Bi=t),t};Lt.core={_getVelocityProp:JS,_inputObserver:dI,_scrollers:Mt,_proxies:go,bridge:{ss:function(){Ss||Ru("scrollStart"),Ss=mi()},ref:function(){return di}}};rI()&&Qe.registerPlugin(Lt);/*!
 * SplitText 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
 * @author: Jack Doyle
 */let ld,Vf,oE,Sre=()=>oE||vI.register(window.gsap),_R=typeof Intl<"u"?new Intl.Segmenter:0,bv=e=>typeof e=="string"?bv(document.querySelectorAll(e)):"length"in e?Array.from(e):[e],bR=e=>bv(e).filter(t=>t instanceof HTMLElement),lE=[],pb=function(){},Ere=/\s+/g,wR=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),SR={left:0,top:0,width:0,height:0},ER=(e,t)=>{if(t){let r=new Set(e.join("").match(t)||lE),n=e.length,i,a,s,o;if(r.size)for(;--n>-1;){a=e[n];for(s of r)if(s.startsWith(a)&&s.length>a.length){for(i=0,o=a;s.startsWith(o+=e[n+ ++i])&&o.length<s.length;);if(i&&o.length===s.length){e[n]=s,e.splice(n+1,i);break}}}}return e},TR=e=>window.getComputedStyle(e).display==="inline"&&(e.style.display="inline-block"),Hf=(e,t,r)=>t.insertBefore(typeof e=="string"?document.createTextNode(e):e,r),cE=(e,t,r)=>{let n=t[e+"sClass"]||"",{tag:i="div",aria:a="auto",propIndex:s=!1}=t,o=e==="line"?"block":"inline-block",c=n.indexOf("++")>-1,f=h=>{let p=document.createElement(i),m=r.length+1;return n&&(p.className=n+(c?" "+n+m:"")),s&&p.style.setProperty("--"+e,m+""),a!=="none"&&p.setAttribute("aria-hidden","true"),i!=="span"&&(p.style.position="relative",p.style.display=o),p.textContent=h,r.push(p),p};return c&&(n=n.replace("++","")),f.collection=r,f},Tre=(e,t,r,n)=>{let i=cE("line",r,n),a=window.getComputedStyle(e).textAlign||"left";return(s,o)=>{let c=i("");for(c.style.textAlign=a,e.insertBefore(c,t[s]);s<o;s++)c.appendChild(t[s]);c.normalize()}},pI=(e,t,r,n,i,a,s,o,c,f)=>{var h;let p=Array.from(e.childNodes),m=0,{wordDelimiter:g,reduceWhiteSpace:y=!0,prepareText:x}=t,_=e.getBoundingClientRect(),w=_,T=!y&&window.getComputedStyle(e).whiteSpace.substring(0,3)==="pre",S=0,O=r.collection,C,k,D,M,N,z,H,B,te,ne,le,Q,ee,ce,J,R,se,F;for(typeof g=="object"?(D=g.delimiter||g,k=g.replaceWith||""):k=g===""?"":g||" ",C=k!==" ";m<p.length;m++)if(M=p[m],M.nodeType===3){for(J=M.textContent||"",y?J=J.replace(Ere," "):T&&(J=J.replace(/\n/g,k+`
`)),x&&(J=x(J,e)),M.textContent=J,N=k||D?J.split(D||k):J.match(o)||lE,se=N[N.length-1],B=C?se.slice(-1)===" ":!se,se||N.pop(),w=_,H=C?N[0].charAt(0)===" ":!N[0],H&&Hf(" ",e,M),N[0]||N.shift(),ER(N,c),a&&f||(M.textContent=""),te=1;te<=N.length;te++)if(R=N[te-1],!y&&T&&R.charAt(0)===`
`&&((h=M.previousSibling)==null||h.remove(),Hf(document.createElement("br"),e,M),R=R.slice(1)),!y&&R==="")Hf(k,e,M);else if(R===" ")e.insertBefore(document.createTextNode(" "),M);else{if(C&&R.charAt(0)===" "&&Hf(" ",e,M),S&&te===1&&!H&&O.indexOf(S.parentNode)>-1?(z=O[O.length-1],z.appendChild(document.createTextNode(n?"":R))):(z=r(n?"":R),Hf(z,e,M),S&&te===1&&!H&&z.insertBefore(S,z.firstChild)),n)for(le=_R?ER([..._R.segment(R)].map(V=>V.segment),c):R.match(o)||lE,F=0;F<le.length;F++)z.appendChild(le[F]===" "?document.createTextNode(" "):n(le[F]));if(a&&f){if(J=M.textContent=J.substring(R.length+1,J.length),ne=z.getBoundingClientRect(),ne.top>w.top&&ne.left<=w.left){for(Q=e.cloneNode(),ee=e.childNodes[0];ee&&ee!==z;)ce=ee,ee=ee.nextSibling,Q.appendChild(ce);e.parentNode.insertBefore(Q,e),i&&TR(Q)}w=ne}(te<N.length||B)&&Hf(te>=N.length?" ":C&&R.slice(-1)===" "?" "+k:k,e,M)}e.removeChild(M),S=0}else M.nodeType===1&&(s&&s.indexOf(M)>-1?(O.indexOf(M.previousSibling)>-1&&O[O.length-1].appendChild(M),S=M):(pI(M,t,r,n,i,a,s,o,c,!0),S=0),i&&TR(M))};const mI=class gI{constructor(t,r){this.isSplit=!1,Sre(),this.elements=bR(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=r,this._split=()=>this.isSplit&&this.split(this.vars);let n=[],i,a=()=>{let s=n.length,o;for(;s--;){o=n[s];let c=o.element.offsetWidth;if(c!==o.width){o.width=c,this._split();return}}};this._data={orig:n,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(i),i=setTimeout(a,200)})},pb(this),this.split(r)}split(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let{type:r="chars,words,lines",aria:n="auto",deepSlice:i=!0,smartWrap:a,onSplit:s,autoSplit:o=!1,specialChars:c,mask:f}=this.vars,h=r.indexOf("lines")>-1,p=r.indexOf("chars")>-1,m=r.indexOf("words")>-1,g=p&&!m&&!h,y=c&&("push"in c?new RegExp("(?:"+c.join("|")+")","gu"):c),x=y?new RegExp(y.source+"|"+wR.source,"gu"):wR,_=!!t.ignore&&bR(t.ignore),{orig:w,animTime:T,obs:S}=this._data,O;return(p||m||h)&&(this.elements.forEach((C,k)=>{w[k]={element:C,html:C.innerHTML,ariaL:C.getAttribute("aria-label"),ariaH:C.getAttribute("aria-hidden")},n==="auto"?C.setAttribute("aria-label",(C.textContent||"").trim()):n==="hidden"&&C.setAttribute("aria-hidden","true");let D=[],M=[],N=[],z=p?cE("char",t,D):null,H=cE("word",t,M),B,te,ne,le;if(pI(C,t,H,z,g,i&&(h||g),_,x,y,!1),h){let Q=bv(C.childNodes),ee=Tre(C,Q,t,N),ce,J=[],R=0,se=Q.map(V=>V.nodeType===1?V.getBoundingClientRect():SR),F=SR;for(B=0;B<Q.length;B++)ce=Q[B],ce.nodeType===1&&(ce.nodeName==="BR"?(J.push(ce),ee(R,B+1),R=B+1,F=se[R]):(B&&se[B].top>F.top&&se[B].left<=F.left&&(ee(R,B),R=B),F=se[B]));R<B&&ee(R,B),J.forEach(V=>{var q;return(q=V.parentNode)==null?void 0:q.removeChild(V)})}if(!m){for(B=0;B<M.length;B++)if(te=M[B],p||!te.nextSibling||te.nextSibling.nodeType!==3)if(a&&!h){for(ne=document.createElement("span"),ne.style.whiteSpace="nowrap";te.firstChild;)ne.appendChild(te.firstChild);te.replaceWith(ne)}else te.replaceWith(...te.childNodes);else le=te.nextSibling,le&&le.nodeType===3&&(le.textContent=(te.textContent||"")+(le.textContent||""),te.remove());M.length=0,C.normalize()}this.lines.push(...N),this.words.push(...M),this.chars.push(...D)}),f&&this[f]&&this.masks.push(...this[f].map(C=>{let k=C.cloneNode();return C.replaceWith(k),k.appendChild(C),C.className&&(k.className=C.className.replace(/(\b\w+\b)/g,"$1-mask")),k.style.overflow="clip",k}))),this.isSplit=!0,Vf&&(o?Vf.addEventListener("loadingdone",this._split):Vf.status==="loading"&&console.warn("SplitText called before fonts loaded")),(O=s&&s(this))&&O.totalTime&&(this._data.anim=T?O.totalTime(T):O),h&&o&&this.elements.forEach((C,k)=>{w[k].width=C.offsetWidth,S&&S.observe(C)}),this}revert(){var t,r;let{orig:n,anim:i,obs:a}=this._data;return a&&a.disconnect(),n.forEach(({element:s,html:o,ariaL:c,ariaH:f})=>{s.innerHTML=o,c?s.setAttribute("aria-label",c):s.removeAttribute("aria-label"),f?s.setAttribute("aria-hidden",f):s.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=n.length=this.masks.length=0,this.isSplit=!1,Vf?.removeEventListener("loadingdone",this._split),i&&(this._data.animTime=i.totalTime(),i.revert()),(r=(t=this.vars).onRevert)==null||r.call(t,this),this}static create(t,r){return new gI(t,r)}static register(t){ld=ld||t||window.gsap,ld&&(bv=ld.utils.toArray,pb=ld.core.context||pb),!oE&&window.innerWidth>0&&(Vf=document.fonts,oE=!0)}};mI.version="3.13.0";let vI=mI;H9.registerPlugin(Lt,vI);function xI(e,t){return function(){return e.apply(t,arguments)}}const{toString:Are}=Object.prototype,{getPrototypeOf:MA}=Object,{iterator:kx,toStringTag:yI}=Symbol,Dx=(e=>t=>{const r=Are.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Xs=e=>(e=e.toLowerCase(),t=>Dx(t)===e),Px=e=>t=>typeof t===e,{isArray:X0}=Array,Ep=Px("undefined");function am(e){return e!==null&&!Ep(e)&&e.constructor!==null&&!Ep(e.constructor)&&ca(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _I=Xs("ArrayBuffer");function Cre(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_I(e.buffer),t}const Ore=Px("string"),ca=Px("function"),bI=Px("number"),sm=e=>e!==null&&typeof e=="object",kre=e=>e===!0||e===!1,qg=e=>{if(Dx(e)!=="object")return!1;const t=MA(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(yI in e)&&!(kx in e)},Dre=e=>{if(!sm(e)||am(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Pre=Xs("Date"),Mre=Xs("File"),Rre=Xs("Blob"),Nre=Xs("FileList"),Fre=e=>sm(e)&&ca(e.pipe),Lre=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ca(e.append)&&((t=Dx(e))==="formdata"||t==="object"&&ca(e.toString)&&e.toString()==="[object FormData]"))},Ire=Xs("URLSearchParams"),[Bre,jre,Ure,zre]=["ReadableStream","Request","Response","Headers"].map(Xs),Vre=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function om(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),X0(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(am(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let o;for(n=0;n<s;n++)o=a[n],t.call(null,e[o],o,e)}}function wI(e,t){if(am(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const su=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,SI=e=>!Ep(e)&&e!==su;function uE(){const{caseless:e}=SI(this)&&this||{},t={},r=(n,i)=>{const a=e&&wI(t,i)||i;qg(t[a])&&qg(n)?t[a]=uE(t[a],n):qg(n)?t[a]=uE({},n):X0(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&om(arguments[n],r);return t}const Hre=(e,t,r,{allOwnKeys:n}={})=>(om(t,(i,a)=>{r&&ca(i)?e[a]=xI(i,r):e[a]=i},{allOwnKeys:n}),e),$re=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wre=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},qre=(e,t,r,n)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!n||n(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=r!==!1&&MA(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Gre=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Xre=e=>{if(!e)return null;if(X0(e))return e;let t=e.length;if(!bI(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Yre=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&MA(Uint8Array)),Kre=(e,t)=>{const n=(e&&e[kx]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Zre=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Qre=Xs("HTMLFormElement"),Jre=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),AR=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ene=Xs("RegExp"),EI=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};om(r,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(n[a]=s||i)}),Object.defineProperties(e,n)},tne=e=>{EI(e,(t,r)=>{if(ca(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ca(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},rne=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return X0(e)?n(e):n(String(e).split(t)),r},nne=()=>{},ine=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ane(e){return!!(e&&ca(e.append)&&e[yI]==="FormData"&&e[kx])}const sne=e=>{const t=new Array(10),r=(n,i)=>{if(sm(n)){if(t.indexOf(n)>=0)return;if(am(n))return n;if(!("toJSON"in n)){t[i]=n;const a=X0(n)?[]:{};return om(n,(s,o)=>{const c=r(s,i+1);!Ep(c)&&(a[o]=c)}),t[i]=void 0,a}}return n};return r(e,0)},one=Xs("AsyncFunction"),lne=e=>e&&(sm(e)||ca(e))&&ca(e.then)&&ca(e.catch),TI=((e,t)=>e?setImmediate:t?((r,n)=>(su.addEventListener("message",({source:i,data:a})=>{i===su&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),su.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ca(su.postMessage)),cne=typeof queueMicrotask<"u"?queueMicrotask.bind(su):typeof process<"u"&&process.nextTick||TI,une=e=>e!=null&&ca(e[kx]),Ae={isArray:X0,isArrayBuffer:_I,isBuffer:am,isFormData:Lre,isArrayBufferView:Cre,isString:Ore,isNumber:bI,isBoolean:kre,isObject:sm,isPlainObject:qg,isEmptyObject:Dre,isReadableStream:Bre,isRequest:jre,isResponse:Ure,isHeaders:zre,isUndefined:Ep,isDate:Pre,isFile:Mre,isBlob:Rre,isRegExp:ene,isFunction:ca,isStream:Fre,isURLSearchParams:Ire,isTypedArray:Yre,isFileList:Nre,forEach:om,merge:uE,extend:Hre,trim:Vre,stripBOM:$re,inherits:Wre,toFlatObject:qre,kindOf:Dx,kindOfTest:Xs,endsWith:Gre,toArray:Xre,forEachEntry:Kre,matchAll:Zre,isHTMLForm:Qre,hasOwnProperty:AR,hasOwnProp:AR,reduceDescriptors:EI,freezeMethods:tne,toObjectSet:rne,toCamelCase:Jre,noop:nne,toFiniteNumber:ine,findKey:wI,global:su,isContextDefined:SI,isSpecCompliantForm:ane,toJSONObject:sne,isAsyncFn:one,isThenable:lne,setImmediate:TI,asap:cne,isIterable:une};function bt(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}Ae.inherits(bt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ae.toJSONObject(this.config),code:this.code,status:this.status}}});const AI=bt.prototype,CI={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{CI[e]={value:e}});Object.defineProperties(bt,CI);Object.defineProperty(AI,"isAxiosError",{value:!0});bt.from=(e,t,r,n,i,a)=>{const s=Object.create(AI);return Ae.toFlatObject(e,s,function(c){return c!==Error.prototype},o=>o!=="isAxiosError"),bt.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const fne=null;function fE(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function OI(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function CR(e,t,r){return e?e.concat(t).map(function(i,a){return i=OI(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function hne(e){return Ae.isArray(e)&&!e.some(fE)}const dne=Ae.toFlatObject(Ae,{},null,function(t){return/^is[A-Z]/.test(t)});function Mx(e,t,r){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ae.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,_){return!Ae.isUndefined(_[x])});const n=r.metaTokens,i=r.visitor||h,a=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&Ae.isSpecCompliantForm(t);if(!Ae.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(Ae.isDate(y))return y.toISOString();if(Ae.isBoolean(y))return y.toString();if(!c&&Ae.isBlob(y))throw new bt("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(y)||Ae.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y,x,_){let w=y;if(y&&!_&&typeof y=="object"){if(Ae.endsWith(x,"{}"))x=n?x:x.slice(0,-2),y=JSON.stringify(y);else if(Ae.isArray(y)&&hne(y)||(Ae.isFileList(y)||Ae.endsWith(x,"[]"))&&(w=Ae.toArray(y)))return x=OI(x),w.forEach(function(S,O){!(Ae.isUndefined(S)||S===null)&&t.append(s===!0?CR([x],O,a):s===null?x:x+"[]",f(S))}),!1}return fE(y)?!0:(t.append(CR(_,x,a),f(y)),!1)}const p=[],m=Object.assign(dne,{defaultVisitor:h,convertValue:f,isVisitable:fE});function g(y,x){if(!Ae.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(y),Ae.forEach(y,function(w,T){(!(Ae.isUndefined(w)||w===null)&&i.call(t,w,Ae.isString(T)?T.trim():T,x,m))===!0&&g(w,x?x.concat(T):[T])}),p.pop()}}if(!Ae.isObject(e))throw new TypeError("data must be an object");return g(e),t}function OR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function RA(e,t){this._pairs=[],e&&Mx(e,this,t)}const kI=RA.prototype;kI.append=function(t,r){this._pairs.push([t,r])};kI.toString=function(t){const r=t?function(n){return t.call(this,n,OR)}:OR;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function pne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function DI(e,t,r){if(!t)return e;const n=r&&r.encode||pne;Ae.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(i?a=i(t,r):a=Ae.isURLSearchParams(t)?t.toString():new RA(t,r).toString(n),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class kR{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ae.forEach(this.handlers,function(n){n!==null&&t(n)})}}const PI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mne=typeof URLSearchParams<"u"?URLSearchParams:RA,gne=typeof FormData<"u"?FormData:null,vne=typeof Blob<"u"?Blob:null,xne={isBrowser:!0,classes:{URLSearchParams:mne,FormData:gne,Blob:vne},protocols:["http","https","file","blob","url","data"]},NA=typeof window<"u"&&typeof document<"u",hE=typeof navigator=="object"&&navigator||void 0,yne=NA&&(!hE||["ReactNative","NativeScript","NS"].indexOf(hE.product)<0),_ne=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bne=NA&&window.location.href||"http://localhost",wne=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:NA,hasStandardBrowserEnv:yne,hasStandardBrowserWebWorkerEnv:_ne,navigator:hE,origin:bne},Symbol.toStringTag,{value:"Module"})),wi={...wne,...xne};function Sne(e,t){return Mx(e,new wi.classes.URLSearchParams,{visitor:function(r,n,i,a){return wi.isNode&&Ae.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function Ene(e){return Ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tne(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}function MI(e){function t(r,n,i,a){let s=r[a++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),c=a>=r.length;return s=!s&&Ae.isArray(i)?i.length:s,c?(Ae.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!o):((!i[s]||!Ae.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],a)&&Ae.isArray(i[s])&&(i[s]=Tne(i[s])),!o)}if(Ae.isFormData(e)&&Ae.isFunction(e.entries)){const r={};return Ae.forEachEntry(e,(n,i)=>{t(Ene(n),i,r,0)}),r}return null}function Ane(e,t,r){if(Ae.isString(e))try{return(t||JSON.parse)(e),Ae.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const lm={transitional:PI,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=Ae.isObject(t);if(a&&Ae.isHTMLForm(t)&&(t=new FormData(t)),Ae.isFormData(t))return i?JSON.stringify(MI(t)):t;if(Ae.isArrayBuffer(t)||Ae.isBuffer(t)||Ae.isStream(t)||Ae.isFile(t)||Ae.isBlob(t)||Ae.isReadableStream(t))return t;if(Ae.isArrayBufferView(t))return t.buffer;if(Ae.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Sne(t,this.formSerializer).toString();if((o=Ae.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Mx(o?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),Ane(t)):t}],transformResponse:[function(t){const r=this.transitional||lm.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(Ae.isResponse(t)||Ae.isReadableStream(t))return t;if(t&&Ae.isString(t)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?bt.from(o,bt.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wi.classes.FormData,Blob:wi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(["delete","get","head","post","put","patch"],e=>{lm.headers[e]={}});const Cne=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),One=e=>{const t={};let r,n,i;return e&&e.split(`
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Cne[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},DR=Symbol("internals");function cd(e){return e&&String(e).trim().toLowerCase()}function Gg(e){return e===!1||e==null?e:Ae.isArray(e)?e.map(Gg):String(e)}function kne(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Dne=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mb(e,t,r,n,i){if(Ae.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!Ae.isString(t)){if(Ae.isString(n))return t.indexOf(n)!==-1;if(Ae.isRegExp(n))return n.test(t)}}function Pne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Mne(e,t){const r=Ae.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,s){return this[n].call(this,t,i,a,s)},configurable:!0})})}let ua=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(o,c,f){const h=cd(c);if(!h)throw new Error("header name must be a non-empty string");const p=Ae.findKey(i,h);(!p||i[p]===void 0||f===!0||f===void 0&&i[p]!==!1)&&(i[p||c]=Gg(o))}const s=(o,c)=>Ae.forEach(o,(f,h)=>a(f,h,c));if(Ae.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(Ae.isString(t)&&(t=t.trim())&&!Dne(t))s(One(t),r);else if(Ae.isObject(t)&&Ae.isIterable(t)){let o={},c,f;for(const h of t){if(!Ae.isArray(h))throw TypeError("Object iterator must return a key-value pair");o[f=h[0]]=(c=o[f])?Ae.isArray(c)?[...c,h[1]]:[c,h[1]]:h[1]}s(o,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=cd(t),t){const n=Ae.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return kne(i);if(Ae.isFunction(r))return r.call(this,i,n);if(Ae.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=cd(t),t){const n=Ae.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||mb(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(s){if(s=cd(s),s){const o=Ae.findKey(n,s);o&&(!r||mb(n,n[o],o,r))&&(delete n[o],i=!0)}}return Ae.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||mb(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return Ae.forEach(this,(i,a)=>{const s=Ae.findKey(n,a);if(s){r[s]=Gg(i),delete r[a];return}const o=t?Pne(a):String(a).trim();o!==a&&delete r[a],r[o]=Gg(i),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ae.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&Ae.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[DR]=this[DR]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=cd(s);n[o]||(Mne(i,s),n[o]=!0)}return Ae.isArray(t)?t.forEach(a):a(t),this}};ua.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ae.reduceDescriptors(ua.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Ae.freezeMethods(ua);function gb(e,t){const r=this||lm,n=t||r,i=ua.from(n.headers);let a=n.data;return Ae.forEach(e,function(o){a=o.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function RI(e){return!!(e&&e.__CANCEL__)}function Y0(e,t,r){bt.call(this,e??"canceled",bt.ERR_CANCELED,t,r),this.name="CanceledError"}Ae.inherits(Y0,bt,{__CANCEL__:!0});function NI(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new bt("Request failed with status code "+r.status,[bt.ERR_BAD_REQUEST,bt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Rne(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nne(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),h=n[a];s||(s=f),r[i]=c,n[i]=f;let p=a,m=0;for(;p!==i;)m+=r[p++],p=p%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),f-s<t)return;const g=h&&f-h;return g?Math.round(m*1e3/g):void 0}}function Fne(e,t){let r=0,n=1e3/t,i,a;const s=(f,h=Date.now())=>{r=h,i=null,a&&(clearTimeout(a),a=null),e(...f)};return[(...f)=>{const h=Date.now(),p=h-r;p>=n?s(f,h):(i=f,a||(a=setTimeout(()=>{a=null,s(i)},n-p)))},()=>i&&s(i)]}const wv=(e,t,r=3)=>{let n=0;const i=Nne(50,250);return Fne(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,c=s-n,f=i(c),h=s<=o;n=s;const p={loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:f||void 0,estimated:f&&o&&h?(o-s)/f:void 0,event:a,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(p)},r)},PR=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},MR=e=>(...t)=>Ae.asap(()=>e(...t)),Lne=wi.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,wi.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(wi.origin),wi.navigator&&/(msie|trident)/i.test(wi.navigator.userAgent)):()=>!0,Ine=wi.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const s=[e+"="+encodeURIComponent(t)];Ae.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Ae.isString(n)&&s.push("path="+n),Ae.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Bne(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jne(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function FI(e,t,r){let n=!Bne(t);return e&&(n||r==!1)?jne(e,t):t}const RR=e=>e instanceof ua?{...e}:e;function Nu(e,t){t=t||{};const r={};function n(f,h,p,m){return Ae.isPlainObject(f)&&Ae.isPlainObject(h)?Ae.merge.call({caseless:m},f,h):Ae.isPlainObject(h)?Ae.merge({},h):Ae.isArray(h)?h.slice():h}function i(f,h,p,m){if(Ae.isUndefined(h)){if(!Ae.isUndefined(f))return n(void 0,f,p,m)}else return n(f,h,p,m)}function a(f,h){if(!Ae.isUndefined(h))return n(void 0,h)}function s(f,h){if(Ae.isUndefined(h)){if(!Ae.isUndefined(f))return n(void 0,f)}else return n(void 0,h)}function o(f,h,p){if(p in t)return n(f,h);if(p in e)return n(void 0,f)}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(f,h,p)=>i(RR(f),RR(h),p,!0)};return Ae.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||i,m=p(e[h],t[h],h);Ae.isUndefined(m)&&p!==o||(r[h]=m)}),r}const LI=e=>{const t=Nu({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;t.headers=s=ua.from(s),t.url=DI(FI(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let c;if(Ae.isFormData(r)){if(wi.hasStandardBrowserEnv||wi.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[f,...h]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...h].join("; "))}}if(wi.hasStandardBrowserEnv&&(n&&Ae.isFunction(n)&&(n=n(t)),n||n!==!1&&Lne(t.url))){const f=i&&a&&Ine.read(a);f&&s.set(i,f)}return t},Une=typeof XMLHttpRequest<"u",zne=Une&&function(e){return new Promise(function(r,n){const i=LI(e);let a=i.data;const s=ua.from(i.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:f}=i,h,p,m,g,y;function x(){g&&g(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function w(){if(!_)return;const S=ua.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:S,config:e,request:_};NI(function(D){r(D),x()},function(D){n(D),x()},C),_=null}"onloadend"in _?_.onloadend=w:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(w)},_.onabort=function(){_&&(n(new bt("Request aborted",bt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){n(new bt("Network Error",bt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||PI;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),n(new bt(O,C.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,e,_)),_=null},a===void 0&&s.setContentType(null),"setRequestHeader"in _&&Ae.forEach(s.toJSON(),function(O,C){_.setRequestHeader(C,O)}),Ae.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),o&&o!=="json"&&(_.responseType=i.responseType),f&&([m,y]=wv(f,!0),_.addEventListener("progress",m)),c&&_.upload&&([p,g]=wv(c),_.upload.addEventListener("progress",p),_.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(h=S=>{_&&(n(!S||S.type?new Y0(null,e,_):S),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const T=Rne(i.url);if(T&&wi.protocols.indexOf(T)===-1){n(new bt("Unsupported protocol "+T+":",bt.ERR_BAD_REQUEST,e));return}_.send(a||null)})},Vne=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(f){if(!i){i=!0,o();const h=f instanceof Error?f:this.reason;n.abort(h instanceof bt?h:new Y0(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new bt(`timeout ${t} of ms exceeded`,bt.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),e=null)};e.forEach(f=>f.addEventListener("abort",a));const{signal:c}=n;return c.unsubscribe=()=>Ae.asap(o),c}},Hne=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},$ne=async function*(e,t){for await(const r of Wne(e))yield*Hne(r,t)},Wne=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},NR=(e,t,r,n)=>{const i=$ne(e,t);let a=0,s,o=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:f,value:h}=await i.next();if(f){o(),c.close();return}let p=h.byteLength;if(r){let m=a+=p;r(m)}c.enqueue(new Uint8Array(h))}catch(f){throw o(f),f}},cancel(c){return o(c),i.return()}},{highWaterMark:2})},Rx=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",II=Rx&&typeof ReadableStream=="function",qne=Rx&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),BI=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gne=II&&BI(()=>{let e=!1;const t=new Request(wi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),FR=64*1024,dE=II&&BI(()=>Ae.isReadableStream(new Response("").body)),Sv={stream:dE&&(e=>e.body)};Rx&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sv[t]&&(Sv[t]=Ae.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new bt(`Response type '${t}' is not supported`,bt.ERR_NOT_SUPPORT,n)})})})(new Response);const Xne=async e=>{if(e==null)return 0;if(Ae.isBlob(e))return e.size;if(Ae.isSpecCompliantForm(e))return(await new Request(wi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ae.isArrayBufferView(e)||Ae.isArrayBuffer(e))return e.byteLength;if(Ae.isURLSearchParams(e)&&(e=e+""),Ae.isString(e))return(await qne(e)).byteLength},Yne=async(e,t)=>{const r=Ae.toFiniteNumber(e.getContentLength());return r??Xne(t)},Kne=Rx&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:s,onDownloadProgress:o,onUploadProgress:c,responseType:f,headers:h,withCredentials:p="same-origin",fetchOptions:m}=LI(e);f=f?(f+"").toLowerCase():"text";let g=Vne([i,a&&a.toAbortSignal()],s),y;const x=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let _;try{if(c&&Gne&&r!=="get"&&r!=="head"&&(_=await Yne(h,n))!==0){let C=new Request(t,{method:"POST",body:n,duplex:"half"}),k;if(Ae.isFormData(n)&&(k=C.headers.get("content-type"))&&h.setContentType(k),C.body){const[D,M]=PR(_,wv(MR(c)));n=NR(C.body,FR,D,M)}}Ae.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;y=new Request(t,{...m,signal:g,method:r.toUpperCase(),headers:h.normalize().toJSON(),body:n,duplex:"half",credentials:w?p:void 0});let T=await fetch(y,m);const S=dE&&(f==="stream"||f==="response");if(dE&&(o||S&&x)){const C={};["status","statusText","headers"].forEach(N=>{C[N]=T[N]});const k=Ae.toFiniteNumber(T.headers.get("content-length")),[D,M]=o&&PR(k,wv(MR(o),!0))||[];T=new Response(NR(T.body,FR,D,()=>{M&&M(),x&&x()}),C)}f=f||"text";let O=await Sv[Ae.findKey(Sv,f)||"text"](T,e);return!S&&x&&x(),await new Promise((C,k)=>{NI(C,k,{data:O,headers:ua.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:y})})}catch(w){throw x&&x(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new bt("Network Error",bt.ERR_NETWORK,e,y),{cause:w.cause||w}):bt.from(w,w&&w.code,e,y)}}),pE={http:fne,xhr:zne,fetch:Kne};Ae.forEach(pE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const LR=e=>`- ${e}`,Zne=e=>Ae.isFunction(e)||e===null||e===!1,jI={getAdapter:e=>{e=Ae.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a<t;a++){r=e[a];let s;if(n=r,!Zne(r)&&(n=pE[(s=String(r)).toLowerCase()],n===void 0))throw new bt(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+a]=n}if(!n){const a=Object.entries(i).map(([o,c])=>`adapter ${o} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since :
`+a.map(LR).join(`
`):" "+LR(a[0]):"as no adapter specified";throw new bt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:pE};function vb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Y0(null,e)}function IR(e){return vb(e),e.headers=ua.from(e.headers),e.data=gb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jI.getAdapter(e.adapter||lm.adapter)(e).then(function(n){return vb(e),n.data=gb.call(e,e.transformResponse,n),n.headers=ua.from(n.headers),n},function(n){return RI(n)||(vb(e),n&&n.response&&(n.response.data=gb.call(e,e.transformResponse,n.response),n.response.headers=ua.from(n.response.headers))),Promise.reject(n)})}const UI="1.11.0",Nx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const BR={};Nx.transitional=function(t,r,n){function i(a,s){return"[Axios v"+UI+"] Transitional option '"+a+"'"+s+(n?". "+n:"")}return(a,s,o)=>{if(t===!1)throw new bt(i(s," has been removed"+(r?" in "+r:"")),bt.ERR_DEPRECATED);return r&&!BR[s]&&(BR[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,s,o):!0}};Nx.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Qne(e,t,r){if(typeof e!="object")throw new bt("options must be an object",bt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],s=t[a];if(s){const o=e[a],c=o===void 0||s(o,a,e);if(c!==!0)throw new bt("option "+a+" must be "+c,bt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new bt("Unknown option "+a,bt.ERR_BAD_OPTION)}}const Xg={assertOptions:Qne,validators:Nx},to=Xg.validators;let bu=class{constructor(t){this.defaults=t||{},this.interceptors={request:new kR,response:new kR}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Nu(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&Xg.assertOptions(n,{silentJSONParsing:to.transitional(to.boolean),forcedJSONParsing:to.transitional(to.boolean),clarifyTimeoutError:to.transitional(to.boolean)},!1),i!=null&&(Ae.isFunction(i)?r.paramsSerializer={serialize:i}:Xg.assertOptions(i,{encode:to.function,serialize:to.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Xg.assertOptions(r,{baseUrl:to.spelling("baseURL"),withXsrfToken:to.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=a&&Ae.merge(a.common,a[r.method]);a&&Ae.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=ua.concat(s,a);const o=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(c=c&&x.synchronous,o.unshift(x.fulfilled,x.rejected))});const f=[];this.interceptors.response.forEach(function(x){f.push(x.fulfilled,x.rejected)});let h,p=0,m;if(!c){const y=[IR.bind(this),void 0];for(y.unshift(...o),y.push(...f),m=y.length,h=Promise.resolve(r);p<m;)h=h.then(y[p++],y[p++]);return h}m=o.length;let g=r;for(p=0;p<m;){const y=o[p++],x=o[p++];try{g=y(g)}catch(_){x.call(this,_);break}}try{h=IR.call(this,g)}catch(y){return Promise.reject(y)}for(p=0,m=f.length;p<m;)h=h.then(f[p++],f[p++]);return h}getUri(t){t=Nu(this.defaults,t);const r=FI(t.baseURL,t.url,t.allowAbsoluteUrls);return DI(r,t.params,t.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(t){bu.prototype[t]=function(r,n){return this.request(Nu(n||{},{method:t,url:r,data:(n||{}).data}))}});Ae.forEach(["post","put","patch"],function(t){function r(n){return function(a,s,o){return this.request(Nu(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}bu.prototype[t]=r(),bu.prototype[t+"Form"]=r(!0)});let Jne=class zI{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{n.subscribe(o),a=o}).then(i);return s.cancel=function(){n.unsubscribe(a)},s},t(function(a,s,o){n.reason||(n.reason=new Y0(a,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new zI(function(i){t=i}),cancel:t}}};function eie(e){return function(r){return e.apply(null,r)}}function tie(e){return Ae.isObject(e)&&e.isAxiosError===!0}const mE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mE).forEach(([e,t])=>{mE[t]=e});function VI(e){const t=new bu(e),r=xI(bu.prototype.request,t);return Ae.extend(r,bu.prototype,t,{allOwnKeys:!0}),Ae.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return VI(Nu(e,i))},r}const Xr=VI(lm);Xr.Axios=bu;Xr.CanceledError=Y0;Xr.CancelToken=Jne;Xr.isCancel=RI;Xr.VERSION=UI;Xr.toFormData=Mx;Xr.AxiosError=bt;Xr.Cancel=Xr.CanceledError;Xr.all=function(t){return Promise.all(t)};Xr.spread=eie;Xr.isAxiosError=tie;Xr.mergeConfig=Nu;Xr.AxiosHeaders=ua;Xr.formToJSON=e=>MI(Ae.isHTMLForm(e)?new FormData(e):e);Xr.getAdapter=jI.getAdapter;Xr.HttpStatusCode=mE;Xr.default=Xr;const{Axios:hOe,AxiosError:dOe,CanceledError:pOe,isCancel:mOe,CancelToken:gOe,VERSION:vOe,all:xOe,Cancel:yOe,isAxiosError:_Oe,spread:bOe,toFormData:wOe,AxiosHeaders:SOe,HttpStatusCode:EOe,formToJSON:TOe,getAdapter:AOe,mergeConfig:COe}=Xr,rie=()=>{const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(()=>{const c=localStorage.getItem("user");return c?JSON.parse(c):null});return{login:async c=>{t(!0),n(null);try{const{data:f}=await Xr.post("https://acoplasticos.com.co:3000/api/v2/login-marketresearch",{username:c},{headers:{"Content-Type":"application/json"}});return localStorage.setItem("loginResponse",JSON.stringify(f)),localStorage.setItem("user",JSON.stringify(f.user)),a(f.user),f}catch(f){return console.error("Error en login:",f),n(f.response?.data?.error||"Error al conectar con el servidor"),null}finally{t(!1)}},logout:()=>{localStorage.removeItem("loginResponse"),localStorage.removeItem("user"),a(null)},loading:e,error:r,user:i}};function nie(){const[e,t]=A.useState(!1),[r,n]=A.useState(""),[i,a]=A.useState(""),s=JF(),{login:o,loading:c,error:f}=rie(),h=async p=>{p.preventDefault();const m=await o(r);m&&m.user&&s("/reportes")};return P.jsxs(P.Fragment,{children:[P.jsxs("section",{className:"login-section",children:[P.jsx("div",{className:"bg-wrapper-1"}),P.jsx("div",{className:"bg-wrapper",children:P.jsx(Hee,{})}),P.jsx("div",{className:"login-wrapper",children:P.jsxs("form",{className:"login-card",autoComplete:"off",onSubmit:h,children:[P.jsxs("picture",{className:"logo-fixed",children:[P.jsx("source",{srcSet:rv,type:"image/svg+xml"}),P.jsx("img",{src:rv,alt:"Logo"})]}),P.jsx("div",{className:"login-title",children:P.jsx(eJ,{text:"Iniciar Sesión",delay:150,animateBy:"words",direction:"top"})}),P.jsx("label",{htmlFor:"username",className:"login-label",children:"Usuario"}),P.jsx("input",{id:"username",name:"username",type:"text",className:"login-input",placeholder:"Usuario",value:r,onChange:p=>n(p.target.value),required:!0}),P.jsx("button",{type:"submit",className:"login-button",disabled:c,children:P.jsx("span",{children:c?"Cargando...":"Iniciar sesión"})}),f&&P.jsx("p",{className:"login-error",children:f})]})})]}),P.jsx("section",{className:"info-section"})]})}function HI(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=HI(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Gt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=HI(e))&&(n&&(n+=" "),n+=t);return n}var xb={},yb={},jR;function iie(){return jR||(jR=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t}(yb)),yb}var _b={},UR;function $I(){return UR||(UR=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t}(_b)),_b}var bb={},zR;function WI(){return zR||(zR=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t}(bb)),bb}var wb={},VR;function FA(){return VR||(VR=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){const n=[],i=r.length;if(i===0)return n;let a=0,s="",o="",c=!1;for(r.charCodeAt(0)===46&&(n.push(""),a++);a<i;){const f=r[a];o?f==="\\"&&a+1<i?(a++,s+=r[a]):f===o?o="":s+=f:c?f==='"'||f==="'"?o=f:f==="]"?(c=!1,n.push(s),s=""):s+=f:f==="["?(c=!0,s&&(n.push(s),s="")):f==="."?s&&(n.push(s),s=""):s+=f,a++}return s&&n.push(s),n}e.toPath=t}(wb)),wb}var HR;function LA(){return HR||(HR=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iie(),r=$I(),n=WI(),i=FA();function a(o,c,f){if(o==null)return f;switch(typeof c){case"string":{if(t.isUnsafeProperty(c))return f;const h=o[c];return h===void 0?r.isDeepKey(c)?a(o,i.toPath(c),f):f:h}case"number":case"symbol":{typeof c=="number"&&(c=n.toKey(c));const h=o[c];return h===void 0?f:h}default:{if(Array.isArray(c))return s(o,c,f);if(Object.is(c?.valueOf(),-0)?c="-0":c=String(c),t.isUnsafeProperty(c))return f;const h=o[c];return h===void 0?f:h}}}function s(o,c,f){if(c.length===0)return f;let h=o;for(let p=0;p<c.length;p++){if(h==null||t.isUnsafeProperty(c[p]))return f;h=h[c[p]]}return h===void 0?f:h}e.get=a}(xb)),xb}var Sb,$R;function aie(){return $R||($R=1,Sb=LA().get),Sb}var sie=aie();const Fu=fl(sie);var Eb={exports:{}},or={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var WR;function oie(){if(WR)return or;WR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(x){if(typeof x=="object"&&x!==null){var _=x.$$typeof;switch(_){case e:switch(x=x.type,x){case r:case i:case n:case c:case f:case m:return x;default:switch(x=x&&x.$$typeof,x){case s:case o:case p:case h:return x;case a:return x;default:return _}}case t:return _}}}return or.ContextConsumer=a,or.ContextProvider=s,or.Element=e,or.ForwardRef=o,or.Fragment=r,or.Lazy=p,or.Memo=h,or.Portal=t,or.Profiler=i,or.StrictMode=n,or.Suspense=c,or.SuspenseList=f,or.isContextConsumer=function(x){return y(x)===a},or.isContextProvider=function(x){return y(x)===s},or.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},or.isForwardRef=function(x){return y(x)===o},or.isFragment=function(x){return y(x)===r},or.isLazy=function(x){return y(x)===p},or.isMemo=function(x){return y(x)===h},or.isPortal=function(x){return y(x)===t},or.isProfiler=function(x){return y(x)===i},or.isStrictMode=function(x){return y(x)===n},or.isSuspense=function(x){return y(x)===c},or.isSuspenseList=function(x){return y(x)===f},or.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===i||x===n||x===c||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===h||x.$$typeof===s||x.$$typeof===a||x.$$typeof===o||x.$$typeof===g||x.getModuleId!==void 0)},or.typeOf=y,or}var qR;function lie(){return qR||(qR=1,Eb.exports=oie()),Eb.exports}var cie=lie(),Ai=e=>e===0?0:e>0?1:-1,Ts=e=>typeof e=="number"&&e!=+e,ou=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ut=e=>(typeof e=="number"||e instanceof Number)&&!Ts(e),_o=e=>ut(e)||typeof e=="string",uie=0,Tp=e=>{var t=++uie;return"".concat(e||"").concat(t)},ja=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ut(t)&&typeof t!="string")return n;var a;if(ou(t)){if(r==null)return n;var s=t.indexOf("%");a=r*parseFloat(t.slice(0,s))/100}else a=+t;return Ts(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},qI=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function Si(e,t,r){return ut(e)&&ut(t)?e+r*(t-e):t}function GI(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Fu(n,t))===r)}var Dn=e=>e===null||typeof e>"u",cm=e=>Dn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),fie=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function IA(e){if(typeof e!="string")return!1;var t=fie;return t.includes(e)}var hie=["viewBox","children"],GR=["points","pathLength"],Tb={svg:hie,polygon:GR,polyline:GR},BA=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(A.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{IA(i)&&(n[i]=a=>r[i](r,a))}),n},die=(e,t,r)=>n=>(e(t,r,n),null),jA=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];IA(i)&&typeof a=="function"&&(n||(n={}),n[i]=die(a,t,r))}),n},pie=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function XI(e){if(typeof e!="string")return!1;var t=pie;return t.includes(e)}function dl(e){var t=Object.entries(e).filter(r=>{var[n]=r;return XI(n)});return Object.fromEntries(t)}var XR=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",YR=null,Ab=null,YI=e=>{if(e===YR&&Array.isArray(Ab))return Ab;var t=[];return A.Children.forEach(e,r=>{Dn(r)||(cie.isFragment(r)?t=t.concat(YI(r.props.children)):t.push(r))}),Ab=t,YR=e,t};function KI(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>XR(i)):n=[XR(t)],YI(e).forEach(i=>{var a=Fu(i,"type.displayName")||Fu(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}var ZI=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,mie=(e,t,r,n)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var a=(i=n&&Tb?.[n])!==null&&i!==void 0?i:[],s=t.startsWith("data-"),o=typeof e!="function"&&(!!n&&a.includes(t)||XI(t)),c=!!r&&IA(t);return s||o||c},Yr=(e,t,r)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(A.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var i={};return Object.keys(n).forEach(a=>{var s;mie((s=n)===null||s===void 0?void 0:s[a],a,t,r)&&(i[a]=n[a])}),i},gie=["children","width","height","viewBox","className","style","title","desc"];function gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gE.apply(null,arguments)}function vie(e,t){if(e==null)return{};var r,n,i=xie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function xie(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var UA=A.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:s,style:o,title:c,desc:f}=e,h=vie(e,gie),p=a||{width:n,height:i,x:0,y:0},m=Gt("recharts-surface",s);return A.createElement("svg",gE({},Yr(h,!0,"svg"),{className:m,width:n,height:i,style:o,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),A.createElement("title",null,c),A.createElement("desc",null,f),r)}),yie=["children","className"];function vE(){return vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vE.apply(null,arguments)}function _ie(e,t){if(e==null)return{};var r,n,i=bie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bie(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ha=A.forwardRef((e,t)=>{var{children:r,className:n}=e,i=_ie(e,yie),a=Gt("recharts-layer",n);return A.createElement("g",vE({className:a},Yr(i,!0),{ref:t}),r)}),QI=A.createContext(null),wie=()=>A.useContext(QI);function gr(e){return function(){return e}}const JI=Math.cos,Ev=Math.sin,Ys=Math.sqrt,Tv=Math.PI,Fx=2*Tv,xE=Math.PI,yE=2*xE,Qc=1e-6,Sie=yE-Qc;function eB(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Eie(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return eB;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Tie{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?eB:Eie(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,c=n-t,f=i-r,h=s-t,p=o-r,m=h*h+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>Qc)if(!(Math.abs(p*c-f*h)>Qc)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let g=n-s,y=i-o,x=c*c+f*f,_=g*g+y*y,w=Math.sqrt(x),T=Math.sqrt(m),S=a*Math.tan((xE-Math.acos((x+m-_)/(2*w*T)))/2),O=S/T,C=S/w;Math.abs(O-1)>Qc&&this._append`L${t+O*h},${r+O*p}`,this._append`A${a},${a},0,0,${+(p*g>h*y)},${this._x1=t+C*c},${this._y1=r+C*f}`}}arc(t,r,n,i,a,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),c=n*Math.sin(i),f=t+o,h=r+c,p=1^s,m=s?i-a:a-i;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>Qc||Math.abs(this._y1-h)>Qc)&&this._append`L${f},${h}`,n&&(m<0&&(m=m%yE+yE),m>Sie?this._append`A${n},${n},0,1,${p},${t-o},${r-c}A${n},${n},0,1,${p},${this._x1=f},${this._y1=h}`:m>Qc&&this._append`A${n},${n},0,${+(m>=xE)},${p},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function zA(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Tie(t)}function VA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tB(e){this._context=e}tB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Lx(e){return new tB(e)}function rB(e){return e[0]}function nB(e){return e[1]}function iB(e,t){var r=gr(!0),n=null,i=Lx,a=null,s=zA(o);e=typeof e=="function"?e:e===void 0?rB:gr(e),t=typeof t=="function"?t:t===void 0?nB:gr(t);function o(c){var f,h=(c=VA(c)).length,p,m=!1,g;for(n==null&&(a=i(g=s())),f=0;f<=h;++f)!(f<h&&r(p=c[f],f,c))===m&&((m=!m)?a.lineStart():a.lineEnd()),m&&a.point(+e(p,f,c),+t(p,f,c));if(g)return a=null,g+""||null}return o.x=function(c){return arguments.length?(e=typeof c=="function"?c:gr(+c),o):e},o.y=function(c){return arguments.length?(t=typeof c=="function"?c:gr(+c),o):t},o.defined=function(c){return arguments.length?(r=typeof c=="function"?c:gr(!!c),o):r},o.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),o):i},o.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),o):n},o}function ng(e,t,r){var n=null,i=gr(!0),a=null,s=Lx,o=null,c=zA(f);e=typeof e=="function"?e:e===void 0?rB:gr(+e),t=typeof t=="function"?t:gr(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?nB:gr(+r);function f(p){var m,g,y,x=(p=VA(p)).length,_,w=!1,T,S=new Array(x),O=new Array(x);for(a==null&&(o=s(T=c())),m=0;m<=x;++m){if(!(m<x&&i(_=p[m],m,p))===w)if(w=!w)g=m,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),y=m-1;y>=g;--y)o.point(S[y],O[y]);o.lineEnd(),o.areaEnd()}w&&(S[m]=+e(_,m,p),O[m]=+t(_,m,p),o.point(n?+n(_,m,p):S[m],r?+r(_,m,p):O[m]))}if(T)return o=null,T+""||null}function h(){return iB().defined(i).curve(s).context(a)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:gr(+p),n=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:gr(+p),f):e},f.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:gr(+p),f):n},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:gr(+p),r=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:gr(+p),f):t},f.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:gr(+p),f):r},f.lineX0=f.lineY0=function(){return h().x(e).y(t)},f.lineY1=function(){return h().x(e).y(r)},f.lineX1=function(){return h().x(n).y(t)},f.defined=function(p){return arguments.length?(i=typeof p=="function"?p:gr(!!p),f):i},f.curve=function(p){return arguments.length?(s=p,a!=null&&(o=s(a)),f):s},f.context=function(p){return arguments.length?(p==null?a=o=null:o=s(a=p),f):a},f}class aB{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Aie(e){return new aB(e,!0)}function Cie(e){return new aB(e,!1)}const HA={draw(e,t){const r=Ys(t/Tv);e.moveTo(r,0),e.arc(0,0,r,0,Fx)}},Oie={draw(e,t){const r=Ys(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},sB=Ys(1/3),kie=sB*2,Die={draw(e,t){const r=Ys(t/kie),n=r*sB;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Pie={draw(e,t){const r=Ys(t),n=-r/2;e.rect(n,n,r,r)}},Mie=.8908130915292852,oB=Ev(Tv/10)/Ev(7*Tv/10),Rie=Ev(Fx/10)*oB,Nie=-JI(Fx/10)*oB,Fie={draw(e,t){const r=Ys(t*Mie),n=Rie*r,i=Nie*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const s=Fx*a/5,o=JI(s),c=Ev(s);e.lineTo(c*r,-o*r),e.lineTo(o*n-c*i,c*n+o*i)}e.closePath()}},Cb=Ys(3),Lie={draw(e,t){const r=-Ys(t/(Cb*3));e.moveTo(0,r*2),e.lineTo(-Cb*r,-r),e.lineTo(Cb*r,-r),e.closePath()}},ns=-.5,is=Ys(3)/2,_E=1/Ys(12),Iie=(_E/2+1)*3,Bie={draw(e,t){const r=Ys(t/Iie),n=r/2,i=r*_E,a=n,s=r*_E+r,o=-a,c=s;e.moveTo(n,i),e.lineTo(a,s),e.lineTo(o,c),e.lineTo(ns*n-is*i,is*n+ns*i),e.lineTo(ns*a-is*s,is*a+ns*s),e.lineTo(ns*o-is*c,is*o+ns*c),e.lineTo(ns*n+is*i,ns*i-is*n),e.lineTo(ns*a+is*s,ns*s-is*a),e.lineTo(ns*o+is*c,ns*c-is*o),e.closePath()}};function jie(e,t){let r=null,n=zA(i);e=typeof e=="function"?e:gr(e||HA),t=typeof t=="function"?t:gr(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:gr(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:gr(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Av(){}function Cv(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function lB(e){this._context=e}lB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Cv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uie(e){return new lB(e)}function cB(e){this._context=e}cB.prototype={areaStart:Av,areaEnd:Av,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Cv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zie(e){return new cB(e)}function uB(e){this._context=e}uB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Cv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vie(e){return new uB(e)}function fB(e){this._context=e}fB.prototype={areaStart:Av,areaEnd:Av,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Hie(e){return new fB(e)}function KR(e){return e<0?-1:1}function ZR(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),o=(a*i+s*n)/(n+i);return(KR(a)+KR(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function QR(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ob(e,t,r){var n=e._x0,i=e._y0,a=e._x1,s=e._y1,o=(a-n)/3;e._context.bezierCurveTo(n+o,i+o*t,a-o,s-o*r,a,s)}function Ov(e){this._context=e}Ov.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ob(this,this._t0,QR(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ob(this,QR(this,r=ZR(this,e,t)),r);break;default:Ob(this,this._t0,r=ZR(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function hB(e){this._context=new dB(e)}(hB.prototype=Object.create(Ov.prototype)).point=function(e,t){Ov.prototype.point.call(this,t,e)};function dB(e){this._context=e}dB.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function $ie(e){return new Ov(e)}function Wie(e){return new hB(e)}function pB(e){this._context=e}pB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=JR(e),i=JR(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function JR(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function qie(e){return new pB(e)}function Ix(e,t){this._context=e,this._t=t}Ix.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Gie(e){return new Ix(e,.5)}function Xie(e){return new Ix(e,0)}function Yie(e){return new Ix(e,1)}function k0(e,t){if((s=e.length)>1)for(var r=1,n,i,a=e[t[0]],s,o=a.length;r<s;++r)for(i=a,a=e[t[r]],n=0;n<o;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function bE(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Kie(e,t){return e[t]}function Zie(e){const t=[];return t.key=e,t}function Qie(){var e=gr([]),t=bE,r=k0,n=Kie;function i(a){var s=Array.from(e.apply(this,arguments),Zie),o,c=s.length,f=-1,h;for(const p of a)for(o=0,++f;o<c;++o)(s[o][f]=[0,+n(p,s[o].key,f,a)]).data=p;for(o=0,h=VA(t(s));o<c;++o)s[h[o]].index=o;return r(s,h),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:gr(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:gr(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?bE:typeof a=="function"?a:gr(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??k0,i):r},i}function Jie(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,s;i<a;++i){for(s=r=0;r<n;++r)s+=e[r][i][1]||0;if(s)for(r=0;r<n;++r)e[r][i][1]/=s}k0(e,t)}}function eae(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var s=0,o=0;s<i;++s)o+=e[s][r][1]||0;n[r][1]+=n[r][0]=-o/2}k0(e,t)}}function tae(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,s;n<a;++n){for(var o=0,c=0,f=0;o<s;++o){for(var h=e[t[o]],p=h[n][1]||0,m=h[n-1][1]||0,g=(p-m)/2,y=0;y<o;++y){var x=e[t[y]],_=x[n][1]||0,w=x[n-1][1]||0;g+=_-w}c+=p,f+=g*p}i[n-1][1]+=i[n-1][0]=r,c&&(r-=f/c)}i[n-1][1]+=i[n-1][0]=r,k0(e,t)}}var rae=["type","size","sizeType"];function wE(){return wE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wE.apply(null,arguments)}function e6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function t6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e6(Object(r),!0).forEach(function(n){nae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nae(e,t,r){return(t=iae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iae(e){var t=aae(e,"string");return typeof t=="symbol"?t:t+""}function aae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sae(e,t){if(e==null)return{};var r,n,i=oae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function oae(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var mB={symbolCircle:HA,symbolCross:Oie,symbolDiamond:Die,symbolSquare:Pie,symbolStar:Fie,symbolTriangle:Lie,symbolWye:Bie},lae=Math.PI/180,cae=e=>{var t="symbol".concat(cm(e));return mB[t]||HA},uae=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*lae;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},fae=(e,t)=>{mB["symbol".concat(cm(e))]=t},$A=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=sae(e,rae),a=t6(t6({},i),{},{type:t,size:r,sizeType:n}),s="circle";typeof t=="string"&&(s=t);var o=()=>{var m=cae(s),g=jie().type(m).size(uae(r,n,s));return g()},{className:c,cx:f,cy:h}=a,p=Yr(a,!0);return f===+f&&h===+h&&r===+r?A.createElement("path",wE({},p,{className:Gt("recharts-symbols",c),transform:"translate(".concat(f,", ").concat(h,")"),d:o()})):null};$A.registerSymbol=fae;function SE(){return SE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},SE.apply(null,arguments)}function r6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r6(Object(r),!0).forEach(function(n){WA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WA(e,t,r){return(t=dae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dae(e){var t=pae(e,"string");return typeof t=="symbol"?t:t+""}function pae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var as=32;class qA extends A.PureComponent{renderIcon(t,r){var{inactiveColor:n}=this.props,i=as/2,a=as/6,s=as/3,o=t.inactive?n:t.color,c=r??t.type;if(c==="none")return null;if(c==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:i,x2:as,y2:i,className:"recharts-legend-icon"});if(c==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(i,"h").concat(s,`
            A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(i,`
            H`).concat(as,"M").concat(2*s,",").concat(i,`
            A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(c==="rect")return A.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(as/8,"h").concat(as,"v").concat(as*3/4,"h").concat(-as,"z"),className:"recharts-legend-icon"});if(A.isValidElement(t.legendIcon)){var f=hae({},t);return delete f.legendIcon,A.cloneElement(t.legendIcon,f)}return A.createElement($A,{fill:o,cx:i,cy:i,size:as,sizeType:"diameter",type:c})}renderItems(){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:a,iconType:s}=this.props,o={x:0,y:0,width:as,height:as},c={display:n==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((h,p)=>{var m=h.formatter||i,g=Gt({"recharts-legend-item":!0,["legend-item-".concat(p)]:!0,inactive:h.inactive});if(h.type==="none")return null;var y=h.inactive?a:h.color,x=m?m(h.value,h,p):h.value;return A.createElement("li",SE({className:g,style:c,key:"legend-item-".concat(p)},jA(this.props,h,p)),A.createElement(UA,{width:r,height:r,viewBox:o,style:f,"aria-label":"".concat(x," legend icon")},this.renderIcon(h,s)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},x))})}render(){var{payload:t,layout:r,align:n}=this.props;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:r==="horizontal"?n:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}WA(qA,"displayName","Legend");WA(qA,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var kb={},Db={},n6;function mae(){return n6||(n6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const s=r[a],o=n(s);i.has(o)||i.set(o,s)}return Array.from(i.values())}e.uniqBy=t}(Db)),Db}var Pb={},i6;function gB(){return i6||(i6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t}(Pb)),Pb}var Mb={},Rb={},Nb={},a6;function gae(){return a6||(a6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t}(Nb)),Nb}var s6;function GA(){return s6||(s6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gae();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r}(Rb)),Rb}var Fb={},o6;function vae(){return o6||(o6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t}(Fb)),Fb}var l6;function xae(){return l6||(l6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GA(),r=vae();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n}(Mb)),Mb}var Lb={},Ib={},c6;function yae(){return c6||(c6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LA();function r(n){return function(i){return t.get(i,n)}}e.property=r}(Ib)),Ib}var Bb={},jb={},Ub={},zb={},u6;function vB(){return u6||(u6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t}(zb)),zb}var Vb={},f6;function xB(){return f6||(f6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t}(Vb)),Vb}var Hb={},h6;function yB(){return h6||(h6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t}(Hb)),Hb}var d6;function _ae(){return d6||(d6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XA(),r=vB(),n=xB(),i=yB();function a(p,m,g){return typeof g!="function"?t.isMatch(p,m):s(p,m,function y(x,_,w,T,S,O){const C=g(x,_,w,T,S,O);return C!==void 0?!!C:s(x,_,y,O)},new Map)}function s(p,m,g,y){if(m===p)return!0;switch(typeof m){case"object":return o(p,m,g,y);case"function":return Object.keys(m).length>0?s(p,{...m},g,y):i.eq(p,m);default:return r.isObject(p)?typeof m=="string"?m==="":!0:i.eq(p,m)}}function o(p,m,g,y){if(m==null)return!0;if(Array.isArray(m))return f(p,m,g,y);if(m instanceof Map)return c(p,m,g,y);if(m instanceof Set)return h(p,m,g,y);const x=Object.keys(m);if(p==null)return x.length===0;if(x.length===0)return!0;if(y&&y.has(m))return y.get(m)===p;y&&y.set(m,p);try{for(let _=0;_<x.length;_++){const w=x[_];if(!n.isPrimitive(p)&&!(w in p)||m[w]===void 0&&p[w]!==void 0||m[w]===null&&p[w]!==null||!g(p[w],m[w],w,p,m,y))return!1}return!0}finally{y&&y.delete(m)}}function c(p,m,g,y){if(m.size===0)return!0;if(!(p instanceof Map))return!1;for(const[x,_]of m.entries()){const w=p.get(x);if(g(w,_,x,p,m,y)===!1)return!1}return!0}function f(p,m,g,y){if(m.length===0)return!0;if(!Array.isArray(p))return!1;const x=new Set;for(let _=0;_<m.length;_++){const w=m[_];let T=!1;for(let S=0;S<p.length;S++){if(x.has(S))continue;const O=p[S];let C=!1;if(g(O,w,_,p,m,y)&&(C=!0),C){x.add(S),T=!0;break}}if(!T)return!1}return!0}function h(p,m,g,y){return m.size===0?!0:p instanceof Set?f([...p],[...m],g,y):!1}e.isMatchWith=a,e.isSetMatch=h}(Ub)),Ub}var p6;function XA(){return p6||(p6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_ae();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r}(jb)),jb}var $b={},Wb={},qb={},m6;function bae(){return m6||(m6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t}(qb)),qb}var Gb={},g6;function _B(){return g6||(g6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t}(Gb)),Gb}var Xb={},v6;function bB(){return v6||(v6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",s="[object Symbol]",o="[object Date]",c="[object Map]",f="[object Set]",h="[object Array]",p="[object Function]",m="[object ArrayBuffer]",g="[object Object]",y="[object Error]",x="[object DataView]",_="[object Uint8Array]",w="[object Uint8ClampedArray]",T="[object Uint16Array]",S="[object Uint32Array]",O="[object BigUint64Array]",C="[object Int8Array]",k="[object Int16Array]",D="[object Int32Array]",M="[object BigInt64Array]",N="[object Float32Array]",z="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=m,e.arrayTag=h,e.bigInt64ArrayTag=M,e.bigUint64ArrayTag=O,e.booleanTag=i,e.dataViewTag=x,e.dateTag=o,e.errorTag=y,e.float32ArrayTag=N,e.float64ArrayTag=z,e.functionTag=p,e.int16ArrayTag=k,e.int32ArrayTag=D,e.int8ArrayTag=C,e.mapTag=c,e.numberTag=n,e.objectTag=g,e.regexpTag=t,e.setTag=f,e.stringTag=r,e.symbolTag=s,e.uint16ArrayTag=T,e.uint32ArrayTag=S,e.uint8ArrayTag=_,e.uint8ClampedArrayTag=w}(Xb)),Xb}var Yb={},x6;function wae(){return x6||(x6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t}(Yb)),Yb}var y6;function wB(){return y6||(y6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bae(),r=_B(),n=bB(),i=xB(),a=wae();function s(h,p){return o(h,void 0,h,new Map,p)}function o(h,p,m,g=new Map,y=void 0){const x=y?.(h,p,m,g);if(x!==void 0)return x;if(i.isPrimitive(h))return h;if(g.has(h))return g.get(h);if(Array.isArray(h)){const _=new Array(h.length);g.set(h,_);for(let w=0;w<h.length;w++)_[w]=o(h[w],w,m,g,y);return Object.hasOwn(h,"index")&&(_.index=h.index),Object.hasOwn(h,"input")&&(_.input=h.input),_}if(h instanceof Date)return new Date(h.getTime());if(h instanceof RegExp){const _=new RegExp(h.source,h.flags);return _.lastIndex=h.lastIndex,_}if(h instanceof Map){const _=new Map;g.set(h,_);for(const[w,T]of h)_.set(w,o(T,w,m,g,y));return _}if(h instanceof Set){const _=new Set;g.set(h,_);for(const w of h)_.add(o(w,void 0,m,g,y));return _}if(typeof Buffer<"u"&&Buffer.isBuffer(h))return h.subarray();if(a.isTypedArray(h)){const _=new(Object.getPrototypeOf(h)).constructor(h.length);g.set(h,_);for(let w=0;w<h.length;w++)_[w]=o(h[w],w,m,g,y);return _}if(h instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&h instanceof SharedArrayBuffer)return h.slice(0);if(h instanceof DataView){const _=new DataView(h.buffer.slice(0),h.byteOffset,h.byteLength);return g.set(h,_),c(_,h,m,g,y),_}if(typeof File<"u"&&h instanceof File){const _=new File([h],h.name,{type:h.type});return g.set(h,_),c(_,h,m,g,y),_}if(h instanceof Blob){const _=new Blob([h],{type:h.type});return g.set(h,_),c(_,h,m,g,y),_}if(h instanceof Error){const _=new h.constructor;return g.set(h,_),_.message=h.message,_.name=h.name,_.stack=h.stack,_.cause=h.cause,c(_,h,m,g,y),_}if(typeof h=="object"&&f(h)){const _=Object.create(Object.getPrototypeOf(h));return g.set(h,_),c(_,h,m,g,y),_}return h}function c(h,p,m=h,g,y){const x=[...Object.keys(p),...t.getSymbols(p)];for(let _=0;_<x.length;_++){const w=x[_],T=Object.getOwnPropertyDescriptor(h,w);(T==null||T.writable)&&(h[w]=o(p[w],w,m,g,y))}}function f(h){switch(r.getTag(h)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=o,e.copyProperties=c}(Wb)),Wb}var _6;function Sae(){return _6||(_6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wB();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r}($b)),$b}var b6;function Eae(){return b6||(b6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XA(),r=Sae();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n}(Bb)),Bb}var Kb={},Zb={},Qb={},w6;function Tae(){return w6||(w6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wB(),r=bB();function n(i,a){return t.cloneDeepWith(i,(s,o,c,f)=>{const h=a?.(s,o,c,f);if(h!==void 0)return h;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case r.numberTag:case r.stringTag:case r.booleanTag:{const p=new i.constructor(i?.valueOf());return t.copyProperties(p,i),p}case r.argumentsTag:{const p={};return t.copyProperties(p,i),p.length=i.length,p[Symbol.iterator]=i[Symbol.iterator],p}default:return}})}e.cloneDeepWith=n}(Qb)),Qb}var S6;function Aae(){return S6||(S6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tae();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r}(Zb)),Zb}var Jb={},ew={},E6;function SB(){return E6||(E6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r}(ew)),ew}var tw={},T6;function Cae(){return T6||(T6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_B();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r}(tw)),tw}var A6;function Oae(){return A6||(A6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$I(),r=SB(),n=Cae(),i=FA();function a(s,o){let c;if(Array.isArray(o)?c=o:typeof o=="string"&&t.isDeepKey(o)&&s?.[o]==null?c=i.toPath(o):c=[o],c.length===0)return!1;let f=s;for(let h=0;h<c.length;h++){const p=c[h];if((f==null||!Object.hasOwn(f,p))&&!((Array.isArray(f)||n.isArguments(f))&&r.isIndex(p)&&p<f.length))return!1;f=f[p]}return!0}e.has=a}(Jb)),Jb}var C6;function kae(){return C6||(C6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XA(),r=WI(),n=Aae(),i=LA(),a=Oae();function s(o,c){switch(typeof o){case"object":{Object.is(o?.valueOf(),-0)&&(o="-0");break}case"number":{o=r.toKey(o);break}}return c=n.cloneDeep(c),function(f){const h=i.get(f,o);return h===void 0?a.has(f,o):c===void 0?h===void 0:t.isMatch(h,c)}}e.matchesProperty=s}(Kb)),Kb}var O6;function Dae(){return O6||(O6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gB(),r=yae(),n=Eae(),i=kae();function a(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):n.matches(s);case"string":case"symbol":case"number":return r.property(s)}}e.iteratee=a}(Lb)),Lb}var k6;function Pae(){return k6||(k6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mae(),r=gB(),n=xae(),i=Dae();function a(s,o=r.identity){return n.isArrayLikeObject(s)?t.uniqBy(Array.from(s),i.iteratee(o)):[]}e.uniqBy=a}(kb)),kb}var rw,D6;function Mae(){return D6||(D6=1,rw=Pae().uniqBy),rw}var Rae=Mae();const P6=fl(Rae);function EB(e,t,r){return t===!0?P6(e,r):typeof t=="function"?P6(e,t):e}var nw={exports:{}},iw={},aw={exports:{}},sw={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var M6;function Nae(){if(M6)return sw;M6=1;var e=V0();function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function o(p,m){var g=m(),y=n({inst:{value:g,getSnapshot:m}}),x=y[0].inst,_=y[1];return a(function(){x.value=g,x.getSnapshot=m,c(x)&&_({inst:x})},[p,g,m]),i(function(){return c(x)&&_({inst:x}),p(function(){c(x)&&_({inst:x})})},[p]),s(g),g}function c(p){var m=p.getSnapshot;p=p.value;try{var g=m();return!r(p,g)}catch{return!0}}function f(p,m){return m()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:o;return sw.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,sw}var R6;function Fae(){return R6||(R6=1,aw.exports=Nae()),aw.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var N6;function Lae(){if(N6)return iw;N6=1;var e=V0(),t=Fae();function r(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,c=e.useDebugValue;return iw.useSyncExternalStoreWithSelector=function(f,h,p,m,g){var y=a(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=o(function(){function w(k){if(!T){if(T=!0,S=k,k=m(k),g!==void 0&&x.hasValue){var D=x.value;if(g(D,k))return O=D}return O=k}if(D=O,n(S,k))return D;var M=m(k);return g!==void 0&&g(D,M)?(S=k,D):(S=k,O=M)}var T=!1,S,O,C=p===void 0?null:p;return[function(){return w(h())},C===null?void 0:function(){return w(C())}]},[h,p,m,g]);var _=i(f,y[0],y[1]);return s(function(){x.hasValue=!0,x.value=_},[_]),c(_),_},iw}var F6;function Iae(){return F6||(F6=1,nw.exports=Lae()),nw.exports}var Bae=Iae(),YA=A.createContext(null),jae=e=>e,jr=()=>{var e=A.useContext(YA);return e?e.store.dispatch:jae},Yg=()=>{},Uae=()=>Yg,zae=(e,t)=>e===t;function rt(e){var t=A.useContext(YA);return Bae.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Uae,t?t.store.getState:Yg,t?t.store.getState:Yg,t?e:Yg,zae)}function Vae(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Hae(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $ae(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var L6=e=>Array.isArray(e)?e:[e];function Wae(e){const t=Array.isArray(e[0])?e[0]:e;return $ae(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function qae(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Gae=class{constructor(e){this.value=e}deref(){return this.value}},Xae=typeof WeakRef<"u"?WeakRef:Gae,Yae=0,I6=1;function ig(){return{s:Yae,v:void 0,o:null,p:null}}function TB(e,t={}){let r=ig();const{resultEqualityCheck:n}=t;let i,a=0;function s(){let o=r;const{length:c}=arguments;for(let p=0,m=c;p<m;p++){const g=arguments[p];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=o.o;y===null&&(o.o=y=new WeakMap);const x=y.get(g);x===void 0?(o=ig(),y.set(g,o)):o=x}else{let y=o.p;y===null&&(o.p=y=new Map);const x=y.get(g);x===void 0?(o=ig(),y.set(g,o)):o=x}}const f=o;let h;if(o.s===I6)h=o.v;else if(h=e.apply(null,arguments),a++,n){const p=i?.deref?.()??i;p!=null&&n(p,h)&&(h=p,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new Xae(h):h}return f.s=I6,f.v=h,h}return s.clearCache=()=>{r=ig(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function Kae(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,s=0,o,c={},f=i.pop();typeof f=="object"&&(c=f,f=i.pop()),Vae(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const h={...r,...c},{memoize:p,memoizeOptions:m=[],argsMemoize:g=TB,argsMemoizeOptions:y=[]}=h,x=L6(m),_=L6(y),w=Wae(i),T=p(function(){return a++,f.apply(null,arguments)},...x),S=g(function(){s++;const C=qae(w,arguments);return o=T.apply(null,C),o},..._);return Object.assign(S,{resultFunc:f,memoizedResultFunc:T,dependencies:w,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>o,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:p,argsMemoize:g})};return Object.assign(n,{withTypes:()=>n}),n}var Ee=Kae(TB),Zae=Object.assign((e,t=Ee)=>{Hae(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((s,o,c)=>(s[r[c]]=o,s),{}))},{withTypes:()=>Zae}),ow={},lw={},cw={},B6;function Qae(){return B6||(B6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const s=t(n),o=t(i);if(s===o&&s===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?o-s:s-o}return 0};e.compareValues=r}(cw)),cw}var uw={},fw={},j6;function AB(){return j6||(j6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t}(fw)),fw}var U6;function Jae(){return U6||(U6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AB(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,s){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||s!=null&&Object.hasOwn(s,a)}e.isKey=i}(uw)),uw}var z6;function ese(){return z6||(z6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qae(),r=Jae(),n=FA();function i(a,s,o,c){if(a==null)return[];o=c?void 0:o,Array.isArray(a)||(a=Object.values(a)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(o)||(o=o==null?[]:[o]),o=o.map(g=>String(g));const f=(g,y)=>{let x=g;for(let _=0;_<y.length&&x!=null;++_)x=x[y[_]];return x},h=(g,y)=>y==null||g==null?y:typeof g=="object"&&"key"in g?Object.hasOwn(y,g.key)?y[g.key]:f(y,g.path):typeof g=="function"?g(y):Array.isArray(g)?f(y,g):typeof y=="object"?y[g]:y,p=s.map(g=>(Array.isArray(g)&&g.length===1&&(g=g[0]),g==null||typeof g=="function"||Array.isArray(g)||r.isKey(g)?g:{key:g,path:n.toPath(g)}));return a.map(g=>({original:g,criteria:p.map(y=>h(y,g))})).slice().sort((g,y)=>{for(let x=0;x<p.length;x++){const _=t.compareValues(g.criteria[x],y.criteria[x],o[x]);if(_!==0)return _}return 0}).map(g=>g.original)}e.orderBy=i}(lw)),lw}var hw={},V6;function tse(){return V6||(V6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),s=(o,c)=>{for(let f=0;f<o.length;f++){const h=o[f];Array.isArray(h)&&c<a?s(h,c+1):i.push(h)}};return s(r,0),i}e.flatten=t}(hw)),hw}var dw={},H6;function CB(){return H6||(H6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SB(),r=GA(),n=vB(),i=yB();function a(s,o,c){return n.isObject(c)&&(typeof o=="number"&&r.isArrayLike(c)&&t.isIndex(o)&&o<c.length||typeof o=="string"&&o in c)?i.eq(c[o],s):!1}e.isIterateeCall=a}(dw)),dw}var $6;function rse(){return $6||($6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ese(),r=tse(),n=CB();function i(a,...s){const o=s.length;return o>1&&n.isIterateeCall(a,s[0],s[1])?s=[]:o>2&&n.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(a,r.flatten(s),["asc"])}e.sortBy=i}(ow)),ow}var pw,W6;function nse(){return W6||(W6=1,pw=rse().sortBy),pw}var ise=nse();const Bx=fl(ise);var OB=e=>e.legend.settings,ase=e=>e.legend.size,sse=e=>e.legend.payload,ose=Ee([sse,OB],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Bx(n,r):n});function lse(){return rt(ose)}var ag=1;function kB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=A.useState({height:0,left:0,top:0,width:0}),n=A.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),s={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(s.height-t.height)>ag||Math.abs(s.left-t.left)>ag||Math.abs(s.top-t.top)>ag||Math.abs(s.width-t.width)>ag)&&r({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function ei(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 cse=typeof Symbol=="function"&&Symbol.observable||"@@observable",q6=cse,mw=()=>Math.random().toString(36).substring(7).split("").join("."),use={INIT:`@@redux/INIT${mw()}`,REPLACE:`@@redux/REPLACE${mw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${mw()}`},kv=use;function KA(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function DB(e,t,r){if(typeof e!="function")throw new Error(ei(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ei(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ei(1));return r(DB)(e,t)}let n=e,i=t,a=new Map,s=a,o=0,c=!1;function f(){s===a&&(s=new Map,a.forEach((_,w)=>{s.set(w,_)}))}function h(){if(c)throw new Error(ei(3));return i}function p(_){if(typeof _!="function")throw new Error(ei(4));if(c)throw new Error(ei(5));let w=!0;f();const T=o++;return s.set(T,_),function(){if(w){if(c)throw new Error(ei(6));w=!1,f(),s.delete(T),a=null}}}function m(_){if(!KA(_))throw new Error(ei(7));if(typeof _.type>"u")throw new Error(ei(8));if(typeof _.type!="string")throw new Error(ei(17));if(c)throw new Error(ei(9));try{c=!0,i=n(i,_)}finally{c=!1}return(a=s).forEach(T=>{T()}),_}function g(_){if(typeof _!="function")throw new Error(ei(10));n=_,m({type:kv.REPLACE})}function y(){const _=p;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(ei(11));function T(){const O=w;O.next&&O.next(h())}return T(),{unsubscribe:_(T)}},[q6](){return this}}}return m({type:kv.INIT}),{dispatch:m,subscribe:p,getState:h,replaceReducer:g,[q6]:y}}function fse(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:kv.INIT})>"u")throw new Error(ei(12));if(typeof r(void 0,{type:kv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ei(13))})}function PB(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const s=t[a];typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let i;try{fse(r)}catch(a){i=a}return function(s={},o){if(i)throw i;let c=!1;const f={};for(let h=0;h<n.length;h++){const p=n[h],m=r[p],g=s[p],y=m(g,o);if(typeof y>"u")throw o&&o.type,new Error(ei(14));f[p]=y,c=c||y!==g}return c=c||n.length!==Object.keys(s).length,c?f:s}}function Dv(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function hse(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(ei(15))};const s={getState:i.getState,dispatch:(c,...f)=>a(c,...f)},o=e.map(c=>c(s));return a=Dv(...o)(i.dispatch),{...i,dispatch:a}}}function MB(e){return KA(e)&&"type"in e&&typeof e.type=="string"}var RB=Symbol.for("immer-nothing"),G6=Symbol.for("immer-draftable"),$a=Symbol.for("immer-state");function Us(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var D0=Object.getPrototypeOf;function Lu(e){return!!e&&!!e[$a]}function sl(e){return e?NB(e)||Array.isArray(e)||!!e[G6]||!!e.constructor?.[G6]||um(e)||Ux(e):!1}var dse=Object.prototype.constructor.toString();function NB(e){if(!e||typeof e!="object")return!1;const t=D0(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===dse}function Pv(e,t){jx(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function jx(e){const t=e[$a];return t?t.type_:Array.isArray(e)?1:um(e)?2:Ux(e)?3:0}function EE(e,t){return jx(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function FB(e,t,r){const n=jx(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function pse(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function um(e){return e instanceof Map}function Ux(e){return e instanceof Set}function Jc(e){return e.copy_||e.base_}function TE(e,t){if(um(e))return new Map(e);if(Ux(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=NB(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[$a];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const s=i[a],o=n[s];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[s]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[s]})}return Object.create(D0(e),n)}else{const n=D0(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function ZA(e,t=!1){return zx(e)||Lu(e)||!sl(e)||(jx(e)>1&&Object.defineProperties(e,{set:{value:sg},add:{value:sg},clear:{value:sg},delete:{value:sg}}),Object.freeze(e),t&&Object.values(e).forEach(r=>ZA(r,!0))),e}function sg(){Us(2)}function zx(e){return Object.isFrozen(e)}var mse={};function Iu(e){const t=mse[e];return t||Us(0,e),t}var Ap;function LB(){return Ap}function gse(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function X6(e,t){t&&(Iu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function AE(e){CE(e),e.drafts_.forEach(vse),e.drafts_=null}function CE(e){e===Ap&&(Ap=e.parent_)}function Y6(e){return Ap=gse(Ap,e)}function vse(e){const t=e[$a];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function K6(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[$a].modified_&&(AE(t),Us(4)),sl(e)&&(e=Mv(t,e),t.parent_||Rv(t,e)),t.patches_&&Iu("Patches").generateReplacementPatches_(r[$a].base_,e,t.patches_,t.inversePatches_)):e=Mv(t,r,[]),AE(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==RB?e:void 0}function Mv(e,t,r){if(zx(t))return t;const n=t[$a];if(!n)return Pv(t,(i,a)=>Z6(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Rv(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,s=!1;n.type_===3&&(a=new Set(i),i.clear(),s=!0),Pv(a,(o,c)=>Z6(e,n,i,o,c,r,s)),Rv(e,i,!1),r&&e.patches_&&Iu("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Z6(e,t,r,n,i,a,s){if(Lu(i)){const o=a&&t&&t.type_!==3&&!EE(t.assigned_,n)?a.concat(n):void 0,c=Mv(e,i,o);if(FB(r,n,c),Lu(c))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(sl(i)&&!zx(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Mv(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(um(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Rv(e,i)}}function Rv(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ZA(t,r)}function xse(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:LB(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=QA;r&&(i=[n],a=Cp);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return n.draft_=o,n.revoke_=s,o}var QA={get(e,t){if(t===$a)return e;const r=Jc(e);if(!EE(r,t))return yse(e,r,t);const n=r[t];return e.finalized_||!sl(n)?n:n===gw(e.base_,t)?(vw(e),e.copy_[t]=kE(n,e)):n},has(e,t){return t in Jc(e)},ownKeys(e){return Reflect.ownKeys(Jc(e))},set(e,t,r){const n=IB(Jc(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=gw(Jc(e),t),a=i?.[$a];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(pse(r,i)&&(r!==void 0||EE(e.base_,t)))return!0;vw(e),OE(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return gw(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,vw(e),OE(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Jc(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Us(11)},getPrototypeOf(e){return D0(e.base_)},setPrototypeOf(){Us(12)}},Cp={};Pv(QA,(e,t)=>{Cp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Cp.deleteProperty=function(e,t){return Cp.set.call(this,e,t,void 0)};Cp.set=function(e,t,r){return QA.set.call(this,e[0],t,r,e[0])};function gw(e,t){const r=e[$a];return(r?Jc(r):e)[t]}function yse(e,t,r){const n=IB(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function IB(e,t){if(!(t in e))return;let r=D0(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=D0(r)}}function OE(e){e.modified_||(e.modified_=!0,e.parent_&&OE(e.parent_))}function vw(e){e.copy_||(e.copy_=TE(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _se=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const s=this;return function(c=a,...f){return s.produce(c,h=>r.call(this,h,...f))}}typeof r!="function"&&Us(6),n!==void 0&&typeof n!="function"&&Us(7);let i;if(sl(t)){const a=Y6(this),s=kE(t,void 0);let o=!0;try{i=r(s),o=!1}finally{o?AE(a):CE(a)}return X6(a,n),K6(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===RB&&(i=void 0),this.autoFreeze_&&ZA(i,!0),n){const a=[],s=[];Iu("Patches").generateReplacementPatches_(t,i,a,s),n(a,s)}return i}else Us(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,c=>t(c,...o));let n,i;return[this.produce(t,r,(s,o)=>{n=s,i=o}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){sl(e)||Us(8),Lu(e)&&(e=Ko(e));const t=Y6(this),r=kE(e,void 0);return r[$a].isManual_=!0,CE(t),r}finishDraft(e,t){const r=e&&e[$a];(!r||!r.isManual_)&&Us(9);const{scope_:n}=r;return X6(n,t),K6(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Iu("Patches").applyPatches_;return Lu(e)?n(e,t):this.produce(e,i=>n(i,t))}};function kE(e,t){const r=um(e)?Iu("MapSet").proxyMap_(e,t):Ux(e)?Iu("MapSet").proxySet_(e,t):xse(e,t);return(t?t.scope_:LB()).drafts_.push(r),r}function Ko(e){return Lu(e)||Us(10,e),BB(e)}function BB(e){if(!sl(e)||zx(e))return e;const t=e[$a];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=TE(e,t.scope_.immer_.useStrictShallowCopy_)}else r=TE(e,!0);return Pv(r,(n,i)=>{FB(r,n,BB(i))}),t&&(t.finalized_=!1),r}var bse=new _se,jB=bse.produce;function UB(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var wse=UB(),Sse=UB,Ese=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Dv:Dv.apply(null,arguments)};function As(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ua(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>MB(n)&&n.type===e,r}var zB=class kd extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,kd.prototype)}static get[Symbol.species](){return kd}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new kd(...t[0].concat(this)):new kd(...t.concat(this))}};function Q6(e){return sl(e)?jB(e,()=>{}):e}function og(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Tse(e){return typeof e=="boolean"}var Ase=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new zB;return r&&(Tse(r)?s.push(wse):s.push(Sse(r.extraArgument))),s},Cse="RTK_autoBatch",J6=e=>t=>{setTimeout(t,e)},Ose=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,s=!1;const o=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:J6(10):e.type==="callback"?e.queueNotification:J6(e.timeout),f=()=>{s=!1,a&&(a=!1,o.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){const p=()=>i&&h(),m=n.subscribe(p);return o.add(h),()=>{m(),o.delete(h)}},dispatch(h){try{return i=!h?.meta?.[Cse],a=!i,a&&(s||(s=!0,c(f))),n.dispatch(h)}finally{i=!0}}})},kse=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new zB(e);return n&&i.push(Ose(typeof n=="object"?n:void 0)),i};function Dse(e){const t=Ase(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof r=="function")o=r;else if(KA(r))o=PB(r);else throw new Error(Ua(1));let c;typeof n=="function"?c=n(t):c=t();let f=Dv;i&&(f=Ese({trace:!1,...typeof i=="object"&&i}));const h=hse(...c),p=kse(h);let m=typeof s=="function"?s(p):p();const g=f(...m);return DB(o,a,g)}function VB(e){const t={},r=[];let n;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Ua(28));if(o in t)throw new Error(Ua(29));return t[o]=s,i},addAsyncThunk(a,s){return s.pending&&(t[a.pending.type]=s.pending),s.rejected&&(t[a.rejected.type]=s.rejected),s.fulfilled&&(t[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function Pse(e){return typeof e=="function"}function Mse(e,t){let[r,n,i]=VB(t),a;if(Pse(e))a=()=>Q6(e());else{const o=Q6(e);a=()=>o}function s(o=a(),c){let f=[r[c.type],...n.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return f.filter(h=>!!h).length===0&&(f=[i]),f.reduce((h,p)=>{if(p)if(Lu(h)){const g=p(h,c);return g===void 0?h:g}else{if(sl(h))return jB(h,m=>p(m,c));{const m=p(h,c);if(m===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return h},o)}return s.getInitialState=a,s}var Rse="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Nse=(e=21)=>{let t="",r=e;for(;r--;)t+=Rse[Math.random()*64|0];return t},Fse=Symbol.for("rtk-slice-createasyncthunk");function Lse(e,t){return`${e}/${t}`}function Ise({creators:e}={}){const t=e?.asyncThunk?.[Fse];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Ua(11));const s=(typeof n.reducers=="function"?n.reducers(jse()):n.reducers)||{},o=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(S,O){const C=typeof S=="string"?S:S.type;if(!C)throw new Error(Ua(12));if(C in c.sliceCaseReducersByType)throw new Error(Ua(13));return c.sliceCaseReducersByType[C]=O,f},addMatcher(S,O){return c.sliceMatchers.push({matcher:S,reducer:O}),f},exposeAction(S,O){return c.actionCreators[S]=O,f},exposeCaseReducer(S,O){return c.sliceCaseReducersByName[S]=O,f}};o.forEach(S=>{const O=s[S],C={reducerName:S,type:Lse(i,S),createNotation:typeof n.reducers=="function"};zse(O)?Hse(C,O,f,t):Use(C,O,f)});function h(){const[S={},O=[],C=void 0]=typeof n.extraReducers=="function"?VB(n.extraReducers):[n.extraReducers],k={...S,...c.sliceCaseReducersByType};return Mse(n.initialState,D=>{for(let M in k)D.addCase(M,k[M]);for(let M of c.sliceMatchers)D.addMatcher(M.matcher,M.reducer);for(let M of O)D.addMatcher(M.matcher,M.reducer);C&&D.addDefaultCase(C)})}const p=S=>S,m=new Map,g=new WeakMap;let y;function x(S,O){return y||(y=h()),y(S,O)}function _(){return y||(y=h()),y.getInitialState()}function w(S,O=!1){function C(D){let M=D[S];return typeof M>"u"&&O&&(M=og(g,C,_)),M}function k(D=p){const M=og(m,O,()=>new WeakMap);return og(M,D,()=>{const N={};for(const[z,H]of Object.entries(n.selectors??{}))N[z]=Bse(H,D,()=>og(g,D,_),O);return N})}return{reducerPath:S,getSelectors:k,get selectors(){return k(C)},selectSlice:C}}const T={name:i,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:_,...w(a),injectInto(S,{reducerPath:O,...C}={}){const k=O??a;return S.inject({reducerPath:k,reducer:x},C),{...T,...w(k,!0)}}};return T}}function Bse(e,t,r,n){function i(a,...s){let o=t(a);return typeof o>"u"&&n&&(o=r()),e(o,...s)}return i.unwrapped=e,i}var qa=Ise();function jse(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Use({type:e,reducerName:t,createNotation:r},n,i){let a,s;if("reducer"in n){if(r&&!Vse(n))throw new Error(Ua(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?As(e,s):As(e))}function zse(e){return e._reducerDefinitionType==="asyncThunk"}function Vse(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Hse({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ua(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:c,settled:f,options:h}=r,p=i(e,a,h);n.exposeAction(t,p),s&&n.addCase(p.fulfilled,s),o&&n.addCase(p.pending,o),c&&n.addCase(p.rejected,c),f&&n.addMatcher(p.settled,f),n.exposeCaseReducer(t,{fulfilled:s||lg,pending:o||lg,rejected:c||lg,settled:f||lg})}function lg(){}var $se="task",HB="listener",$B="completed",JA="cancelled",Wse=`task-${JA}`,qse=`task-${$B}`,DE=`${HB}-${JA}`,Gse=`${HB}-${$B}`,Vx=class{constructor(e){this.code=e,this.message=`${$se} ${JA} (reason: ${e})`}name="TaskAbortError";message},e4=(e,t)=>{if(typeof e!="function")throw new TypeError(Ua(32))},Nv=()=>{},WB=(e,t=Nv)=>(e.catch(t),e),qB=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),wu=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Su=e=>{if(e.aborted){const{reason:t}=e;throw new Vx(t)}};function GB(e,t){let r=Nv;return new Promise((n,i)=>{const a=()=>i(new Vx(e.reason));if(e.aborted){a();return}r=qB(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Nv})}var Xse=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Vx?"cancelled":"rejected",error:r}}finally{t?.()}},Fv=e=>t=>WB(GB(e,t).then(r=>(Su(e),r))),XB=e=>{const t=Fv(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:p0}=Object,e5={},Hx="listenerMiddleware",Yse=(e,t)=>{const r=n=>qB(e,()=>wu(n,e.reason));return(n,i)=>{e4(n);const a=new AbortController;r(a);const s=Xse(async()=>{Su(e),Su(a.signal);const o=await n({pause:Fv(a.signal),delay:XB(a.signal),signal:a.signal});return Su(a.signal),o},()=>wu(a,qse));return i?.autoJoin&&t.push(s.catch(Nv)),{result:Fv(e)(s),cancel(){wu(a,Wse)}}}},Kse=(e,t)=>{const r=async(n,i)=>{Su(t);let a=()=>{};const o=[new Promise((c,f)=>{let h=e({predicate:n,effect:(p,m)=>{m.unsubscribe(),c([p,m.getState(),m.getOriginalState()])}});a=()=>{h(),f()}})];i!=null&&o.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await GB(t,Promise.race(o));return Su(t),c}finally{a()}};return(n,i)=>WB(r(n,i))},YB=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=As(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ua(21));return e4(a),{predicate:i,type:t,effect:a}},KB=p0(e=>{const{type:t,predicate:r,effect:n}=YB(e);return{id:Nse(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ua(22))}}},{withTypes:()=>KB}),t5=(e,t)=>{const{type:r,effect:n,predicate:i}=YB(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},PE=e=>{e.pending.forEach(t=>{wu(t,DE)})},Zse=e=>()=>{e.forEach(PE),e.clear()},r5=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},ZB=p0(As(`${Hx}/add`),{withTypes:()=>ZB}),Qse=As(`${Hx}/removeAll`),QB=p0(As(`${Hx}/remove`),{withTypes:()=>QB}),Jse=(...e)=>{console.error(`${Hx}/error`,...e)},fm=(e={})=>{const t=new Map,{extra:r,onError:n=Jse}=e;e4(n);const i=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),p=>{h.unsubscribe(),p?.cancelActive&&PE(h)}),a=h=>{const p=t5(t,h)??KB(h);return i(p)};p0(a,{withTypes:()=>a});const s=h=>{const p=t5(t,h);return p&&(p.unsubscribe(),h.cancelActive&&PE(p)),!!p};p0(s,{withTypes:()=>s});const o=async(h,p,m,g)=>{const y=new AbortController,x=Kse(a,y.signal),_=[];try{h.pending.add(y),await Promise.resolve(h.effect(p,p0({},m,{getOriginalState:g,condition:(w,T)=>x(w,T).then(Boolean),take:x,delay:XB(y.signal),pause:Fv(y.signal),extra:r,signal:y.signal,fork:Yse(y.signal,_),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((w,T,S)=>{w!==y&&(wu(w,DE),S.delete(w))})},cancel:()=>{wu(y,DE),h.pending.delete(y)},throwIfCancelled:()=>{Su(y.signal)}})))}catch(w){w instanceof Vx||r5(n,w,{raisedBy:"effect"})}finally{await Promise.all(_),wu(y,Gse),h.pending.delete(y)}},c=Zse(t);return{middleware:h=>p=>m=>{if(!MB(m))return p(m);if(ZB.match(m))return a(m.payload);if(Qse.match(m)){c();return}if(QB.match(m))return s(m.payload);let g=h.getState();const y=()=>{if(g===e5)throw new Error(Ua(23));return g};let x;try{if(x=p(m),t.size>0){const _=h.getState(),w=Array.from(t.values());for(const T of w){let S=!1;try{S=T.predicate(m,_,g)}catch(O){S=!1,r5(n,O,{raisedBy:"predicate"})}S&&o(T,m,h,y)}}}finally{g=e5}return x},startListening:a,stopListening:s,clearListeners:c}};function Ua(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var eoe={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},JB=qa({name:"chartLayout",initialState:eoe,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:toe,setLayout:roe,setChartSize:noe,setScale:ioe}=JB.actions,aoe=JB.reducer;function n5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function i5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n5(Object(r),!0).forEach(function(n){soe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function soe(e,t,r){return(t=ooe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ooe(e){var t=loe(e,"string");return typeof t=="symbol"?t:t+""}function loe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lv=Math.PI/180,coe=e=>e*180/Math.PI,_n=(e,t,r,n)=>({x:e+Math.cos(-Lv*n)*r,y:t+Math.sin(-Lv*n)*r}),ej=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},uoe=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},foe=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,s=uoe({x:r,y:n},{x:i,y:a});if(s<=0)return{radius:s,angle:0};var o=(r-i)/s,c=Math.acos(o);return n>a&&(c=2*Math.PI-c),{radius:s,angle:coe(c),angleInRadian:c}},hoe=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},doe=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),s=Math.min(i,a);return e+s*360},poe=(e,t)=>{var{x:r,y:n}=e,{radius:i,angle:a}=foe({x:r,y:n},t),{innerRadius:s,outerRadius:o}=t;if(i<s||i>o||i===0)return null;var{startAngle:c,endAngle:f}=hoe(t),h=a,p;if(c<=f){for(;h>f;)h-=360;for(;h<c;)h+=360;p=h>=c&&h<=f}else{for(;h>c;)h-=360;for(;h<f;)h+=360;p=h>=f&&h<=c}return p?i5(i5({},t),{},{radius:i,angle:doe(h,t)}):null};function tj(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function a5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a5(Object(r),!0).forEach(function(n){moe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function moe(e,t,r){return(t=goe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function goe(e){var t=voe(e,"string");return typeof t=="symbol"?t:t+""}function voe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fr(e,t,r){return Dn(e)||Dn(t)?r:_o(t)?Fu(e,t,r):typeof t=="function"?t(e):r}var xoe=(e,t,r,n,i)=>{var a,s=-1,o=(a=t?.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var c=0;c<o;c++){var f=c>0?r[c-1].coordinate:r[o-1].coordinate,h=r[c].coordinate,p=c>=o-1?r[0].coordinate:r[c+1].coordinate,m=void 0;if(Ai(h-f)!==Ai(p-h)){var g=[];if(Ai(p-h)===Ai(i[1]-i[0])){m=p;var y=h+i[1]-i[0];g[0]=Math.min(y,(y+f)/2),g[1]=Math.max(y,(y+f)/2)}else{m=f;var x=p+i[1]-i[0];g[0]=Math.min(h,(x+h)/2),g[1]=Math.max(h,(x+h)/2)}var _=[Math.min(h,(m+h)/2),Math.max(h,(m+h)/2)];if(e>_[0]&&e<=_[1]||e>=g[0]&&e<=g[1]){({index:s}=r[c]);break}}else{var w=Math.min(f,p),T=Math.max(f,p);if(e>(w+h)/2&&e<=(T+h)/2){({index:s}=r[c]);break}}}else if(t){for(var S=0;S<o;S++)if(S===0&&e<=(t[S].coordinate+t[S+1].coordinate)/2||S>0&&S<o-1&&e>(t[S].coordinate+t[S-1].coordinate)/2&&e<=(t[S].coordinate+t[S+1].coordinate)/2||S===o-1&&e>(t[S].coordinate+t[S-1].coordinate)/2){({index:s}=t[S]);break}}return s},yoe=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:s,layout:o}=t;if((o==="vertical"||o==="horizontal"&&s==="middle")&&a!=="center"&&ut(e[a]))return vs(vs({},e),{},{[a]:e[a]+(n||0)});if((o==="horizontal"||o==="vertical"&&a==="center")&&s!=="middle"&&ut(e[s]))return vs(vs({},e),{},{[s]:e[s]+(i||0)})}return e},bc=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",rj=(e,t,r,n)=>{if(n)return e.map(o=>o.coordinate);var i,a,s=e.map(o=>(o.coordinate===t&&(i=!0),o.coordinate===r&&(a=!0),o.coordinate));return i||s.push(t),a||s.push(r),s},nj=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:s,realScaleType:o,isCategorical:c,categoricalDomain:f,tickCount:h,ticks:p,niceTicks:m,axisType:g}=e;if(!s)return null;var y=o==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,x=i==="category"&&s.bandwidth?s.bandwidth()/y:0;if(x=g==="angleAxis"&&a&&a.length>=2?Ai(a[0]-a[1])*2*x:x,p||m){var _=(p||m||[]).map((w,T)=>{var S=n?n.indexOf(w):w;return{coordinate:s(S)+x,value:w,offset:x,index:T}});return _.filter(w=>!Ts(w.coordinate))}return c&&f?f.map((w,T)=>({coordinate:s(w)+x,value:w,index:T,offset:x})):s.ticks&&h!=null?s.ticks(h).map((w,T)=>({coordinate:s(w)+x,value:w,offset:x,index:T})):s.domain().map((w,T)=>({coordinate:s(w)+x,value:n?n[w]:w,index:T,offset:x}))},s5=1e-4,_oe=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-s5,a=Math.max(n[0],n[1])+s5,s=e(t[0]),o=e(t[r-1]);(s<i||s>a||o<i||o>a)&&e.domain([t[0],t[r-1]])}},boe=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,s=0;s<t;++s){var o=Ts(e[s][r][1])?e[s][r][0]:e[s][r][1];o>=0?(e[s][r][0]=i,e[s][r][1]=i+o,i=e[s][r][1]):(e[s][r][0]=a,e[s][r][1]=a+o,a=e[s][r][1])}},woe=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var s=Ts(e[a][r][1])?e[a][r][0]:e[a][r][1];s>=0?(e[a][r][0]=i,e[a][r][1]=i+s,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},Soe={sign:boe,expand:Jie,none:k0,silhouette:eae,wiggle:tae,positive:woe},Eoe=(e,t,r)=>{var n=Soe[r],i=Qie().keys(t).value((a,s)=>+Fr(a,s,0)).order(bE).offset(n);return i(e)};function o5(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:s}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Dn(i[t.dataKey])){var o=GI(r,"value",i[t.dataKey]);if(o)return o.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Fr(i,Dn(s)?t.dataKey:s);return Dn(c)?null:t.scale(c)}var Toe=e=>{var t=e.flat(2).filter(ut);return[Math.min(...t),Math.max(...t)]},Aoe=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Coe=(e,t,r)=>{if(e!=null)return Aoe(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:s}=a,o=s.reduce((c,f)=>{var h=tj(f,t,r),p=Toe(h);return[Math.min(c[0],p[0]),Math.max(c[1],p[1])]},[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]},[1/0,-1/0]))},l5=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,c5=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ME=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Bx(t,h=>h.coordinate),a=1/0,s=1,o=i.length;s<o;s++){var c=i[s],f=i[s-1];a=Math.min((c.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function u5(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return vs(vs({},t),{},{dataKey:r,payload:n,value:i,name:a})}function $x(e,t){if(e)return String(e);if(typeof t=="string")return t}function Ooe(e,t,r,n,i){if(r==="horizontal"||r==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return n?poe({x:e,y:t},n):null}var koe=(e,t,r,n)=>{var i=t.find(f=>f&&f.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.y};if(e==="vertical")return{x:n.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:s}=n;return vs(vs(vs({},n),_n(n.cx,n.cy,s,a)),{},{angle:a,radius:s})}var o=i.coordinate,{angle:c}=n;return vs(vs(vs({},n),_n(n.cx,n.cy,o,c)),{},{angle:c,radius:o})}return{x:0,y:0}},Doe=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,pl=e=>e.layout.width,ml=e=>e.layout.height,Poe=e=>e.layout.scale,ij=e=>e.layout.margin,Wx=Ee(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),qx=Ee(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),aj="data-recharts-item-index",sj="data-recharts-item-data-key",hm=60;function f5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f5(Object(r),!0).forEach(function(n){Moe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Moe(e,t,r){return(t=Roe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Roe(e){var t=Noe(e,"string");return typeof t=="symbol"?t:t+""}function Noe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Foe=e=>e.brush.height;function Loe(e){var t=qx(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:hm;return r+i}return r},0)}function Ioe(e){var t=qx(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:hm;return r+i}return r},0)}function Boe(e){var t=Wx(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function joe(e){var t=Wx(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Gn=Ee([pl,ml,ij,Foe,Loe,Ioe,Boe,joe,OB,ase],(e,t,r,n,i,a,s,o,c,f)=>{var h={left:(r.left||0)+i,right:(r.right||0)+a},p={top:(r.top||0)+s,bottom:(r.bottom||0)+o},m=cg(cg({},p),h),g=m.bottom;m.bottom+=n,m=yoe(m,c,f);var y=e-m.left-m.right,x=t-m.top-m.bottom;return cg(cg({brushBottom:g},m),{},{width:Math.max(y,0),height:Math.max(x,0)})}),Uoe=Ee(Gn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),oj=Ee(pl,ml,(e,t)=>({x:0,y:0,width:e,height:t})),zoe=A.createContext(null),ks=()=>A.useContext(zoe)!=null,Gx=e=>e.brush,Xx=Ee([Gx,Gn,ij],(e,t,r)=>({height:e.height,x:ut(e.x)?e.x:t.left,y:ut(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:ut(e.width)?e.width:t.width})),t4=()=>{var e,t=ks(),r=rt(Uoe),n=rt(Xx),i=(e=rt(Gx))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},Voe={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},lj=()=>{var e;return(e=rt(Gn))!==null&&e!==void 0?e:Voe},r4=()=>rt(pl),n4=()=>rt(ml),Hoe=()=>rt(e=>e.layout.margin),cr=e=>e.layout.layoutType,i4=()=>rt(cr),$oe={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},cj=qa({name:"legend",initialState:$oe,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var r=Ko(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)}}}),{setLegendSize:h5,setLegendSettings:Woe,addLegendPayload:uj,removeLegendPayload:fj}=cj.actions,qoe=cj.reducer,Goe=["contextPayload"];function RE(){return RE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RE.apply(null,arguments)}function d5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function P0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d5(Object(r),!0).forEach(function(n){a4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a4(e,t,r){return(t=Xoe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xoe(e){var t=Yoe(e,"string");return typeof t=="symbol"?t:t+""}function Yoe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Koe(e,t){if(e==null)return{};var r,n,i=Zoe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Zoe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Qoe(e){return e.value}function Joe(e){var{contextPayload:t}=e,r=Koe(e,Goe),n=EB(t,e.payloadUniqBy,Qoe),i=P0(P0({},r),{},{payload:n});return A.isValidElement(e.content)?A.cloneElement(e.content,i):typeof e.content=="function"?A.createElement(e.content,i):A.createElement(qA,i)}function ele(e,t,r,n,i,a){var{layout:s,align:o,verticalAlign:c}=t,f,h;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(o==="center"&&s==="vertical"?f={left:((n||0)-a.width)/2}:f=o==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(c==="middle"?h={top:((i||0)-a.height)/2}:h=c==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),P0(P0({},f),h)}function tle(e){var t=jr();return A.useEffect(()=>{t(Woe(e))},[t,e]),null}function rle(e){var t=jr();return A.useEffect(()=>(t(h5(e)),()=>{t(h5({width:0,height:0}))}),[t,e]),null}function nle(e){var t=lse(),r=wie(),n=Hoe(),{width:i,height:a,wrapperStyle:s,portal:o}=e,[c,f]=kB([t]),h=r4(),p=n4();if(h==null||p==null)return null;var m=h-(n.left||0)-(n.right||0),g=Op.getWidthOrHeight(e.layout,a,i,m),y=o?s:P0(P0({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},ele(s,e,n,h,p,c)),s),x=o??r;if(x==null)return null;var _=A.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:f},A.createElement(tle,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),A.createElement(rle,{width:c.width,height:c.height}),A.createElement(Joe,RE({},e,g,{margin:n,chartWidth:h,chartHeight:p,contextPayload:t})));return lL.createPortal(_,x)}class Op extends A.PureComponent{static getWidthOrHeight(t,r,n,i){return t==="vertical"&&ut(r)?{height:r}:t==="horizontal"?{width:n||i}:null}render(){return A.createElement(nle,this.props)}}a4(Op,"displayName","Legend");a4(Op,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"});function NE(){return NE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},NE.apply(null,arguments)}function p5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p5(Object(r),!0).forEach(function(n){ile(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ile(e,t,r){return(t=ale(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ale(e){var t=sle(e,"string");return typeof t=="symbol"?t:t+""}function sle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ole(e){return Array.isArray(e)&&_o(e[0])&&_o(e[1])?e.join(" ~ "):e}var lle=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:s,itemSorter:o,wrapperClassName:c,labelClassName:f,label:h,labelFormatter:p,accessibilityLayer:m=!1}=e,g=()=>{if(a&&a.length){var C={padding:0,margin:0},k=(o?Bx(a,o):a).map((D,M)=>{if(D.type==="none")return null;var N=D.formatter||s||ole,{value:z,name:H}=D,B=z,te=H;if(N){var ne=N(z,H,D,M,a);if(Array.isArray(ne))[B,te]=ne;else if(ne!=null)B=ne;else return null}var le=xw({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},n);return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:le},_o(te)?A.createElement("span",{className:"recharts-tooltip-item-name"},te):null,_o(te)?A.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,A.createElement("span",{className:"recharts-tooltip-item-value"},B),A.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:C},k)}return null},y=xw({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),x=xw({margin:0},i),_=!Dn(h),w=_?h:"",T=Gt("recharts-default-tooltip",c),S=Gt("recharts-tooltip-label",f);_&&p&&a!==void 0&&a!==null&&(w=p(h,a));var O=m?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",NE({className:T,style:y},O),A.createElement("p",{className:S,style:x},A.isValidElement(w)?w:"".concat(w)),g())},ud="recharts-tooltip-wrapper",cle={visibility:"hidden"};function ule(e){var{coordinate:t,translateX:r,translateY:n}=e;return Gt(ud,{["".concat(ud,"-right")]:ut(r)&&t&&ut(t.x)&&r>=t.x,["".concat(ud,"-left")]:ut(r)&&t&&ut(t.x)&&r<t.x,["".concat(ud,"-bottom")]:ut(n)&&t&&ut(t.y)&&n>=t.y,["".concat(ud,"-top")]:ut(n)&&t&&ut(t.y)&&n<t.y})}function m5(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:o,viewBox:c,viewBoxDimension:f}=e;if(a&&ut(a[n]))return a[n];var h=r[n]-o-(i>0?i:0),p=r[n]+i;if(t[n])return s[n]?h:p;var m=c[n];if(m==null)return 0;if(s[n]){var g=h,y=m;return g<y?Math.max(p,m):Math.max(h,m)}if(f==null)return 0;var x=p+o,_=m+f;return x>_?Math.max(h,m):Math.max(p,m)}function fle(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function hle(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:o,viewBox:c}=e,f,h,p;return s.height>0&&s.width>0&&r?(h=m5({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),p=m5({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),f=fle({translateX:h,translateY:p,useTranslate3d:o})):f=cle,{cssProperties:f,cssClasses:ule({translateX:h,translateY:p,coordinate:r})}}function g5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ug(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g5(Object(r),!0).forEach(function(n){FE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FE(e,t,r){return(t=dle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dle(e){var t=ple(e,"string");return typeof t=="symbol"?t:t+""}function ple(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class mle extends A.PureComponent{constructor(){super(...arguments),FE(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),FE(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:s,hasPayload:o,isAnimationActive:c,offset:f,position:h,reverseDirection:p,useTranslate3d:m,viewBox:g,wrapperStyle:y,lastBoundingBox:x,innerRef:_,hasPortalFromProps:w}=this.props,{cssClasses:T,cssProperties:S}=hle({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:f,position:h,reverseDirection:p,tooltipBox:{height:x.height,width:x.width},useTranslate3d:m,viewBox:g}),O=w?{}:ug(ug({transition:c&&t?"transform ".concat(n,"ms ").concat(i):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&o?"visible":"hidden",position:"absolute",top:0,left:0}),C=ug(ug({},O),{},{visibility:!this.state.dismissed&&t&&o?"visible":"hidden"},y);return A.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:T,style:C,ref:_},a)}}var gle=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Yu={devToolsEnabled:!1,isSsr:gle()},hj=()=>rt(e=>e.rootProps.accessibilityLayer);function Gs(e){return Number.isFinite(e)}function M0(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function LE(){return LE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LE.apply(null,arguments)}function v5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function x5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v5(Object(r),!0).forEach(function(n){vle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vle(e,t,r){return(t=xle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xle(e){var t=yle(e,"string");return typeof t=="symbol"?t:t+""}function yle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y5={curveBasisClosed:zie,curveBasisOpen:Vie,curveBasis:Uie,curveBumpX:Aie,curveBumpY:Cie,curveLinearClosed:Hie,curveLinear:Lx,curveMonotoneX:$ie,curveMonotoneY:Wie,curveNatural:qie,curveStep:Gie,curveStepAfter:Yie,curveStepBefore:Xie},fg=e=>Gs(e.x)&&Gs(e.y),fd=e=>e.x,hd=e=>e.y,_le=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(cm(e));return(r==="curveMonotone"||r==="curveBump")&&t?y5["".concat(r).concat(t==="vertical"?"Y":"X")]:y5[r]||Lx},ble=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,s=_le(t,i),o=a?r.filter(fg):r,c;if(Array.isArray(n)){var f=a?n.filter(p=>fg(p)):n,h=o.map((p,m)=>x5(x5({},p),{},{base:f[m]}));return i==="vertical"?c=ng().y(hd).x1(fd).x0(p=>p.base.x):c=ng().x(fd).y1(hd).y0(p=>p.base.y),c.defined(fg).curve(s),c(h)}return i==="vertical"&&ut(n)?c=ng().y(hd).x1(fd).x0(n):ut(n)?c=ng().x(fd).y1(hd).y0(n):c=iB().x(fd).y(hd),c.defined(fg).curve(s),c(o)},s4=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?ble(e):n;return A.createElement("path",LE({},dl(e),BA(e),{className:Gt("recharts-curve",t),d:a===null?void 0:a,ref:i}))},wle=["x","y","top","left","width","height","className"];function IE(){return IE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IE.apply(null,arguments)}function _5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sle(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_5(Object(r),!0).forEach(function(n){Ele(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ele(e,t,r){return(t=Tle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tle(e){var t=Ale(e,"string");return typeof t=="symbol"?t:t+""}function Ale(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cle(e,t){if(e==null)return{};var r,n,i=Ole(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ole(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var kle=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),Dle=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:s=0,className:o}=e,c=Cle(e,wle),f=Sle({x:t,y:r,top:n,left:i,width:a,height:s},c);return!ut(t)||!ut(r)||!ut(a)||!ut(s)||!ut(n)||!ut(i)?null:A.createElement("path",IE({},Yr(f,!0),{className:Gt("recharts-cross",o),d:kle(t,r,a,s,n,i)}))};function Ple(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function b5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mle(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b5(Object(r),!0).forEach(function(n){Rle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rle(e,t,r){return(t=Nle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nle(e){var t=Fle(e,"string");return typeof t=="symbol"?t:t+""}function Fle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Di(e,t){var r=Mle({},e),n=t,i=Object.keys(t),a=i.reduce((s,o)=>(s[o]===void 0&&n[o]!==void 0&&(s[o]=n[o]),s),r);return a}function Lle(){}function w5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function S5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w5(Object(r),!0).forEach(function(n){Ile(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ile(e,t,r){return(t=Ble(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ble(e){var t=jle(e,"string");return typeof t=="symbol"?t:t+""}function jle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ule=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),dj=(e,t,r)=>e.map(n=>"".concat(Ule(n)," ").concat(t,"ms ").concat(r)).join(","),zle=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),kp=(e,t)=>Object.keys(t).reduce((r,n)=>S5(S5({},r),{},{[n]:e(n,t[n])}),{});function E5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E5(Object(r),!0).forEach(function(n){Vle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vle(e,t,r){return(t=Hle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hle(e){var t=$le(e,"string");return typeof t=="symbol"?t:t+""}function $le(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iv=(e,t,r)=>e+(t-e)*r,BE=e=>{var{from:t,to:r}=e;return t!==r},pj=(e,t,r)=>{var n=kp((i,a)=>{if(BE(a)){var[s,o]=e(a.from,a.to,a.velocity);return ri(ri({},a),{},{from:s,velocity:o})}return a},t);return r<1?kp((i,a)=>BE(a)?ri(ri({},a),{},{velocity:Iv(a.velocity,n[i].velocity,r),from:Iv(a.from,n[i].from,r)}):a,t):pj(e,n,r-1)};function Wle(e,t,r,n,i,a){var s,o=n.reduce((m,g)=>ri(ri({},m),{},{[g]:{from:e[g],velocity:0,to:t[g]}}),{}),c=()=>kp((m,g)=>g.from,o),f=()=>!Object.values(o).filter(BE).length,h=null,p=m=>{s||(s=m);var g=m-s,y=g/r.dt;o=pj(r,o,y),i(ri(ri(ri({},e),t),c())),s=m,f()||(h=a.setTimeout(p))};return()=>(h=a.setTimeout(p),()=>{h()})}function qle(e,t,r,n,i,a,s){var o=null,c=i.reduce((p,m)=>ri(ri({},p),{},{[m]:[e[m],t[m]]}),{}),f,h=p=>{f||(f=p);var m=(p-f)/n,g=kp((x,_)=>Iv(..._,r(m)),c);if(a(ri(ri(ri({},e),t),g)),m<1)o=s.setTimeout(h);else{var y=kp((x,_)=>Iv(..._,r(1)),c);a(ri(ri(ri({},e),t),y))}};return()=>(o=s.setTimeout(h),()=>{o()})}const Gle=(e,t,r,n,i,a)=>{var s=zle(e,t);return r.isStepper===!0?Wle(e,t,r,s,i,a):qle(e,t,r,n,s,i,a)};var Bv=1e-4,mj=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],gj=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),T5=(e,t)=>r=>{var n=mj(e,t);return gj(n,r)},Xle=(e,t)=>r=>{var n=mj(e,t),i=[...n.map((a,s)=>a*s).slice(1),0];return gj(i,r)},A5=function(){for(var t,r,n,i,a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];if(s.length===1)switch(s[0]){case"linear":[t,n,r,i]=[0,0,1,1];break;case"ease":[t,n,r,i]=[.25,.1,.25,1];break;case"ease-in":[t,n,r,i]=[.42,0,1,1];break;case"ease-out":[t,n,r,i]=[.42,0,.58,1];break;case"ease-in-out":[t,n,r,i]=[0,0,.58,1];break;default:{var c=s[0].split("(");c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4&&([t,n,r,i]=c[1].split(")")[0].split(",").map(y=>parseFloat(y)))}}else s.length===4&&([t,n,r,i]=s);var f=T5(t,r),h=T5(n,i),p=Xle(t,r),m=y=>y>1?1:y<0?0:y,g=y=>{for(var x=y>1?1:y,_=x,w=0;w<8;++w){var T=f(_)-x,S=p(_);if(Math.abs(T-x)<Bv||S<Bv)return h(_);_=m(_-T/S)}return h(_)};return g.isStepper=!1,g},Yle=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(s,o,c)=>{var f=-(s-o)*r,h=c*n,p=c+(f-h)*i/1e3,m=c*i/1e3+s;return Math.abs(m-o)<Bv&&Math.abs(p)<Bv?[o,0]:[m,p]};return a.isStepper=!0,a.dt=i,a},Kle=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return A5(e);case"spring":return Yle();default:if(e.split("(")[0]==="cubic-bezier")return A5(e)}return typeof e=="function"?e:null};function Zle(e){var t,r=()=>null,n=!1,i=null,a=s=>{if(!n){if(Array.isArray(s)){if(!s.length)return;var o=s,[c,...f]=o;if(typeof c=="number"){i=e.setTimeout(a.bind(null,f),c);return}a(c),i=e.setTimeout(a.bind(null,f));return}typeof s=="string"&&(t=s,r(t)),typeof s=="object"&&(t=s,r(t)),typeof s=="function"&&s()}};return{stop:()=>{n=!0},start:s=>{n=!1,i&&(i(),i=null),a(s)},subscribe:s=>(r=s,()=>{r=()=>null}),getTimeoutController:()=>e}}class Qle{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=s=>{s-n>=r?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function Jle(){return Zle(new Qle)}var ece=A.createContext(Jle);function tce(e,t){var r=A.useContext(ece);return A.useMemo(()=>t??r(e),[e,t,r])}var rce={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},C5={t:0},yw={t:1};function Yx(e){var t=Di(e,rce),{isActive:r,canBegin:n,duration:i,easing:a,begin:s,onAnimationEnd:o,onAnimationStart:c,children:f}=t,h=tce(t.animationId,t.animationManager),[p,m]=A.useState(r?C5:yw),g=A.useRef(null);return A.useEffect(()=>{r||m(yw)},[r]),A.useEffect(()=>{if(!r||!n)return Lle;var y=Gle(C5,yw,Kle(a),i,m,h.getTimeoutController()),x=()=>{g.current=y()};return h.start([c,s,x,i,o]),()=>{h.stop(),g.current&&g.current(),o()}},[r,n,i,a,s,c,o,h]),f(p.t)}function Kx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=A.useRef(Tp(t)),n=A.useRef(e);return n.current!==e&&(r.current=Tp(t),n.current=e),r.current}function O5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O5(Object(r),!0).forEach(function(n){nce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nce(e,t,r){return(t=ice(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ice(e){var t=ace(e,"string");return typeof t=="symbol"?t:t+""}function ace(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jv.apply(null,arguments)}var D5=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),s=n>=0?1:-1,o=r>=0?1:-1,c=n>=0&&r>=0||n<0&&r<0?1:0,f;if(a>0&&i instanceof Array){for(var h=[0,0,0,0],p=0,m=4;p<m;p++)h[p]=i[p]>a?a:i[p];f="M".concat(e,",").concat(t+s*h[0]),h[0]>0&&(f+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(c,",").concat(e+o*h[0],",").concat(t)),f+="L ".concat(e+r-o*h[1],",").concat(t),h[1]>0&&(f+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(c,`,
        `).concat(e+r,",").concat(t+s*h[1])),f+="L ".concat(e+r,",").concat(t+n-s*h[2]),h[2]>0&&(f+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(c,`,
        `).concat(e+r-o*h[2],",").concat(t+n)),f+="L ".concat(e+o*h[3],",").concat(t+n),h[3]>0&&(f+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(c,`,
        `).concat(e,",").concat(t+n-s*h[3])),f+="Z"}else if(a>0&&i===+i&&i>0){var g=Math.min(a,i);f="M ".concat(e,",").concat(t+s*g,`
            A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(e+o*g,",").concat(t,`
            L `).concat(e+r-o*g,",").concat(t,`
            A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(e+r,",").concat(t+s*g,`
            L `).concat(e+r,",").concat(t+n-s*g,`
            A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(e+r-o*g,",").concat(t+n,`
            L `).concat(e+o*g,",").concat(t+n,`
            A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(e,",").concat(t+n-s*g," Z")}else f="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return f},sce={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vj=e=>{var t=Di(e,sce),r=A.useRef(null),[n,i]=A.useState(-1);A.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var ne=r.current.getTotalLength();ne&&i(ne)}catch{}},[]);var{x:a,y:s,width:o,height:c,radius:f,className:h}=t,{animationEasing:p,animationDuration:m,animationBegin:g,isAnimationActive:y,isUpdateAnimationActive:x}=t,_=A.useRef(o),w=A.useRef(c),T=A.useRef(a),S=A.useRef(s),O=A.useMemo(()=>({x:a,y:s,width:o,height:c,radius:f}),[a,s,o,c,f]),C=Kx(O,"rectangle-");if(a!==+a||s!==+s||o!==+o||c!==+c||o===0||c===0)return null;var k=Gt("recharts-rectangle",h);if(!x)return A.createElement("path",jv({},Yr(t,!0),{className:k,d:D5(a,s,o,c,f)}));var D=_.current,M=w.current,N=T.current,z=S.current,H="0px ".concat(n===-1?1:n,"px"),B="".concat(n,"px 0px"),te=dj(["strokeDasharray"],m,typeof p=="string"?p:void 0);return A.createElement(Yx,{animationId:C,key:C,canBegin:n>0,duration:m,easing:p,isActive:x,begin:g},ne=>{var le=Si(D,o,ne),Q=Si(M,c,ne),ee=Si(N,a,ne),ce=Si(z,s,ne);r.current&&(_.current=le,w.current=Q,T.current=ee,S.current=ce);var J;return y?ne>0?J={transition:te,strokeDasharray:B}:J={strokeDasharray:H}:J={strokeDasharray:B},A.createElement("path",jv({},Yr(t,!0),{className:k,d:D5(ee,ce,le,Q,f),ref:r,style:k5(k5({},J),t.style)}))})};function xj(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,s=_n(t,r,n,i),o=_n(t,r,n,a);return{points:[s,o],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function jE(){return jE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jE.apply(null,arguments)}var oce=(e,t)=>{var r=Ai(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},hg=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:s,cornerRadius:o,cornerIsExternal:c}=e,f=o*(s?1:-1)+n,h=Math.asin(o/f)/Lv,p=c?i:i+a*h,m=_n(t,r,f,p),g=_n(t,r,n,p),y=c?i-a*h:i,x=_n(t,r,f*Math.cos(h*Lv),y);return{center:m,circleTangency:g,lineTangency:x,theta:h}},yj=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:s}=e,o=oce(a,s),c=a+o,f=_n(t,r,i,a),h=_n(t,r,i,c),p="M ".concat(f.x,",").concat(f.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(o)>180),",").concat(+(a>c),`,
    `).concat(h.x,",").concat(h.y,`
  `);if(n>0){var m=_n(t,r,n,a),g=_n(t,r,n,c);p+="L ".concat(g.x,",").concat(g.y,`
            A `).concat(n,",").concat(n,`,0,
            `).concat(+(Math.abs(o)>180),",").concat(+(a<=c),`,
            `).concat(m.x,",").concat(m.y," Z")}else p+="L ".concat(t,",").concat(r," Z");return p},lce=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:o,startAngle:c,endAngle:f}=e,h=Ai(f-c),{circleTangency:p,lineTangency:m,theta:g}=hg({cx:t,cy:r,radius:i,angle:c,sign:h,cornerRadius:a,cornerIsExternal:o}),{circleTangency:y,lineTangency:x,theta:_}=hg({cx:t,cy:r,radius:i,angle:f,sign:-h,cornerRadius:a,cornerIsExternal:o}),w=o?Math.abs(c-f):Math.abs(c-f)-g-_;if(w<0)return s?"M ".concat(m.x,",").concat(m.y,`
        a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
        a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
      `):yj({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:f});var T="M ".concat(m.x,",").concat(m.y,`
    A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(h<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,`
  `);if(n>0){var{circleTangency:S,lineTangency:O,theta:C}=hg({cx:t,cy:r,radius:n,angle:c,sign:h,isExternal:!0,cornerRadius:a,cornerIsExternal:o}),{circleTangency:k,lineTangency:D,theta:M}=hg({cx:t,cy:r,radius:n,angle:f,sign:-h,isExternal:!0,cornerRadius:a,cornerIsExternal:o}),N=o?Math.abs(c-f):Math.abs(c-f)-C-M;if(N<0&&a===0)return"".concat(T,"L").concat(t,",").concat(r,"Z");T+="L".concat(D.x,",").concat(D.y,`
      A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(k.x,",").concat(k.y,`
      A`).concat(n,",").concat(n,",0,").concat(+(N>180),",").concat(+(h>0),",").concat(S.x,",").concat(S.y,`
      A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(O.x,",").concat(O.y,"Z")}else T+="L".concat(t,",").concat(r,"Z");return T},cce={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},_j=e=>{var t=Di(e,cce),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:s,forceCornerRadius:o,cornerIsExternal:c,startAngle:f,endAngle:h,className:p}=t;if(a<i||f===h)return null;var m=Gt("recharts-sector",p),g=a-i,y=ja(s,g,0,!0),x;return y>0&&Math.abs(f-h)<360?x=lce({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(y,g/2),forceCornerRadius:o,cornerIsExternal:c,startAngle:f,endAngle:h}):x=yj({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:f,endAngle:h}),A.createElement("path",jE({},Yr(t,!0),{className:m,d:x}))};function uce(e,t,r){var n,i,a,s;if(e==="horizontal")n=t.x,a=n,i=r.top,s=r.top+r.height;else if(e==="vertical")i=t.y,s=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:o,cy:c,innerRadius:f,outerRadius:h,angle:p}=t,m=_n(o,c,f,p),g=_n(o,c,h,p);n=m.x,i=m.y,a=g.x,s=g.y}else return xj(t);return[{x:n,y:i},{x:a,y:s}]}var _w={},bw={},ww={},P5;function fce(){return P5||(P5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AB();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r}(ww)),ww}var M5;function hce(){return M5||(M5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fce();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r}(bw)),bw}var R5;function dce(){return R5||(R5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CB(),r=hce();function n(i,a,s){s&&typeof s!="number"&&t.isIterateeCall(i,a,s)&&(a=s=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),s=s===void 0?i<a?1:-1:r.toFinite(s);const o=Math.max(Math.ceil((a-i)/(s||1)),0),c=new Array(o);for(let f=0;f<o;f++)c[f]=i,i+=s;return c}e.range=n}(_w)),_w}var Sw,N5;function pce(){return N5||(N5=1,Sw=dce().range),Sw}var mce=pce();const bj=fl(mce);function lc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function gce(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function o4(e){let t,r,n;e.length!==2?(t=lc,r=(o,c)=>lc(e(o),c),n=(o,c)=>e(o)-c):(t=e===lc||e===gce?e:vce,r=e,n=e);function i(o,c,f=0,h=o.length){if(f<h){if(t(c,c)!==0)return h;do{const p=f+h>>>1;r(o[p],c)<0?f=p+1:h=p}while(f<h)}return f}function a(o,c,f=0,h=o.length){if(f<h){if(t(c,c)!==0)return h;do{const p=f+h>>>1;r(o[p],c)<=0?f=p+1:h=p}while(f<h)}return f}function s(o,c,f=0,h=o.length){const p=i(o,c,f,h-1);return p>f&&n(o[p-1],c)>-n(o[p],c)?p-1:p}return{left:i,center:s,right:a}}function vce(){return 0}function wj(e){return e===null?NaN:+e}function*xce(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const yce=o4(lc),dm=yce.right;o4(wj).center;class F5 extends Map{constructor(t,r=wce){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(L5(this,t))}has(t){return super.has(L5(this,t))}set(t,r){return super.set(_ce(this,t),r)}delete(t){return super.delete(bce(this,t))}}function L5({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function _ce({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function bce({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function wce(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Sce(e=lc){if(e===lc)return Sj;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Sj(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Ece=Math.sqrt(50),Tce=Math.sqrt(10),Ace=Math.sqrt(2);function Uv(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=Ece?10:a>=Tce?5:a>=Ace?2:1;let o,c,f;return i<0?(f=Math.pow(10,-i)/s,o=Math.round(e*f),c=Math.round(t*f),o/f<e&&++o,c/f>t&&--c,f=-f):(f=Math.pow(10,i)*s,o=Math.round(e/f),c=Math.round(t/f),o*f<e&&++o,c*f>t&&--c),c<o&&.5<=r&&r<2?Uv(e,t,r*2):[o,c,f]}function UE(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,s]=n?Uv(t,e,r):Uv(e,t,r);if(!(a>=i))return[];const o=a-i+1,c=new Array(o);if(n)if(s<0)for(let f=0;f<o;++f)c[f]=(a-f)/-s;else for(let f=0;f<o;++f)c[f]=(a-f)*s;else if(s<0)for(let f=0;f<o;++f)c[f]=(i+f)/-s;else for(let f=0;f<o;++f)c[f]=(i+f)*s;return c}function zE(e,t,r){return t=+t,e=+e,r=+r,Uv(e,t,r)[2]}function VE(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?zE(t,e,r):zE(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function I5(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function B5(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Ej(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Sj:Sce(i);n>r;){if(n-r>600){const c=n-r+1,f=t-r+1,h=Math.log(c),p=.5*Math.exp(2*h/3),m=.5*Math.sqrt(h*p*(c-p)/c)*(f-c/2<0?-1:1),g=Math.max(r,Math.floor(t-f*p/c+m)),y=Math.min(n,Math.floor(t+(c-f)*p/c+m));Ej(e,t,g,y,i)}const a=e[t];let s=r,o=n;for(dd(e,r,t),i(e[n],a)>0&&dd(e,r,n);s<o;){for(dd(e,s,o),++s,--o;i(e[s],a)<0;)++s;for(;i(e[o],a)>0;)--o}i(e[r],a)===0?dd(e,r,o):(++o,dd(e,o,n)),o<=t&&(r=o+1),t<=o&&(n=o-1)}return e}function dd(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Cce(e,t,r){if(e=Float64Array.from(xce(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return B5(e);if(t>=1)return I5(e);var n,i=(n-1)*t,a=Math.floor(i),s=I5(Ej(e,a).subarray(0,a+1)),o=B5(e.subarray(a+1));return s+(o-s)*(i-a)}}function Oce(e,t,r=wj){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),s=+r(e[a],a,e),o=+r(e[a+1],a+1,e);return s+(o-s)*(i-a)}}function kce(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ds(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function gl(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const HE=Symbol("implicit");function l4(){var e=new F5,t=[],r=[],n=HE;function i(a){let s=e.get(a);if(s===void 0){if(n!==HE)return n;e.set(a,s=t.push(a)-1)}return r[s%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new F5;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return l4(t,r).unknown(n)},Ds.apply(i,arguments),i}function c4(){var e=l4().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,s,o=!1,c=0,f=0,h=.5;delete e.unknown;function p(){var m=t().length,g=i<n,y=g?i:n,x=g?n:i;a=(x-y)/Math.max(1,m-c+f*2),o&&(a=Math.floor(a)),y+=(x-y-a*(m-c))*h,s=a*(1-c),o&&(y=Math.round(y),s=Math.round(s));var _=kce(m).map(function(w){return y+a*w});return r(g?_.reverse():_)}return e.domain=function(m){return arguments.length?(t(m),p()):t()},e.range=function(m){return arguments.length?([n,i]=m,n=+n,i=+i,p()):[n,i]},e.rangeRound=function(m){return[n,i]=m,n=+n,i=+i,o=!0,p()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(m){return arguments.length?(o=!!m,p()):o},e.padding=function(m){return arguments.length?(c=Math.min(1,f=+m),p()):c},e.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),p()):c},e.paddingOuter=function(m){return arguments.length?(f=+m,p()):f},e.align=function(m){return arguments.length?(h=Math.max(0,Math.min(1,m)),p()):h},e.copy=function(){return c4(t(),[n,i]).round(o).paddingInner(c).paddingOuter(f).align(h)},Ds.apply(p(),arguments)}function Tj(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Tj(t())},e}function Dce(){return Tj(c4.apply(null,arguments).paddingInner(1))}function u4(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Aj(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function pm(){}var Dp=.7,zv=1/Dp,m0="\\s*([+-]?\\d+)\\s*",Pp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pce=/^#([0-9a-f]{3,8})$/,Mce=new RegExp(`^rgb\\(${m0},${m0},${m0}\\)$`),Rce=new RegExp(`^rgb\\(${vo},${vo},${vo}\\)$`),Nce=new RegExp(`^rgba\\(${m0},${m0},${m0},${Pp}\\)$`),Fce=new RegExp(`^rgba\\(${vo},${vo},${vo},${Pp}\\)$`),Lce=new RegExp(`^hsl\\(${Pp},${vo},${vo}\\)$`),Ice=new RegExp(`^hsla\\(${Pp},${vo},${vo},${Pp}\\)$`),j5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};u4(pm,Mp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U5,formatHex:U5,formatHex8:Bce,formatHsl:jce,formatRgb:z5,toString:z5});function U5(){return this.rgb().formatHex()}function Bce(){return this.rgb().formatHex8()}function jce(){return Cj(this).formatHsl()}function z5(){return this.rgb().formatRgb()}function Mp(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Pce.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?V5(t):r===3?new ia(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?dg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?dg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Mce.exec(e))?new ia(t[1],t[2],t[3],1):(t=Rce.exec(e))?new ia(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Nce.exec(e))?dg(t[1],t[2],t[3],t[4]):(t=Fce.exec(e))?dg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lce.exec(e))?W5(t[1],t[2]/100,t[3]/100,1):(t=Ice.exec(e))?W5(t[1],t[2]/100,t[3]/100,t[4]):j5.hasOwnProperty(e)?V5(j5[e]):e==="transparent"?new ia(NaN,NaN,NaN,0):null}function V5(e){return new ia(e>>16&255,e>>8&255,e&255,1)}function dg(e,t,r,n){return n<=0&&(e=t=r=NaN),new ia(e,t,r,n)}function Uce(e){return e instanceof pm||(e=Mp(e)),e?(e=e.rgb(),new ia(e.r,e.g,e.b,e.opacity)):new ia}function $E(e,t,r,n){return arguments.length===1?Uce(e):new ia(e,t,r,n??1)}function ia(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}u4(ia,$E,Aj(pm,{brighter(e){return e=e==null?zv:Math.pow(zv,e),new ia(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dp:Math.pow(Dp,e),new ia(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ia(Eu(this.r),Eu(this.g),Eu(this.b),Vv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H5,formatHex:H5,formatHex8:zce,formatRgb:$5,toString:$5}));function H5(){return`#${lu(this.r)}${lu(this.g)}${lu(this.b)}`}function zce(){return`#${lu(this.r)}${lu(this.g)}${lu(this.b)}${lu((isNaN(this.opacity)?1:this.opacity)*255)}`}function $5(){const e=Vv(this.opacity);return`${e===1?"rgb(":"rgba("}${Eu(this.r)}, ${Eu(this.g)}, ${Eu(this.b)}${e===1?")":`, ${e})`}`}function Vv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Eu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lu(e){return e=Eu(e),(e<16?"0":"")+e.toString(16)}function W5(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zs(e,t,r,n)}function Cj(e){if(e instanceof zs)return new zs(e.h,e.s,e.l,e.opacity);if(e instanceof pm||(e=Mp(e)),!e)return new zs;if(e instanceof zs)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,o=a-i,c=(a+i)/2;return o?(t===a?s=(r-n)/o+(r<n)*6:r===a?s=(n-t)/o+2:s=(t-r)/o+4,o/=c<.5?a+i:2-a-i,s*=60):o=c>0&&c<1?0:s,new zs(s,o,c,e.opacity)}function Vce(e,t,r,n){return arguments.length===1?Cj(e):new zs(e,t,r,n??1)}function zs(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}u4(zs,Vce,Aj(pm,{brighter(e){return e=e==null?zv:Math.pow(zv,e),new zs(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dp:Math.pow(Dp,e),new zs(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ia(Ew(e>=240?e-240:e+120,i,n),Ew(e,i,n),Ew(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new zs(q5(this.h),pg(this.s),pg(this.l),Vv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Vv(this.opacity);return`${e===1?"hsl(":"hsla("}${q5(this.h)}, ${pg(this.s)*100}%, ${pg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function q5(e){return e=(e||0)%360,e<0?e+360:e}function pg(e){return Math.max(0,Math.min(1,e||0))}function Ew(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const f4=e=>()=>e;function Hce(e,t){return function(r){return e+r*t}}function $ce(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Wce(e){return(e=+e)==1?Oj:function(t,r){return r-t?$ce(t,r,e):f4(isNaN(t)?r:t)}}function Oj(e,t){var r=t-e;return r?Hce(e,r):f4(isNaN(e)?t:e)}const G5=function e(t){var r=Wce(t);function n(i,a){var s=r((i=$E(i)).r,(a=$E(a)).r),o=r(i.g,a.g),c=r(i.b,a.b),f=Oj(i.opacity,a.opacity);return function(h){return i.r=s(h),i.g=o(h),i.b=c(h),i.opacity=f(h),i+""}}return n.gamma=e,n}(1);function qce(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function Gce(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Xce(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s<n;++s)i[s]=K0(e[s],t[s]);for(;s<r;++s)a[s]=t[s];return function(o){for(s=0;s<n;++s)a[s]=i[s](o);return a}}function Yce(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Hv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Kce(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=K0(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var WE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tw=new RegExp(WE.source,"g");function Zce(e){return function(){return e}}function Qce(e){return function(t){return e(t)+""}}function Jce(e,t){var r=WE.lastIndex=Tw.lastIndex=0,n,i,a,s=-1,o=[],c=[];for(e=e+"",t=t+"";(n=WE.exec(e))&&(i=Tw.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,c.push({i:s,x:Hv(n,i)})),r=Tw.lastIndex;return r<t.length&&(a=t.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?c[0]?Qce(c[0].x):Zce(t):(t=c.length,function(f){for(var h=0,p;h<t;++h)o[(p=c[h]).i]=p.x(f);return o.join("")})}function K0(e,t){var r=typeof t,n;return t==null||r==="boolean"?f4(t):(r==="number"?Hv:r==="string"?(n=Mp(t))?(t=n,G5):Jce:t instanceof Mp?G5:t instanceof Date?Yce:Gce(t)?qce:Array.isArray(t)?Xce:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Kce:Hv)(e,t)}function h4(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function eue(e,t){t===void 0&&(t=e,e=K0);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(s){var o=Math.max(0,Math.min(n-1,Math.floor(s*=n)));return a[o](s-o)}}function tue(e){return function(){return e}}function $v(e){return+e}var X5=[0,1];function qi(e){return e}function qE(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:tue(isNaN(t)?NaN:.5)}function rue(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function nue(e,t,r){var n=e[0],i=e[1],a=t[0],s=t[1];return i<n?(n=qE(i,n),a=r(s,a)):(n=qE(n,i),a=r(a,s)),function(o){return a(n(o))}}function iue(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<n;)i[s]=qE(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(o){var c=dm(e,o,1,n)-1;return a[c](i[c](o))}}function mm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Zx(){var e=X5,t=X5,r=K0,n,i,a,s=qi,o,c,f;function h(){var m=Math.min(e.length,t.length);return s!==qi&&(s=rue(e[0],e[m-1])),o=m>2?iue:nue,c=f=null,p}function p(m){return m==null||isNaN(m=+m)?a:(c||(c=o(e.map(n),t,r)))(n(s(m)))}return p.invert=function(m){return s(i((f||(f=o(t,e.map(n),Hv)))(m)))},p.domain=function(m){return arguments.length?(e=Array.from(m,$v),h()):e.slice()},p.range=function(m){return arguments.length?(t=Array.from(m),h()):t.slice()},p.rangeRound=function(m){return t=Array.from(m),r=h4,h()},p.clamp=function(m){return arguments.length?(s=m?!0:qi,h()):s!==qi},p.interpolate=function(m){return arguments.length?(r=m,h()):r},p.unknown=function(m){return arguments.length?(a=m,p):a},function(m,g){return n=m,i=g,h()}}function d4(){return Zx()(qi,qi)}function aue(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Wv(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function R0(e){return e=Wv(Math.abs(e)),e?e[1]:NaN}function sue(e,t){return function(r,n){for(var i=r.length,a=[],s=0,o=e[0],c=0;i>0&&o>0&&(c+o+1>n&&(o=Math.max(1,n-c)),a.push(r.substring(i-=o,i+o)),!((c+=o+1)>n));)o=e[s=(s+1)%e.length];return a.reverse().join(t)}}function oue(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var lue=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rp(e){if(!(t=lue.exec(e)))throw new Error("invalid format: "+e);var t;return new p4({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Rp.prototype=p4.prototype;function p4(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}p4.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function cue(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var kj;function uue(e,t){var r=Wv(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(kj=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Wv(e,Math.max(0,t+a-1))[0]}function Y5(e,t){var r=Wv(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const K5={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:aue,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Y5(e*100,t),r:Y5,s:uue,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Z5(e){return e}var Q5=Array.prototype.map,J5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fue(e){var t=e.grouping===void 0||e.thousands===void 0?Z5:sue(Q5.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Z5:oue(Q5.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(p){p=Rp(p);var m=p.fill,g=p.align,y=p.sign,x=p.symbol,_=p.zero,w=p.width,T=p.comma,S=p.precision,O=p.trim,C=p.type;C==="n"?(T=!0,C="g"):K5[C]||(S===void 0&&(S=12),O=!0,C="g"),(_||m==="0"&&g==="=")&&(_=!0,m="0",g="=");var k=x==="$"?r:x==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",D=x==="$"?n:/[%p]/.test(C)?s:"",M=K5[C],N=/[defgprs%]/.test(C);S=S===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function z(H){var B=k,te=D,ne,le,Q;if(C==="c")te=M(H)+te,H="";else{H=+H;var ee=H<0||1/H<0;if(H=isNaN(H)?c:M(Math.abs(H),S),O&&(H=cue(H)),ee&&+H==0&&y!=="+"&&(ee=!1),B=(ee?y==="("?y:o:y==="-"||y==="("?"":y)+B,te=(C==="s"?J5[8+kj/3]:"")+te+(ee&&y==="("?")":""),N){for(ne=-1,le=H.length;++ne<le;)if(Q=H.charCodeAt(ne),48>Q||Q>57){te=(Q===46?i+H.slice(ne+1):H.slice(ne))+te,H=H.slice(0,ne);break}}}T&&!_&&(H=t(H,1/0));var ce=B.length+H.length+te.length,J=ce<w?new Array(w-ce+1).join(m):"";switch(T&&_&&(H=t(J+H,J.length?w-te.length:1/0),J=""),g){case"<":H=B+H+te+J;break;case"=":H=B+J+H+te;break;case"^":H=J.slice(0,ce=J.length>>1)+B+H+te+J.slice(ce);break;default:H=J+B+H+te;break}return a(H)}return z.toString=function(){return p+""},z}function h(p,m){var g=f((p=Rp(p),p.type="f",p)),y=Math.max(-8,Math.min(8,Math.floor(R0(m)/3)))*3,x=Math.pow(10,-y),_=J5[8+y/3];return function(w){return g(x*w)+_}}return{format:f,formatPrefix:h}}var mg,m4,Dj;hue({thousands:",",grouping:[3],currency:["$",""]});function hue(e){return mg=fue(e),m4=mg.format,Dj=mg.formatPrefix,mg}function due(e){return Math.max(0,-R0(Math.abs(e)))}function pue(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(R0(t)/3)))*3-R0(Math.abs(e)))}function mue(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,R0(t)-R0(e))+1}function Pj(e,t,r,n){var i=VE(e,t,r),a;switch(n=Rp(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=pue(i,s))&&(n.precision=a),Dj(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=mue(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=due(i))&&(n.precision=a-(n.type==="%")*2);break}}return m4(n)}function wc(e){var t=e.domain;return e.ticks=function(r){var n=t();return UE(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Pj(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,s=n[i],o=n[a],c,f,h=10;for(o<s&&(f=s,s=o,o=f,f=i,i=a,a=f);h-- >0;){if(f=zE(s,o,r),f===c)return n[i]=s,n[a]=o,t(n);if(f>0)s=Math.floor(s/f)*f,o=Math.ceil(o/f)*f;else if(f<0)s=Math.ceil(s*f)/f,o=Math.floor(o*f)/f;else break;c=f}return e},e}function Mj(){var e=d4();return e.copy=function(){return mm(e,Mj())},Ds.apply(e,arguments),wc(e)}function Rj(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,$v),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Rj(e).unknown(t)},e=arguments.length?Array.from(e,$v):[0,1],wc(r)}function Nj(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],s;return a<i&&(s=r,r=n,n=s,s=i,i=a,a=s),e[r]=t.floor(i),e[n]=t.ceil(a),e}function e8(e){return Math.log(e)}function t8(e){return Math.exp(e)}function gue(e){return-Math.log(-e)}function vue(e){return-Math.exp(-e)}function xue(e){return isFinite(e)?+("1e"+e):e<0?0:e}function yue(e){return e===10?xue:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _ue(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function r8(e){return(t,r)=>-e(-t,r)}function g4(e){const t=e(e8,t8),r=t.domain;let n=10,i,a;function s(){return i=_ue(n),a=yue(n),r()[0]<0?(i=r8(i),a=r8(a),e(gue,vue)):e(e8,t8),t}return t.base=function(o){return arguments.length?(n=+o,s()):n},t.domain=function(o){return arguments.length?(r(o),s()):r()},t.ticks=o=>{const c=r();let f=c[0],h=c[c.length-1];const p=h<f;p&&([f,h]=[h,f]);let m=i(f),g=i(h),y,x;const _=o==null?10:+o;let w=[];if(!(n%1)&&g-m<_){if(m=Math.floor(m),g=Math.ceil(g),f>0){for(;m<=g;++m)for(y=1;y<n;++y)if(x=m<0?y/a(-m):y*a(m),!(x<f)){if(x>h)break;w.push(x)}}else for(;m<=g;++m)for(y=n-1;y>=1;--y)if(x=m>0?y/a(-m):y*a(m),!(x<f)){if(x>h)break;w.push(x)}w.length*2<_&&(w=UE(f,h,_))}else w=UE(m,g,Math.min(g-m,_)).map(a);return p?w.reverse():w},t.tickFormat=(o,c)=>{if(o==null&&(o=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Rp(c)).precision==null&&(c.trim=!0),c=m4(c)),o===1/0)return c;const f=Math.max(1,n*o/t.ticks().length);return h=>{let p=h/a(Math.round(i(h)));return p*n<n-.5&&(p*=n),p<=f?c(h):""}},t.nice=()=>r(Nj(r(),{floor:o=>a(Math.floor(i(o))),ceil:o=>a(Math.ceil(i(o)))})),t}function Fj(){const e=g4(Zx()).domain([1,10]);return e.copy=()=>mm(e,Fj()).base(e.base()),Ds.apply(e,arguments),e}function n8(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function i8(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function v4(e){var t=1,r=e(n8(t),i8(t));return r.constant=function(n){return arguments.length?e(n8(t=+n),i8(t)):t},wc(r)}function Lj(){var e=v4(Zx());return e.copy=function(){return mm(e,Lj()).constant(e.constant())},Ds.apply(e,arguments)}function a8(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function bue(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function wue(e){return e<0?-e*e:e*e}function x4(e){var t=e(qi,qi),r=1;function n(){return r===1?e(qi,qi):r===.5?e(bue,wue):e(a8(r),a8(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},wc(t)}function y4(){var e=x4(Zx());return e.copy=function(){return mm(e,y4()).exponent(e.exponent())},Ds.apply(e,arguments),e}function Sue(){return y4.apply(null,arguments).exponent(.5)}function s8(e){return Math.sign(e)*e*e}function Eue(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Ij(){var e=d4(),t=[0,1],r=!1,n;function i(a){var s=Eue(e(a));return isNaN(s)?n:r?Math.round(s):s}return i.invert=function(a){return e.invert(s8(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,$v)).map(s8)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Ij(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ds.apply(i,arguments),wc(i)}function Bj(){var e=[],t=[],r=[],n;function i(){var s=0,o=Math.max(1,t.length);for(r=new Array(o-1);++s<o;)r[s-1]=Oce(e,s/o);return a}function a(s){return s==null||isNaN(s=+s)?n:t[dm(r,s)]}return a.invertExtent=function(s){var o=t.indexOf(s);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let o of s)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(lc),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Bj().domain(e).range(t).unknown(n)},Ds.apply(a,arguments)}function jj(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function s(c){return c!=null&&c<=c?i[dm(n,c,0,r)]:a}function o(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return s}return s.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,o()):[e,t]},s.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,o()):i.slice()},s.invertExtent=function(c){var f=i.indexOf(c);return f<0?[NaN,NaN]:f<1?[e,n[0]]:f>=r?[n[r-1],t]:[n[f-1],n[f]]},s.unknown=function(c){return arguments.length&&(a=c),s},s.thresholds=function(){return n.slice()},s.copy=function(){return jj().domain([e,t]).range(i).unknown(a)},Ds.apply(wc(s),arguments)}function Uj(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[dm(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Uj().domain(e).range(t).unknown(r)},Ds.apply(i,arguments)}const Aw=new Date,Cw=new Date;function Mn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s<o-a?s:o},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const c=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a<s)||!(o>0))return c;let f;do c.push(f=new Date(+a)),t(a,o),e(a);while(f<a&&a<s);return c},i.filter=a=>Mn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!a(s););else for(;--o>=0;)for(;t(s,1),!a(s););}),r&&(i.count=(a,s)=>(Aw.setTime(+a),Cw.setTime(+s),e(Aw),e(Cw),Math.floor(r(Aw,Cw))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const qv=Mn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);qv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Mn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):qv);qv.range;const Wo=1e3,bs=Wo*60,qo=bs*60,ol=qo*24,_4=ol*7,o8=ol*30,Ow=ol*365,cu=Mn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wo)},(e,t)=>(t-e)/Wo,e=>e.getUTCSeconds());cu.range;const b4=Mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wo)},(e,t)=>{e.setTime(+e+t*bs)},(e,t)=>(t-e)/bs,e=>e.getMinutes());b4.range;const w4=Mn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*bs)},(e,t)=>(t-e)/bs,e=>e.getUTCMinutes());w4.range;const S4=Mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wo-e.getMinutes()*bs)},(e,t)=>{e.setTime(+e+t*qo)},(e,t)=>(t-e)/qo,e=>e.getHours());S4.range;const E4=Mn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qo)},(e,t)=>(t-e)/qo,e=>e.getUTCHours());E4.range;const gm=Mn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*bs)/ol,e=>e.getDate()-1);gm.range;const Qx=Mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ol,e=>e.getUTCDate()-1);Qx.range;const zj=Mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ol,e=>Math.floor(e/ol));zj.range;function Ku(e){return Mn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*bs)/_4)}const Jx=Ku(0),Gv=Ku(1),Tue=Ku(2),Aue=Ku(3),N0=Ku(4),Cue=Ku(5),Oue=Ku(6);Jx.range;Gv.range;Tue.range;Aue.range;N0.range;Cue.range;Oue.range;function Zu(e){return Mn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/_4)}const ey=Zu(0),Xv=Zu(1),kue=Zu(2),Due=Zu(3),F0=Zu(4),Pue=Zu(5),Mue=Zu(6);ey.range;Xv.range;kue.range;Due.range;F0.range;Pue.range;Mue.range;const T4=Mn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());T4.range;const A4=Mn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());A4.range;const ll=Mn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ll.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Mn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});ll.range;const cl=Mn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());cl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Mn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});cl.range;function Vj(e,t,r,n,i,a){const s=[[cu,1,Wo],[cu,5,5*Wo],[cu,15,15*Wo],[cu,30,30*Wo],[a,1,bs],[a,5,5*bs],[a,15,15*bs],[a,30,30*bs],[i,1,qo],[i,3,3*qo],[i,6,6*qo],[i,12,12*qo],[n,1,ol],[n,2,2*ol],[r,1,_4],[t,1,o8],[t,3,3*o8],[e,1,Ow]];function o(f,h,p){const m=h<f;m&&([f,h]=[h,f]);const g=p&&typeof p.range=="function"?p:c(f,h,p),y=g?g.range(f,+h+1):[];return m?y.reverse():y}function c(f,h,p){const m=Math.abs(h-f)/p,g=o4(([,,_])=>_).right(s,m);if(g===s.length)return e.every(VE(f/Ow,h/Ow,p));if(g===0)return qv.every(Math.max(VE(f,h,p),1));const[y,x]=s[m/s[g-1][2]<s[g][2]/m?g-1:g];return y.every(x)}return[o,c]}const[Rue,Nue]=Vj(cl,A4,ey,zj,E4,w4),[Fue,Lue]=Vj(ll,T4,Jx,gm,S4,b4);function kw(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Dw(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function pd(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Iue(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,c=e.shortMonths,f=md(i),h=gd(i),p=md(a),m=gd(a),g=md(s),y=gd(s),x=md(o),_=gd(o),w=md(c),T=gd(c),S={a:ee,A:ce,b:J,B:R,c:null,d:d8,e:d8,f:sfe,g:gfe,G:xfe,H:nfe,I:ife,j:afe,L:Hj,m:ofe,M:lfe,p:se,q:F,Q:g8,s:v8,S:cfe,u:ufe,U:ffe,V:hfe,w:dfe,W:pfe,x:null,X:null,y:mfe,Y:vfe,Z:yfe,"%":m8},O={a:V,A:q,b:X,B:ae,c:null,d:p8,e:p8,f:Sfe,g:Rfe,G:Ffe,H:_fe,I:bfe,j:wfe,L:Wj,m:Efe,M:Tfe,p:Se,q:Te,Q:g8,s:v8,S:Afe,u:Cfe,U:Ofe,V:kfe,w:Dfe,W:Pfe,x:null,X:null,y:Mfe,Y:Nfe,Z:Lfe,"%":m8},C={a:z,A:H,b:B,B:te,c:ne,d:f8,e:f8,f:Jue,g:u8,G:c8,H:h8,I:h8,j:Yue,L:Que,m:Xue,M:Kue,p:N,q:Gue,Q:tfe,s:rfe,S:Zue,u:Vue,U:Hue,V:$ue,w:zue,W:Wue,x:le,X:Q,y:u8,Y:c8,Z:que,"%":efe};S.x=k(r,S),S.X=k(n,S),S.c=k(t,S),O.x=k(r,O),O.X=k(n,O),O.c=k(t,O);function k(ue,xe){return function(Ne){var j=[],ze=-1,Le=0,He=ue.length,Xe,ie,yt;for(Ne instanceof Date||(Ne=new Date(+Ne));++ze<He;)ue.charCodeAt(ze)===37&&(j.push(ue.slice(Le,ze)),(ie=l8[Xe=ue.charAt(++ze)])!=null?Xe=ue.charAt(++ze):ie=Xe==="e"?" ":"0",(yt=xe[Xe])&&(Xe=yt(Ne,ie)),j.push(Xe),Le=ze+1);return j.push(ue.slice(Le,ze)),j.join("")}}function D(ue,xe){return function(Ne){var j=pd(1900,void 0,1),ze=M(j,ue,Ne+="",0),Le,He;if(ze!=Ne.length)return null;if("Q"in j)return new Date(j.Q);if("s"in j)return new Date(j.s*1e3+("L"in j?j.L:0));if(xe&&!("Z"in j)&&(j.Z=0),"p"in j&&(j.H=j.H%12+j.p*12),j.m===void 0&&(j.m="q"in j?j.q:0),"V"in j){if(j.V<1||j.V>53)return null;"w"in j||(j.w=1),"Z"in j?(Le=Dw(pd(j.y,0,1)),He=Le.getUTCDay(),Le=He>4||He===0?Xv.ceil(Le):Xv(Le),Le=Qx.offset(Le,(j.V-1)*7),j.y=Le.getUTCFullYear(),j.m=Le.getUTCMonth(),j.d=Le.getUTCDate()+(j.w+6)%7):(Le=kw(pd(j.y,0,1)),He=Le.getDay(),Le=He>4||He===0?Gv.ceil(Le):Gv(Le),Le=gm.offset(Le,(j.V-1)*7),j.y=Le.getFullYear(),j.m=Le.getMonth(),j.d=Le.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),He="Z"in j?Dw(pd(j.y,0,1)).getUTCDay():kw(pd(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-(He+5)%7:j.w+j.U*7-(He+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,Dw(j)):kw(j)}}function M(ue,xe,Ne,j){for(var ze=0,Le=xe.length,He=Ne.length,Xe,ie;ze<Le;){if(j>=He)return-1;if(Xe=xe.charCodeAt(ze++),Xe===37){if(Xe=xe.charAt(ze++),ie=C[Xe in l8?xe.charAt(ze++):Xe],!ie||(j=ie(ue,Ne,j))<0)return-1}else if(Xe!=Ne.charCodeAt(j++))return-1}return j}function N(ue,xe,Ne){var j=f.exec(xe.slice(Ne));return j?(ue.p=h.get(j[0].toLowerCase()),Ne+j[0].length):-1}function z(ue,xe,Ne){var j=g.exec(xe.slice(Ne));return j?(ue.w=y.get(j[0].toLowerCase()),Ne+j[0].length):-1}function H(ue,xe,Ne){var j=p.exec(xe.slice(Ne));return j?(ue.w=m.get(j[0].toLowerCase()),Ne+j[0].length):-1}function B(ue,xe,Ne){var j=w.exec(xe.slice(Ne));return j?(ue.m=T.get(j[0].toLowerCase()),Ne+j[0].length):-1}function te(ue,xe,Ne){var j=x.exec(xe.slice(Ne));return j?(ue.m=_.get(j[0].toLowerCase()),Ne+j[0].length):-1}function ne(ue,xe,Ne){return M(ue,t,xe,Ne)}function le(ue,xe,Ne){return M(ue,r,xe,Ne)}function Q(ue,xe,Ne){return M(ue,n,xe,Ne)}function ee(ue){return s[ue.getDay()]}function ce(ue){return a[ue.getDay()]}function J(ue){return c[ue.getMonth()]}function R(ue){return o[ue.getMonth()]}function se(ue){return i[+(ue.getHours()>=12)]}function F(ue){return 1+~~(ue.getMonth()/3)}function V(ue){return s[ue.getUTCDay()]}function q(ue){return a[ue.getUTCDay()]}function X(ue){return c[ue.getUTCMonth()]}function ae(ue){return o[ue.getUTCMonth()]}function Se(ue){return i[+(ue.getUTCHours()>=12)]}function Te(ue){return 1+~~(ue.getUTCMonth()/3)}return{format:function(ue){var xe=k(ue+="",S);return xe.toString=function(){return ue},xe},parse:function(ue){var xe=D(ue+="",!1);return xe.toString=function(){return ue},xe},utcFormat:function(ue){var xe=k(ue+="",O);return xe.toString=function(){return ue},xe},utcParse:function(ue){var xe=D(ue+="",!0);return xe.toString=function(){return ue},xe}}}var l8={"-":"",_:" ",0:"0"},Xn=/^\s*\d+/,Bue=/^%/,jue=/[\\^$*+?|[\]().{}]/g;function Wt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Uue(e){return e.replace(jue,"\\$&")}function md(e){return new RegExp("^(?:"+e.map(Uue).join("|")+")","i")}function gd(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function zue(e,t,r){var n=Xn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Vue(e,t,r){var n=Xn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Hue(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function $ue(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Wue(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function c8(e,t,r){var n=Xn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function u8(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function que(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Gue(e,t,r){var n=Xn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Xue(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function f8(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Yue(e,t,r){var n=Xn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function h8(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Kue(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Zue(e,t,r){var n=Xn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Que(e,t,r){var n=Xn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Jue(e,t,r){var n=Xn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function efe(e,t,r){var n=Bue.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function tfe(e,t,r){var n=Xn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function rfe(e,t,r){var n=Xn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function d8(e,t){return Wt(e.getDate(),t,2)}function nfe(e,t){return Wt(e.getHours(),t,2)}function ife(e,t){return Wt(e.getHours()%12||12,t,2)}function afe(e,t){return Wt(1+gm.count(ll(e),e),t,3)}function Hj(e,t){return Wt(e.getMilliseconds(),t,3)}function sfe(e,t){return Hj(e,t)+"000"}function ofe(e,t){return Wt(e.getMonth()+1,t,2)}function lfe(e,t){return Wt(e.getMinutes(),t,2)}function cfe(e,t){return Wt(e.getSeconds(),t,2)}function ufe(e){var t=e.getDay();return t===0?7:t}function ffe(e,t){return Wt(Jx.count(ll(e)-1,e),t,2)}function $j(e){var t=e.getDay();return t>=4||t===0?N0(e):N0.ceil(e)}function hfe(e,t){return e=$j(e),Wt(N0.count(ll(e),e)+(ll(e).getDay()===4),t,2)}function dfe(e){return e.getDay()}function pfe(e,t){return Wt(Gv.count(ll(e)-1,e),t,2)}function mfe(e,t){return Wt(e.getFullYear()%100,t,2)}function gfe(e,t){return e=$j(e),Wt(e.getFullYear()%100,t,2)}function vfe(e,t){return Wt(e.getFullYear()%1e4,t,4)}function xfe(e,t){var r=e.getDay();return e=r>=4||r===0?N0(e):N0.ceil(e),Wt(e.getFullYear()%1e4,t,4)}function yfe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Wt(t/60|0,"0",2)+Wt(t%60,"0",2)}function p8(e,t){return Wt(e.getUTCDate(),t,2)}function _fe(e,t){return Wt(e.getUTCHours(),t,2)}function bfe(e,t){return Wt(e.getUTCHours()%12||12,t,2)}function wfe(e,t){return Wt(1+Qx.count(cl(e),e),t,3)}function Wj(e,t){return Wt(e.getUTCMilliseconds(),t,3)}function Sfe(e,t){return Wj(e,t)+"000"}function Efe(e,t){return Wt(e.getUTCMonth()+1,t,2)}function Tfe(e,t){return Wt(e.getUTCMinutes(),t,2)}function Afe(e,t){return Wt(e.getUTCSeconds(),t,2)}function Cfe(e){var t=e.getUTCDay();return t===0?7:t}function Ofe(e,t){return Wt(ey.count(cl(e)-1,e),t,2)}function qj(e){var t=e.getUTCDay();return t>=4||t===0?F0(e):F0.ceil(e)}function kfe(e,t){return e=qj(e),Wt(F0.count(cl(e),e)+(cl(e).getUTCDay()===4),t,2)}function Dfe(e){return e.getUTCDay()}function Pfe(e,t){return Wt(Xv.count(cl(e)-1,e),t,2)}function Mfe(e,t){return Wt(e.getUTCFullYear()%100,t,2)}function Rfe(e,t){return e=qj(e),Wt(e.getUTCFullYear()%100,t,2)}function Nfe(e,t){return Wt(e.getUTCFullYear()%1e4,t,4)}function Ffe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?F0(e):F0.ceil(e),Wt(e.getUTCFullYear()%1e4,t,4)}function Lfe(){return"+0000"}function m8(){return"%"}function g8(e){return+e}function v8(e){return Math.floor(+e/1e3)}var $f,Gj,Xj;Ife({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ife(e){return $f=Iue(e),Gj=$f.format,$f.parse,Xj=$f.utcFormat,$f.utcParse,$f}function Bfe(e){return new Date(e)}function jfe(e){return e instanceof Date?+e:+new Date(+e)}function C4(e,t,r,n,i,a,s,o,c,f){var h=d4(),p=h.invert,m=h.domain,g=f(".%L"),y=f(":%S"),x=f("%I:%M"),_=f("%I %p"),w=f("%a %d"),T=f("%b %d"),S=f("%B"),O=f("%Y");function C(k){return(c(k)<k?g:o(k)<k?y:s(k)<k?x:a(k)<k?_:n(k)<k?i(k)<k?w:T:r(k)<k?S:O)(k)}return h.invert=function(k){return new Date(p(k))},h.domain=function(k){return arguments.length?m(Array.from(k,jfe)):m().map(Bfe)},h.ticks=function(k){var D=m();return e(D[0],D[D.length-1],k??10)},h.tickFormat=function(k,D){return D==null?C:f(D)},h.nice=function(k){var D=m();return(!k||typeof k.range!="function")&&(k=t(D[0],D[D.length-1],k??10)),k?m(Nj(D,k)):h},h.copy=function(){return mm(h,C4(e,t,r,n,i,a,s,o,c,f))},h}function Ufe(){return Ds.apply(C4(Fue,Lue,ll,T4,Jx,gm,S4,b4,cu,Gj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function zfe(){return Ds.apply(C4(Rue,Nue,cl,A4,ey,Qx,E4,w4,cu,Xj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ty(){var e=0,t=1,r,n,i,a,s=qi,o=!1,c;function f(p){return p==null||isNaN(p=+p)?c:s(i===0?.5:(p=(a(p)-r)*i,o?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t]=p,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),f):[e,t]},f.clamp=function(p){return arguments.length?(o=!!p,f):o},f.interpolator=function(p){return arguments.length?(s=p,f):s};function h(p){return function(m){var g,y;return arguments.length?([g,y]=m,s=p(g,y),f):[s(0),s(1)]}}return f.range=h(K0),f.rangeRound=h(h4),f.unknown=function(p){return arguments.length?(c=p,f):c},function(p){return a=p,r=p(e),n=p(t),i=r===n?0:1/(n-r),f}}function Sc(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Yj(){var e=wc(ty()(qi));return e.copy=function(){return Sc(e,Yj())},gl.apply(e,arguments)}function Kj(){var e=g4(ty()).domain([1,10]);return e.copy=function(){return Sc(e,Kj()).base(e.base())},gl.apply(e,arguments)}function Zj(){var e=v4(ty());return e.copy=function(){return Sc(e,Zj()).constant(e.constant())},gl.apply(e,arguments)}function O4(){var e=x4(ty());return e.copy=function(){return Sc(e,O4()).exponent(e.exponent())},gl.apply(e,arguments)}function Vfe(){return O4.apply(null,arguments).exponent(.5)}function Qj(){var e=[],t=qi;function r(n){if(n!=null&&!isNaN(n=+n))return t((dm(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(lc),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>Cce(e,a/n))},r.copy=function(){return Qj(t).domain(e)},gl.apply(r,arguments)}function ry(){var e=0,t=.5,r=1,n=1,i,a,s,o,c,f=qi,h,p=!1,m;function g(x){return isNaN(x=+x)?m:(x=.5+((x=+h(x))-a)*(n*x<n*a?o:c),f(p?Math.max(0,Math.min(1,x)):x))}g.domain=function(x){return arguments.length?([e,t,r]=x,i=h(e=+e),a=h(t=+t),s=h(r=+r),o=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),n=a<i?-1:1,g):[e,t,r]},g.clamp=function(x){return arguments.length?(p=!!x,g):p},g.interpolator=function(x){return arguments.length?(f=x,g):f};function y(x){return function(_){var w,T,S;return arguments.length?([w,T,S]=_,f=eue(x,[w,T,S]),g):[f(0),f(.5),f(1)]}}return g.range=y(K0),g.rangeRound=y(h4),g.unknown=function(x){return arguments.length?(m=x,g):m},function(x){return h=x,i=x(e),a=x(t),s=x(r),o=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),n=a<i?-1:1,g}}function Jj(){var e=wc(ry()(qi));return e.copy=function(){return Sc(e,Jj())},gl.apply(e,arguments)}function eU(){var e=g4(ry()).domain([.1,1,10]);return e.copy=function(){return Sc(e,eU()).base(e.base())},gl.apply(e,arguments)}function tU(){var e=v4(ry());return e.copy=function(){return Sc(e,tU()).constant(e.constant())},gl.apply(e,arguments)}function k4(){var e=x4(ry());return e.copy=function(){return Sc(e,k4()).exponent(e.exponent())},gl.apply(e,arguments)}function Hfe(){return k4.apply(null,arguments).exponent(.5)}const Dd=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:c4,scaleDiverging:Jj,scaleDivergingLog:eU,scaleDivergingPow:k4,scaleDivergingSqrt:Hfe,scaleDivergingSymlog:tU,scaleIdentity:Rj,scaleImplicit:HE,scaleLinear:Mj,scaleLog:Fj,scaleOrdinal:l4,scalePoint:Dce,scalePow:y4,scaleQuantile:Bj,scaleQuantize:jj,scaleRadial:Ij,scaleSequential:Yj,scaleSequentialLog:Kj,scaleSequentialPow:O4,scaleSequentialQuantile:Qj,scaleSequentialSqrt:Vfe,scaleSequentialSymlog:Zj,scaleSqrt:Sue,scaleSymlog:Lj,scaleThreshold:Uj,scaleTime:Ufe,scaleUtc:zfe,tickFormat:Pj},Symbol.toStringTag,{value:"Module"}));var Ec=e=>e.chartData,D4=Ee([Ec],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),P4=(e,t,r,n)=>n?D4(e):Ec(e);function L0(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Gs(t)&&Gs(r))return!0}return!1}function x8(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function $fe(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(Gs(r))i=r;else if(typeof r=="function")return;if(Gs(n))a=n;else if(typeof n=="function")return;var s=[i,a];if(L0(s))return s}}function Wfe(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(L0(n))return x8(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,s,o;if(i==="auto")t!=null&&(s=Math.min(...t));else if(ut(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[0]))}catch{}else if(typeof i=="string"&&l5.test(i)){var c=l5.exec(i);if(c==null||t==null)s=void 0;else{var f=+c[1];s=t[0]-f}}else s=t?.[0];if(a==="auto")t!=null&&(o=Math.max(...t));else if(ut(a))o=a;else if(typeof a=="function")try{t!=null&&(o=a(t?.[1]))}catch{}else if(typeof a=="string"&&c5.test(a)){var h=c5.exec(a);if(h==null||t==null)o=void 0;else{var p=+h[1];o=t[1]+p}}else o=t?.[1];var m=[s,o];if(L0(m))return t==null?m:x8(m,t,r)}}}var Z0=1e9,qfe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},R4,Or=!0,Cs="[DecimalError] ",Tu=Cs+"Invalid argument: ",M4=Cs+"Exponent out of range: ",Q0=Math.floor,eu=Math.pow,Gfe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Na,Vn=1e7,yr=7,rU=9007199254740991,Yv=Q0(rU/yr),Ke={};Ke.absoluteValue=Ke.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ke.comparedTo=Ke.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Ke.decimalPlaces=Ke.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*yr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ke.dividedBy=Ke.div=function(e){return Zo(this,new this.constructor(e))};Ke.dividedToIntegerBy=Ke.idiv=function(e){var t=this,r=t.constructor;return dr(Zo(t,new r(e),0,1),r.precision)};Ke.equals=Ke.eq=function(e){return!this.cmp(e)};Ke.exponent=function(){return bn(this)};Ke.greaterThan=Ke.gt=function(e){return this.cmp(e)>0};Ke.greaterThanOrEqualTo=Ke.gte=function(e){return this.cmp(e)>=0};Ke.isInteger=Ke.isint=function(){return this.e>this.d.length-2};Ke.isNegative=Ke.isneg=function(){return this.s<0};Ke.isPositive=Ke.ispos=function(){return this.s>0};Ke.isZero=function(){return this.s===0};Ke.lessThan=Ke.lt=function(e){return this.cmp(e)<0};Ke.lessThanOrEqualTo=Ke.lte=function(e){return this.cmp(e)<1};Ke.logarithm=Ke.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Na))throw Error(Cs+"NaN");if(r.s<1)throw Error(Cs+(r.s?"NaN":"-Infinity"));return r.eq(Na)?new n(0):(Or=!1,t=Zo(Np(r,a),Np(e,a),a),Or=!0,dr(t,i))};Ke.minus=Ke.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?aU(t,e):nU(t,(e.s=-e.s,e))};Ke.modulo=Ke.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Cs+"NaN");return r.s?(Or=!1,t=Zo(r,e,0,1).times(e),Or=!0,r.minus(t)):dr(new n(r),i)};Ke.naturalExponential=Ke.exp=function(){return iU(this)};Ke.naturalLogarithm=Ke.ln=function(){return Np(this)};Ke.negated=Ke.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ke.plus=Ke.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nU(t,e):aU(t,(e.s=-e.s,e))};Ke.precision=Ke.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Tu+e);if(t=bn(i)+1,n=i.d.length-1,r=n*yr+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Ke.squareRoot=Ke.sqrt=function(){var e,t,r,n,i,a,s,o=this,c=o.constructor;if(o.s<1){if(!o.s)return new c(0);throw Error(Cs+"NaN")}for(e=bn(o),Or=!1,i=Math.sqrt(+o),i==0||i==1/0?(t=uo(o.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Q0((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=s=r+3;;)if(a=n,n=a.plus(Zo(o,a,s+2)).times(.5),uo(a.d).slice(0,s)===(t=uo(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(dr(a,r+1,0),a.times(a).eq(o)){n=a;break}}else if(t!="9999")break;s+=4}return Or=!0,dr(n,r)};Ke.times=Ke.mul=function(e){var t,r,n,i,a,s,o,c,f,h=this,p=h.constructor,m=h.d,g=(e=new p(e)).d;if(!h.s||!e.s)return new p(0);for(e.s*=h.s,r=h.e+e.e,c=m.length,f=g.length,c<f&&(a=m,m=g,g=a,s=c,c=f,f=s),a=[],s=c+f,n=s;n--;)a.push(0);for(n=f;--n>=0;){for(t=0,i=c+n;i>n;)o=a[i]+g[n]*m[i-n-1]+t,a[i--]=o%Vn|0,t=o/Vn|0;a[i]=(a[i]+t)%Vn|0}for(;!a[--s];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Or?dr(e,p.precision):e};Ke.toDecimalPlaces=Ke.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(bo(e,0,Z0),t===void 0?t=n.rounding:bo(t,0,8),dr(r,e+bn(r)+1,t))};Ke.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Bu(n,!0):(bo(e,0,Z0),t===void 0?t=i.rounding:bo(t,0,8),n=dr(new i(n),e+1,t),r=Bu(n,!0,e+1)),r};Ke.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Bu(i):(bo(e,0,Z0),t===void 0?t=a.rounding:bo(t,0,8),n=dr(new a(i),e+bn(i)+1,t),r=Bu(n.abs(),!1,e+bn(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Ke.toInteger=Ke.toint=function(){var e=this,t=e.constructor;return dr(new t(e),bn(e)+1,t.rounding)};Ke.toNumber=function(){return+this};Ke.toPower=Ke.pow=function(e){var t,r,n,i,a,s,o=this,c=o.constructor,f=12,h=+(e=new c(e));if(!e.s)return new c(Na);if(o=new c(o),!o.s){if(e.s<1)throw Error(Cs+"Infinity");return o}if(o.eq(Na))return o;if(n=c.precision,e.eq(Na))return dr(o,n);if(t=e.e,r=e.d.length-1,s=t>=r,a=o.s,s){if((r=h<0?-h:h)<=rU){for(i=new c(Na),t=Math.ceil(n/yr+4),Or=!1;r%2&&(i=i.times(o),_8(i.d,t)),r=Q0(r/2),r!==0;)o=o.times(o),_8(o.d,t);return Or=!0,e.s<0?new c(Na).div(i):dr(i,n)}}else if(a<0)throw Error(Cs+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,o.s=1,Or=!1,i=e.times(Np(o,n+f)),Or=!0,i=iU(i),i.s=a,i};Ke.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=bn(i),n=Bu(i,r<=a.toExpNeg||r>=a.toExpPos)):(bo(e,1,Z0),t===void 0?t=a.rounding:bo(t,0,8),i=dr(new a(i),e,t),r=bn(i),n=Bu(i,e<=r||r<=a.toExpNeg,e)),n};Ke.toSignificantDigits=Ke.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(bo(e,1,Z0),t===void 0?t=n.rounding:bo(t,0,8)),dr(new n(r),e,t)};Ke.toString=Ke.valueOf=Ke.val=Ke.toJSON=Ke[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bn(e),r=e.constructor;return Bu(e,t<=r.toExpNeg||t>=r.toExpPos)};function nU(e,t){var r,n,i,a,s,o,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),Or?dr(t,p):t;if(c=e.d,f=t.d,s=e.e,i=t.e,c=c.slice(),a=s-i,a){for(a<0?(n=c,a=-a,o=f.length):(n=f,i=s,o=c.length),s=Math.ceil(p/yr),o=s>o?s+1:o+1,a>o&&(a=o,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(o=c.length,a=f.length,o-a<0&&(a=o,n=f,f=c,c=n),r=0;a;)r=(c[--a]=c[a]+f[a]+r)/Vn|0,c[a]%=Vn;for(r&&(c.unshift(r),++i),o=c.length;c[--o]==0;)c.pop();return t.d=c,t.e=i,Or?dr(t,p):t}function bo(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Tu+e)}function uo(e){var t,r,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)n=e[t]+"",r=yr-n.length,r&&(a+=Yl(r)),a+=n;s=e[t],n=s+"",r=yr-n.length,r&&(a+=Yl(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var Zo=function(){function e(n,i){var a,s=0,o=n.length;for(n=n.slice();o--;)a=n[o]*i+s,n[o]=a%Vn|0,s=a/Vn|0;return s&&n.unshift(s),n}function t(n,i,a,s){var o,c;if(a!=s)c=a>s?1:-1;else for(o=c=0;o<a;o++)if(n[o]!=i[o]){c=n[o]>i[o]?1:-1;break}return c}function r(n,i,a){for(var s=0;a--;)n[a]-=s,s=n[a]<i[a]?1:0,n[a]=s*Vn+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,s){var o,c,f,h,p,m,g,y,x,_,w,T,S,O,C,k,D,M,N=n.constructor,z=n.s==i.s?1:-1,H=n.d,B=i.d;if(!n.s)return new N(n);if(!i.s)throw Error(Cs+"Division by zero");for(c=n.e-i.e,D=B.length,C=H.length,g=new N(z),y=g.d=[],f=0;B[f]==(H[f]||0);)++f;if(B[f]>(H[f]||0)&&--c,a==null?T=a=N.precision:s?T=a+(bn(n)-bn(i))+1:T=a,T<0)return new N(0);if(T=T/yr+2|0,f=0,D==1)for(h=0,B=B[0],T++;(f<C||h)&&T--;f++)S=h*Vn+(H[f]||0),y[f]=S/B|0,h=S%B|0;else{for(h=Vn/(B[0]+1)|0,h>1&&(B=e(B,h),H=e(H,h),D=B.length,C=H.length),O=D,x=H.slice(0,D),_=x.length;_<D;)x[_++]=0;M=B.slice(),M.unshift(0),k=B[0],B[1]>=Vn/2&&++k;do h=0,o=t(B,x,D,_),o<0?(w=x[0],D!=_&&(w=w*Vn+(x[1]||0)),h=w/k|0,h>1?(h>=Vn&&(h=Vn-1),p=e(B,h),m=p.length,_=x.length,o=t(p,x,m,_),o==1&&(h--,r(p,D<m?M:B,m))):(h==0&&(o=h=1),p=B.slice()),m=p.length,m<_&&p.unshift(0),r(x,p,_),o==-1&&(_=x.length,o=t(B,x,D,_),o<1&&(h++,r(x,D<_?M:B,_))),_=x.length):o===0&&(h++,x=[0]),y[f++]=h,o&&x[0]?x[_++]=H[O]||0:(x=[H[O]],_=1);while((O++<C||x[0]!==void 0)&&T--)}return y[0]||y.shift(),g.e=c,dr(g,s?a+bn(g)+1:a)}}();function iU(e,t){var r,n,i,a,s,o,c=0,f=0,h=e.constructor,p=h.precision;if(bn(e)>16)throw Error(M4+bn(e));if(!e.s)return new h(Na);for(Or=!1,o=p,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(n=Math.log(eu(2,f))/Math.LN10*2+5|0,o+=n,r=i=a=new h(Na),h.precision=o;;){if(i=dr(i.times(e),o),r=r.times(++c),s=a.plus(Zo(i,r,o)),uo(s.d).slice(0,o)===uo(a.d).slice(0,o)){for(;f--;)a=dr(a.times(a),o);return h.precision=p,t==null?(Or=!0,dr(a,p)):a}a=s}}function bn(e){for(var t=e.e*yr,r=e.d[0];r>=10;r/=10)t++;return t}function Pw(e,t,r){if(t>e.LN10.sd())throw Or=!0,r&&(e.precision=r),Error(Cs+"LN10 precision limit exceeded");return dr(new e(e.LN10),t)}function Yl(e){for(var t="";e--;)t+="0";return t}function Np(e,t){var r,n,i,a,s,o,c,f,h,p=1,m=10,g=e,y=g.d,x=g.constructor,_=x.precision;if(g.s<1)throw Error(Cs+(g.s?"NaN":"-Infinity"));if(g.eq(Na))return new x(0);if(t==null?(Or=!1,f=_):f=t,g.eq(10))return t==null&&(Or=!0),Pw(x,f);if(f+=m,x.precision=f,r=uo(y),n=r.charAt(0),a=bn(g),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)g=g.times(e),r=uo(g.d),n=r.charAt(0),p++;a=bn(g),n>1?(g=new x("0."+r),a++):g=new x(n+"."+r.slice(1))}else return c=Pw(x,f+2,_).times(a+""),g=Np(new x(n+"."+r.slice(1)),f-m).plus(c),x.precision=_,t==null?(Or=!0,dr(g,_)):g;for(o=s=g=Zo(g.minus(Na),g.plus(Na),f),h=dr(g.times(g),f),i=3;;){if(s=dr(s.times(h),f),c=o.plus(Zo(s,new x(i),f)),uo(c.d).slice(0,f)===uo(o.d).slice(0,f))return o=o.times(2),a!==0&&(o=o.plus(Pw(x,f+2,_).times(a+""))),o=Zo(o,new x(p),f),x.precision=_,t==null?(Or=!0,dr(o,_)):o;o=c,i+=2}}function y8(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Q0(r/yr),e.d=[],n=(r+1)%yr,r<0&&(n+=yr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=yr;n<i;)e.d.push(+t.slice(n,n+=yr));t=t.slice(n),n=yr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Or&&(e.e>Yv||e.e<-Yv))throw Error(M4+r)}else e.s=0,e.e=0,e.d=[0];return e}function dr(e,t,r){var n,i,a,s,o,c,f,h,p=e.d;for(s=1,a=p[0];a>=10;a/=10)s++;if(n=t-s,n<0)n+=yr,i=t,f=p[h=0];else{if(h=Math.ceil((n+1)/yr),a=p.length,h>=a)return e;for(f=a=p[h],s=1;a>=10;a/=10)s++;n%=yr,i=n-yr+s}if(r!==void 0&&(a=eu(10,s-i-1),o=f/a%10|0,c=t<0||p[h+1]!==void 0||f%a,c=r<4?(o||c)&&(r==0||r==(e.s<0?3:2)):o>5||o==5&&(r==4||c||r==6&&(n>0?i>0?f/eu(10,s-i):0:p[h-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return c?(a=bn(e),p.length=1,t=t-a-1,p[0]=eu(10,(yr-t%yr)%yr),e.e=Q0(-t/yr)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=h,a=1,h--):(p.length=h+1,a=eu(10,yr-n),p[h]=i>0?(f/eu(10,s-i)%eu(10,i)|0)*a:0),c)for(;;)if(h==0){(p[0]+=a)==Vn&&(p[0]=1,++e.e);break}else{if(p[h]+=a,p[h]!=Vn)break;p[h--]=0,a=1}for(n=p.length;p[--n]===0;)p.pop();if(Or&&(e.e>Yv||e.e<-Yv))throw Error(M4+bn(e));return e}function aU(e,t){var r,n,i,a,s,o,c,f,h,p,m=e.constructor,g=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),Or?dr(t,g):t;if(c=e.d,p=t.d,n=t.e,f=e.e,c=c.slice(),s=f-n,s){for(h=s<0,h?(r=c,s=-s,o=p.length):(r=p,n=f,o=c.length),i=Math.max(Math.ceil(g/yr),o)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=c.length,o=p.length,h=i<o,h&&(o=i),i=0;i<o;i++)if(c[i]!=p[i]){h=c[i]<p[i];break}s=0}for(h&&(r=c,c=p,p=r,t.s=-t.s),o=c.length,i=p.length-o;i>0;--i)c[o++]=0;for(i=p.length;i>s;){if(c[--i]<p[i]){for(a=i;a&&c[--a]===0;)c[a]=Vn-1;--c[a],c[i]+=Vn}c[i]-=p[i]}for(;c[--o]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,Or?dr(t,g):t):new m(0)}function Bu(e,t,r){var n,i=bn(e),a=uo(e.d),s=a.length;return t?(r&&(n=r-s)>0?a=a.charAt(0)+"."+a.slice(1)+Yl(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Yl(-i-1)+a,r&&(n=r-s)>0&&(a+=Yl(n))):i>=s?(a+=Yl(i+1-s),r&&(n=r-i-1)>0&&(a=a+"."+Yl(n))):((n=i+1)<s&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(a+="."),a+=Yl(n))),e.s<0?"-"+a:a}function _8(e,t){if(e.length>t)return e.length=t,!0}function sU(e){var t,r,n;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Tu+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return y8(s,a.toString())}else if(typeof a!="string")throw Error(Tu+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,Gfe.test(a))y8(s,a);else throw Error(Tu+a)}if(i.prototype=Ke,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=sU,i.config=i.set=Xfe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Xfe(e){if(!e||typeof e!="object")throw Error(Cs+"Object expected");var t,r,n,i=["precision",1,Z0,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Q0(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Tu+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Tu+r+": "+n);return this}var R4=sU(qfe);Na=new R4(1);const tr=R4;var Yfe=e=>e,oU={},lU=e=>e===oU,b8=e=>function t(){return arguments.length===0||arguments.length===1&&lU(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},cU=(e,t)=>e===1?t:b8(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(s=>s!==oU).length;return a>=e?t(...n):cU(e-a,b8(function(){for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];var f=n.map(h=>lU(h)?o.shift():h);return t(...f,...o)}))}),ny=e=>cU(e.length,e),GE=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},Kfe=ny((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),Zfe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Yfe;var i=r.reverse(),a=i[0],s=i.slice(1);return function(){return s.reduce((o,c)=>c(o),a(...arguments))}},XE=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),uU=e=>{var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t&&i.every((s,o)=>{var c;return s===((c=t)===null||c===void 0?void 0:c[o])})||(t=i,r=e(...i)),r}};function fU(e){var t;return e===0?t=1:t=Math.floor(new tr(e).abs().log(10).toNumber())+1,t}function hU(e,t,r){for(var n=new tr(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}ny((e,t,r)=>{var n=+e,i=+t;return n+r*(i-n)});ny((e,t,r)=>{var n=t-+e;return n=n||1/0,(r-e)/n});ny((e,t,r)=>{var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});var dU=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},pU=(e,t,r)=>{if(e.lte(0))return new tr(0);var n=fU(e.toNumber()),i=new tr(10).pow(n),a=e.div(i),s=n!==1?.05:.1,o=new tr(Math.ceil(a.div(s).toNumber())).add(r).mul(s),c=o.mul(i);return t?new tr(c.toNumber()):new tr(Math.ceil(c.toNumber()))},Qfe=(e,t,r)=>{var n=new tr(1),i=new tr(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new tr(10).pow(fU(e)-1),i=new tr(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new tr(Math.floor(e)))}else e===0?i=new tr(Math.floor((t-1)/2)):r||(i=new tr(Math.floor(e)));var s=Math.floor((t-1)/2),o=Zfe(Kfe(c=>i.add(new tr(c-s).mul(n)).toNumber()),GE);return o(0,t)},mU=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new tr(0),tickMin:new tr(0),tickMax:new tr(0)};var s=pU(new tr(r).sub(t).div(n-1),i,a),o;t<=0&&r>=0?o=new tr(0):(o=new tr(t).add(r).div(2),o=o.sub(new tr(o).mod(s)));var c=Math.ceil(o.sub(t).div(s).toNumber()),f=Math.ceil(new tr(r).sub(o).div(s).toNumber()),h=c+f+1;return h>n?mU(t,r,n,i,a+1):(h<n&&(f=r>0?f+(n-h):f,c=r>0?c:c+(n-h)),{step:s,tickMin:o.sub(new tr(c).mul(s)),tickMax:o.add(new tr(f).mul(s))})};function Jfe(e){var[t,r]=e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(n,2),[s,o]=dU([t,r]);if(s===-1/0||o===1/0){var c=o===1/0?[s,...GE(0,n-1).map(()=>1/0)]:[...GE(0,n-1).map(()=>-1/0),o];return t>r?XE(c):c}if(s===o)return Qfe(s,n,i);var{step:f,tickMin:h,tickMax:p}=mU(s,o,a,i,0),m=hU(h,p.add(new tr(.1).mul(f)),f);return t>r?XE(m):m}function e0e(e,t){var[r,n]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=dU([r,n]);if(a===-1/0||s===1/0)return[r,n];if(a===s)return[a];var o=Math.max(t,2),c=pU(new tr(s).sub(a).div(o-1),i,0),f=[...hU(new tr(a),new tr(s),c),s];return i===!1&&(f=f.map(h=>Math.round(h))),r>n?XE(f):f}var t0e=uU(Jfe),r0e=uU(e0e),n0e=e=>e.rootProps.barCategoryGap,vm=e=>e.rootProps.stackOffset,N4=e=>e.options.chartName,F4=e=>e.rootProps.syncId,gU=e=>e.rootProps.syncMethod,L4=e=>e.options.eventEmitter,Vo={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Ca={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},iy=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},i0e={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Vo.angleAxisId,includeHidden:!1,name:void 0,reversed:Vo.reversed,scale:Vo.scale,tick:Vo.tick,tickCount:void 0,ticks:void 0,type:Vo.type,unit:void 0},a0e={allowDataOverflow:Ca.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ca.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ca.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ca.scale,tick:Ca.tick,tickCount:Ca.tickCount,ticks:void 0,type:Ca.type,unit:void 0},s0e={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Vo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Vo.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Vo.scale,tick:Vo.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},o0e={allowDataOverflow:Ca.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ca.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ca.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ca.scale,tick:Ca.tick,tickCount:Ca.tickCount,ticks:void 0,type:"category",unit:void 0},I4=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?s0e:i0e,B4=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?o0e:a0e,ay=e=>e.polarOptions,j4=Ee([pl,ml,Gn],ej),vU=Ee([ay,j4],(e,t)=>{if(e!=null)return ja(e.innerRadius,t,0)}),xU=Ee([ay,j4],(e,t)=>{if(e!=null)return ja(e.outerRadius,t,t*.8)}),l0e=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},yU=Ee([ay],l0e);Ee([I4,yU],iy);var _U=Ee([j4,vU,xU],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});Ee([B4,_U],iy);var bU=Ee([cr,ay,vU,xU,pl,ml],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:s,cy:o,startAngle:c,endAngle:f}=t;return{cx:ja(s,i,i/2),cy:ja(o,a,a/2),innerRadius:r,outerRadius:n,startAngle:c,endAngle:f,clockWise:!1}}}),kr=(e,t)=>t,xm=(e,t,r)=>r;function wU(e){return e?.id}var Rn=e=>{var t=cr(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},J0=e=>e.tooltip.settings.axisId,Yn=e=>{var t=Rn(e),r=J0(e);return ym(e,t,r)},SU=Ee([Yn],e=>e?.dataKey);function EU(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,s=new Map;return e.forEach(o=>{var c,f=(c=o.data)!==null&&c!==void 0?c:n;if(!(f==null||f.length===0)){var h=wU(o);f.forEach((p,m)=>{var g=a==null||i?m:String(Fr(p,a,null)),y=Fr(p,o.dataKey,0),x;s.has(g)?x=s.get(g):x={},Object.assign(x,{[h]:y}),s.set(g,x)})}}),Array.from(s.values())}function U4(e){return e.stackId!=null&&e.dataKey!=null}function w8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w8(Object(r),!0).forEach(function(n){c0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c0e(e,t,r){return(t=u0e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u0e(e){var t=f0e(e,"string");return typeof t=="symbol"?t:t+""}function f0e(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YE=[0,"auto"],wa={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},TU=(e,t)=>e.cartesianAxis.xAxis[t],vl=(e,t)=>{var r=TU(e,t);return r??wa},Sa={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:YE,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:hm},AU=(e,t)=>e.cartesianAxis.yAxis[t],xl=(e,t)=>{var r=AU(e,t);return r??Sa},h0e={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},z4=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??h0e},on=(e,t,r)=>{switch(t){case"xAxis":return vl(e,r);case"yAxis":return xl(e,r);case"zAxis":return z4(e,r);case"angleAxis":return I4(e,r);case"radiusAxis":return B4(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},d0e=(e,t,r)=>{switch(t){case"xAxis":return vl(e,r);case"yAxis":return xl(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},ym=(e,t,r)=>{switch(t){case"xAxis":return vl(e,r);case"yAxis":return xl(e,r);case"angleAxis":return I4(e,r);case"radiusAxis":return B4(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},CU=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function V4(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var OU=e=>e.graphicalItems.cartesianItems,p0e=Ee([kr,xm],V4),H4=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),_m=Ee([OU,on,p0e],H4),kU=Ee([_m],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(U4)),DU=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),PU=Ee([_m],DU),$4=e=>e.map(t=>t.data).filter(Boolean).flat(1),m0e=Ee([_m],$4),W4=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},q4=Ee([m0e,P4],W4),G4=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Fr(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Fr(i,n)}))):e.map(n=>({value:n})),sy=Ee([q4,on,_m],G4);function MU(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Qu(e){return e.filter(t=>_o(t)||t instanceof Date).map(Number).filter(t=>Ts(t)===!1)}function g0e(e,t,r){return!r||typeof t!="number"||Ts(t)?[]:r.length?Qu(r.flatMap(n=>{var i=Fr(e,n.dataKey),a,s;if(Array.isArray(i)?[a,s]=i:a=s=i,!(!Gs(a)||!Gs(s)))return[t-a,t+s]})):[]}var v0e=Ee([kU,P4,Yn],EU),RU=(e,t,r)=>{var n={},i=t.reduce((a,s)=>(s.stackId==null||(a[s.stackId]==null&&(a[s.stackId]=[]),a[s.stackId].push(s)),a),n);return Object.fromEntries(Object.entries(i).map(a=>{var[s,o]=a,c=o.map(wU);return[s,{stackedData:Eoe(e,c,r),graphicalItems:o}]}))},x0e=Ee([v0e,kU,vm],RU),NU=(e,t,r)=>{var{dataStartIndex:n,dataEndIndex:i}=t;if(r!=="zAxis"){var a=Coe(e,n,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},y0e=Ee([x0e,Ec,kr],NU),FU=(e,t,r,n,i)=>r.length>0?e.flatMap(a=>r.flatMap(s=>{var o,c,f=(o=n[s.id])===null||o===void 0?void 0:o.filter(p=>MU(i,p)),h=Fr(a,(c=t.dataKey)!==null&&c!==void 0?c:s.dataKey);return{value:h,errorDomain:g0e(a,h,f)}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:Fr(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]})),oy=e=>e.errorBars,LU=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>MU(r,n));Ee([PU,oy,kr],LU);var _0e=Ee([q4,on,PU,oy,kr],FU);function b0e(e){var{value:t}=e;if(_o(t)||t instanceof Date)return t}var S8=e=>{var t=e.flatMap(n=>[n.value,n.errorDomain]).flat(1),r=Qu(t);if(r.length!==0)return[Math.min(...r),Math.max(...r)]},w0e=(e,t,r)=>{var n=e.map(b0e).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&qI(n))?bj(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},X4=e=>{var t;if(e==null||!("domain"in e))return YE;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=Qu(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:YE},Zv=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),s=Math.min(...a),o=Math.max(...a);return[s,o]}},IU=e=>e.referenceElements.dots,eh=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),S0e=Ee([IU,kr,xm],eh),BU=e=>e.referenceElements.areas,E0e=Ee([BU,kr,xm],eh),jU=e=>e.referenceElements.lines,T0e=Ee([jU,kr,xm],eh),UU=(e,t)=>{var r=Qu(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},A0e=Ee(S0e,kr,UU),zU=(e,t)=>{var r=Qu(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},C0e=Ee([E0e,kr],zU),VU=(e,t)=>{var r=Qu(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},O0e=Ee(T0e,kr,VU),k0e=Ee(A0e,O0e,C0e,(e,t,r)=>Zv(e,r,t)),HU=Ee([on],X4),Y4=(e,t,r,n,i,a,s)=>{var o=$fe(t,e.allowDataOverflow);if(o!=null)return o;var c=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",f=c?Zv(r,i,S8(n)):Zv(i,S8(n));return Wfe(t,f,e.allowDataOverflow)},D0e=Ee([on,HU,y0e,_0e,k0e,cr,kr],Y4),P0e=[0,1],K4=(e,t,r,n,i,a,s)=>{if(!((e==null||r==null||r.length===0)&&s===void 0)){var{dataKey:o,type:c}=e,f=bc(t,a);return f&&o==null?bj(0,r.length):c==="category"?w0e(n,e,f):i==="expand"?P0e:s}},Z4=Ee([on,cr,q4,sy,vm,kr,D0e],K4),$U=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:s}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":s==="category"?"band":"linear";if(typeof a=="string"){var o="scale".concat(cm(a));return o in Dd?o:"point"}}},th=Ee([on,cr,CU,N4,kr],$U);function M0e(e){if(e!=null){if(e in Dd)return Dd[e]();var t="scale".concat(cm(e));if(t in Dd)return Dd[t]()}}function Q4(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=M0e(t);if(i!=null){var a=i.domain(r).range(n);return _oe(a),a}}}var J4=(e,t,r)=>{var n=X4(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&L0(e))return t0e(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&L0(e))return r0e(e,t.tickCount,t.allowDecimals)}},e3=Ee([Z4,ym,th],J4),t3=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&L0(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],s=t[1],o=r[r.length-1];return[Math.min(i,a),Math.max(s,o)]}return t},R0e=Ee([on,Z4,e3,kr],t3),N0e=Ee(sy,on,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Qu(e.map(o=>o.value))).sort((o,c)=>o-c);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;a<n.length-1;a++){var s=n[a+1]-n[a];r=Math.min(r,s)}return r/i}}),WU=Ee(N0e,cr,n0e,Gn,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!Gs(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var s=ja(r,e*a),o=e*a/2;return o-s-(o-s)/a*s}return 0}),F0e=(e,t)=>{var r=vl(e,t);return r==null||typeof r.padding!="string"?0:WU(e,"xAxis",t,r.padding)},L0e=(e,t)=>{var r=xl(e,t);return r==null||typeof r.padding!="string"?0:WU(e,"yAxis",t,r.padding)},I0e=Ee(vl,F0e,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),B0e=Ee(xl,L0e,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),j0e=Ee([Gn,I0e,Xx,Gx,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),U0e=Ee([Gn,cr,B0e,Xx,Gx,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:s}=i;return a?[n.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),bm=(e,t,r,n)=>{var i;switch(t){case"xAxis":return j0e(e,r,n);case"yAxis":return U0e(e,r,n);case"zAxis":return(i=z4(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return yU(e);case"radiusAxis":return _U(e,r);default:return}},qU=Ee([on,bm],iy),rh=Ee([on,th,R0e,qU],Q4);Ee([_m,oy,kr],LU);function GU(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var ly=(e,t)=>t,cy=(e,t,r)=>r,z0e=Ee(Wx,ly,cy,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(GU)),V0e=Ee(qx,ly,cy,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(GU)),XU=(e,t)=>({width:e.width,height:t.height}),H0e=(e,t)=>{var r=typeof t.width=="number"?t.width:hm;return{width:r,height:e.height}},$0e=Ee(Gn,vl,XU),W0e=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},q0e=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},G0e=Ee(ml,Gn,z0e,ly,cy,(e,t,r,n,i)=>{var a={},s;return r.forEach(o=>{var c=XU(t,o);s==null&&(s=W0e(t,n,e));var f=n==="top"&&!i||n==="bottom"&&i;a[o.id]=s-Number(f)*c.height,s+=(f?-1:1)*c.height}),a}),X0e=Ee(pl,Gn,V0e,ly,cy,(e,t,r,n,i)=>{var a={},s;return r.forEach(o=>{var c=H0e(t,o);s==null&&(s=q0e(t,n,e));var f=n==="left"&&!i||n==="right"&&i;a[o.id]=s-Number(f)*c.width,s+=(f?-1:1)*c.width}),a}),Y0e=(e,t)=>{var r=vl(e,t);if(r!=null)return G0e(e,r.orientation,r.mirror)},K0e=Ee([Gn,vl,Y0e,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),Z0e=(e,t)=>{var r=xl(e,t);if(r!=null)return X0e(e,r.orientation,r.mirror)},Q0e=Ee([Gn,xl,Z0e,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),J0e=Ee(Gn,xl,(e,t)=>{var r=typeof t.width=="number"?t.width:hm;return{width:r,height:e.height}}),YU=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:s}=r,o=bc(e,n),c=t.map(f=>f.value);if(s&&o&&a==="category"&&i&&qI(c))return c}},r3=Ee([cr,sy,on,kr],YU),KU=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,s=bc(e,n);if(s&&(i==="number"||a!=="auto"))return t.map(o=>o.value)}},n3=Ee([cr,sy,ym,kr],KU),E8=Ee([cr,d0e,th,rh,r3,n3,bm,e3,kr],(e,t,r,n,i,a,s,o,c)=>{if(t==null)return null;var f=bc(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:f,niceTicks:o,range:s,realScaleType:r,scale:n}}),ehe=(e,t,r,n,i,a,s,o,c)=>{if(!(t==null||n==null)){var f=bc(e,c),{type:h,ticks:p,tickCount:m}=t,g=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,y=h==="category"&&n.bandwidth?n.bandwidth()/g:0;y=c==="angleAxis"&&a!=null&&a.length>=2?Ai(a[0]-a[1])*2*y:y;var x=p||i;if(x){var _=x.map((w,T)=>{var S=s?s.indexOf(w):w;return{index:T,coordinate:n(S)+y,value:w,offset:y}});return _.filter(w=>!Ts(w.coordinate))}return f&&o?o.map((w,T)=>({coordinate:n(w)+y,value:w,index:T,offset:y})):n.ticks?n.ticks(m).map(w=>({coordinate:n(w)+y,value:w,offset:y})):n.domain().map((w,T)=>({coordinate:n(w)+y,value:s?s[w]:w,index:T,offset:y}))}},ZU=Ee([cr,ym,th,rh,e3,bm,r3,n3,kr],ehe),the=(e,t,r,n,i,a,s)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var o=bc(e,s),{tickCount:c}=t,f=0;return f=s==="angleAxis"&&n?.length>=2?Ai(n[0]-n[1])*2*f:f,o&&a?a.map((h,p)=>({coordinate:r(h)+f,value:h,index:p,offset:f})):r.ticks?r.ticks(c).map(h=>({coordinate:r(h)+f,value:h,offset:f})):r.domain().map((h,p)=>({coordinate:r(h)+f,value:i?i[h]:h,index:p,offset:f}))}},QU=Ee([cr,ym,rh,bm,r3,n3,kr],the),JU=Ee(on,rh,(e,t)=>{if(!(e==null||t==null))return Kv(Kv({},e),{},{scale:t})}),rhe=Ee([on,th,Z4,qU],Q4);Ee((e,t,r)=>z4(e,r),rhe,(e,t)=>{if(!(e==null||t==null))return Kv(Kv({},e),{},{scale:t})});var nhe=Ee([cr,Wx,qx],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),ez=e=>e.options.defaultTooltipEventType,tz=e=>e.options.validateTooltipEventTypes;function rz(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function i3(e,t){var r=ez(e),n=tz(e);return rz(t,r,n)}function ihe(e){return rt(t=>i3(t,e))}var nz=(e,t)=>{var r,n=Number(t);if(!(Ts(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},ahe=e=>e.tooltip.settings,Zl={active:!1,index:null,dataKey:void 0,coordinate:void 0},she={itemInteraction:{click:Zl,hover:Zl},axisInteraction:{click:Zl,hover:Zl},keyboardInteraction:Zl,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},iz=qa({name:"tooltip",initialState:she,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var r=Ko(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:ohe,removeTooltipEntrySettings:lhe,setTooltipSettingsState:che,setActiveMouseOverItemIndex:az,mouseLeaveItem:uhe,mouseLeaveChart:sz,setActiveClickItemIndex:fhe,setMouseOverAxisIndex:oz,setMouseClickAxisIndex:hhe,setSyncInteraction:KE,setKeyboardInteraction:ZE}=iz.actions,dhe=iz.reducer;function T8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T8(Object(r),!0).forEach(function(n){phe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function phe(e,t,r){return(t=mhe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mhe(e){var t=ghe(e,"string");return typeof t=="symbol"?t:t+""}function ghe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vhe(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function xhe(e){return e.index!=null}var lz=(e,t,r,n)=>{if(t==null)return Zl;var i=vhe(e,t,r);if(i==null)return Zl;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(xhe(i)){if(a)return gg(gg({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n};return gg(gg({},Zl),{},{coordinate:i.coordinate})},a3=(e,t)=>{var r=e?.index;if(r==null)return null;var n=Number(r);if(!Gs(n))return r;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(n,a)))},cz=(e,t,r,n,i,a,s,o)=>{if(!(a==null||o==null)){var c=s[0],f=c==null?void 0:o(c.positions,a);if(f!=null)return f;var h=i?.[Number(a)];if(h)switch(r){case"horizontal":return{x:h.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:h.coordinate}}}},uz=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.dataKey)===i})},wm=e=>e.options.tooltipPayloadSearcher,nh=e=>e.tooltip;function A8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A8(Object(r),!0).forEach(function(n){yhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yhe(e,t,r){return(t=_he(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _he(e){var t=bhe(e,"string");return typeof t=="symbol"?t:t+""}function bhe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function whe(e,t){return e??t}var fz=(e,t,r,n,i,a,s)=>{if(!(t==null||a==null)){var{chartData:o,computedData:c,dataStartIndex:f,dataEndIndex:h}=r,p=[];return e.reduce((m,g)=>{var y,{dataDefinedOnItem:x,settings:_}=g,w=whe(x,o),T=Array.isArray(w)?tj(w,f,h):w,S=(y=_?.dataKey)!==null&&y!==void 0?y:n,O=_?.nameKey,C;if(n&&Array.isArray(T)&&!Array.isArray(T[0])&&s==="axis"?C=GI(T,n,i):C=a(T,t,c,O),Array.isArray(C))C.forEach(D=>{var M=C8(C8({},_),{},{name:D.name,unit:D.unit,color:void 0,fill:void 0});m.push(u5({tooltipEntrySettings:M,dataKey:D.dataKey,payload:D.payload,value:Fr(D.payload,D.dataKey),name:D.name}))});else{var k;m.push(u5({tooltipEntrySettings:_,dataKey:S,payload:C,value:Fr(C,S),name:(k=Fr(C,O))!==null&&k!==void 0?k:_?.name}))}return m},p)}},s3=Ee([Yn,cr,CU,N4,Rn],$U),She=Ee([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Ehe=Ee([Rn,J0],V4),Sm=Ee([She,Yn,Ehe],H4),The=Ee([Sm],e=>e.filter(U4)),Ahe=Ee([Sm],$4),ih=Ee([Ahe,Ec],W4),Che=Ee([The,Ec,Yn],EU),o3=Ee([ih,Yn,Sm],G4),Ohe=Ee([Yn],X4),khe=Ee([Sm],e=>e.filter(U4)),Dhe=Ee([Che,khe,vm],RU),Phe=Ee([Dhe,Ec,Rn],NU),Mhe=Ee([Sm],DU),Rhe=Ee([ih,Yn,Mhe,oy,Rn],FU),Nhe=Ee([IU,Rn,J0],eh),Fhe=Ee([Nhe,Rn],UU),Lhe=Ee([BU,Rn,J0],eh),Ihe=Ee([Lhe,Rn],zU),Bhe=Ee([jU,Rn,J0],eh),jhe=Ee([Bhe,Rn],VU),Uhe=Ee([Fhe,jhe,Ihe],Zv),zhe=Ee([Yn,Ohe,Phe,Rhe,Uhe,cr,Rn],Y4),hz=Ee([Yn,cr,ih,o3,vm,Rn,zhe],K4),Vhe=Ee([hz,Yn,s3],J4),Hhe=Ee([Yn,hz,Vhe,Rn],t3),dz=e=>{var t=Rn(e),r=J0(e),n=!1;return bm(e,t,r,n)},pz=Ee([Yn,dz],iy),mz=Ee([Yn,s3,Hhe,pz],Q4),$he=Ee([cr,o3,Yn,Rn],YU),Whe=Ee([cr,o3,Yn,Rn],KU),qhe=(e,t,r,n,i,a,s,o)=>{if(t){var{type:c}=t,f=bc(e,o);if(n){var h=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,p=c==="category"&&n.bandwidth?n.bandwidth()/h:0;return p=o==="angleAxis"&&i!=null&&i?.length>=2?Ai(i[0]-i[1])*2*p:p,f&&s?s.map((m,g)=>({coordinate:n(m)+p,value:m,index:g,offset:p})):n.domain().map((m,g)=>({coordinate:n(m)+p,value:a?a[m]:m,index:g,offset:p}))}}},yl=Ee([cr,Yn,s3,mz,dz,$he,Whe,Rn],qhe),l3=Ee([ez,tz,ahe],(e,t,r)=>rz(r.shared,e,t)),gz=e=>e.tooltip.settings.trigger,c3=e=>e.tooltip.settings.defaultIndex,uy=Ee([nh,l3,gz,c3],lz),I0=Ee([uy,ih],a3),vz=Ee([yl,I0],nz),Ghe=Ee([uy],e=>{if(e)return e.dataKey}),xz=Ee([nh,l3,gz,c3],uz),Xhe=Ee([pl,ml,cr,Gn,yl,c3,xz,wm],cz),Yhe=Ee([uy,Xhe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Khe=Ee([uy],e=>e.active),Zhe=Ee([xz,I0,Ec,SU,vz,wm,l3],fz),Qhe=Ee([Zhe],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function O8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O8(Object(r),!0).forEach(function(n){Jhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jhe(e,t,r){return(t=ede(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ede(e){var t=tde(e,"string");return typeof t=="symbol"?t:t+""}function tde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rde=()=>rt(Yn),nde=()=>{var e=rde(),t=rt(yl),r=rt(mz);return ME(k8(k8({},e),{},{scale:r}),t)},ide=()=>rt(N4),u3=(e,t)=>t,yz=(e,t,r)=>r,f3=(e,t,r,n)=>n,ade=Ee(yl,e=>Bx(e,t=>t.coordinate)),h3=Ee([nh,u3,yz,f3],lz),_z=Ee([h3,ih],a3),sde=(e,t,r)=>{if(t!=null){var n=nh(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},bz=Ee([nh,u3,yz,f3],uz),Qv=Ee([pl,ml,cr,Gn,yl,f3,bz,wm],cz),ode=Ee([h3,Qv],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),wz=Ee(yl,_z,nz),lde=Ee([bz,_z,Ec,SU,wz,wm,u3],fz),cde=Ee([h3],e=>({isActive:e.active,activeIndex:e.index})),ude=(e,t,r,n,i,a,s,o)=>{if(!(!e||!t||!n||!i||!a)){var c=Ooe(e.chartX,e.chartY,t,r,o);if(c){var f=Doe(c,t),h=xoe(f,s,a,n,i),p=koe(t,a,h,c);return{activeIndex:String(h),activeCoordinate:p}}}};function QE(){return QE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},QE.apply(null,arguments)}function D8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D8(Object(r),!0).forEach(function(n){fde(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fde(e,t,r){return(t=hde(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hde(e){var t=dde(e,"string");return typeof t=="symbol"?t:t+""}function dde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pde(e){var{coordinate:t,payload:r,index:n,offset:i,tooltipAxisBandSize:a,layout:s,cursor:o,tooltipEventType:c,chartName:f}=e,h=t,p=r,m=n;if(!o||!h||f!=="ScatterChart"&&c!=="axis")return null;var g,y;if(f==="ScatterChart")g=h,y=Dle;else if(f==="BarChart")g=Ple(s,h,i,a),y=vj;else if(s==="radial"){var{cx:x,cy:_,radius:w,startAngle:T,endAngle:S}=xj(h);g={cx:x,cy:_,startAngle:T,endAngle:S,innerRadius:w,outerRadius:w},y=_j}else g={points:uce(s,h,i)},y=s4;var O=typeof o=="object"&&"className"in o?o.className:void 0,C=vg(vg(vg(vg({stroke:"#ccc",pointerEvents:"none"},i),g),Yr(o,!1)),{},{payload:p,payloadIndex:m,className:Gt("recharts-tooltip-cursor",O)});return A.isValidElement(o)?A.cloneElement(o,C):A.createElement(y,C)}function mde(e){var t=nde(),r=lj(),n=i4(),i=ide();return A.createElement(pde,QE({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var Sz=A.createContext(null),gde=()=>A.useContext(Sz),Mw={exports:{}},P8;function vde(){return P8||(P8=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,f,h){this.fn=c,this.context=f,this.once=h||!1}function a(c,f,h,p,m){if(typeof h!="function")throw new TypeError("The listener must be a function");var g=new i(h,p||c,m),y=r?r+f:f;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],g]:c._events[y].push(g):(c._events[y]=g,c._eventsCount++),c}function s(c,f){--c._eventsCount===0?c._events=new n:delete c._events[f]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var f=[],h,p;if(this._eventsCount===0)return f;for(p in h=this._events)t.call(h,p)&&f.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(h)):f},o.prototype.listeners=function(f){var h=r?r+f:f,p=this._events[h];if(!p)return[];if(p.fn)return[p.fn];for(var m=0,g=p.length,y=new Array(g);m<g;m++)y[m]=p[m].fn;return y},o.prototype.listenerCount=function(f){var h=r?r+f:f,p=this._events[h];return p?p.fn?1:p.length:0},o.prototype.emit=function(f,h,p,m,g,y){var x=r?r+f:f;if(!this._events[x])return!1;var _=this._events[x],w=arguments.length,T,S;if(_.fn){switch(_.once&&this.removeListener(f,_.fn,void 0,!0),w){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,h),!0;case 3:return _.fn.call(_.context,h,p),!0;case 4:return _.fn.call(_.context,h,p,m),!0;case 5:return _.fn.call(_.context,h,p,m,g),!0;case 6:return _.fn.call(_.context,h,p,m,g,y),!0}for(S=1,T=new Array(w-1);S<w;S++)T[S-1]=arguments[S];_.fn.apply(_.context,T)}else{var O=_.length,C;for(S=0;S<O;S++)switch(_[S].once&&this.removeListener(f,_[S].fn,void 0,!0),w){case 1:_[S].fn.call(_[S].context);break;case 2:_[S].fn.call(_[S].context,h);break;case 3:_[S].fn.call(_[S].context,h,p);break;case 4:_[S].fn.call(_[S].context,h,p,m);break;default:if(!T)for(C=1,T=new Array(w-1);C<w;C++)T[C-1]=arguments[C];_[S].fn.apply(_[S].context,T)}}return!0},o.prototype.on=function(f,h,p){return a(this,f,h,p,!1)},o.prototype.once=function(f,h,p){return a(this,f,h,p,!0)},o.prototype.removeListener=function(f,h,p,m){var g=r?r+f:f;if(!this._events[g])return this;if(!h)return s(this,g),this;var y=this._events[g];if(y.fn)y.fn===h&&(!m||y.once)&&(!p||y.context===p)&&s(this,g);else{for(var x=0,_=[],w=y.length;x<w;x++)(y[x].fn!==h||m&&!y[x].once||p&&y[x].context!==p)&&_.push(y[x]);_.length?this._events[g]=_.length===1?_[0]:_:s(this,g)}return this},o.prototype.removeAllListeners=function(f){var h;return f?(h=r?r+f:f,this._events[h]&&s(this,h)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o}(Mw)),Mw.exports}var xde=vde();const yde=fl(xde);var Fp=new yde,JE="recharts.syncEvent.tooltip",M8="recharts.syncEvent.brush";function Ez(e,t){if(t){var r=Number.parseInt(t,10);if(!Ts(r))return e?.[r]}}var _de={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},Tz=qa({name:"options",initialState:_de,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),bde=Tz.reducer,{createEventEmitter:wde}=Tz.actions;function Sde(e){return e.tooltip.syncInteraction}var Ede={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Az=qa({name:"chartData",initialState:Ede,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:R8,setDataStartEndIndexes:Tde,setComputedData:OOe}=Az.actions,Ade=Az.reducer,Cde=["x","y"];function N8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N8(Object(r),!0).forEach(function(n){Ode(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ode(e,t,r){return(t=kde(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kde(e){var t=Dde(e,"string");return typeof t=="symbol"?t:t+""}function Dde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pde(e,t){if(e==null)return{};var r,n,i=Mde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Mde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Cz=()=>{};function Rde(){var e=rt(F4),t=rt(L4),r=jr(),n=rt(gU),i=rt(yl),a=i4(),s=t4(),o=rt(c=>c.rootProps.className);A.useEffect(()=>{if(e==null)return Cz;var c=(f,h,p)=>{if(t!==p&&e===f){if(n==="index"){var m;if(s&&h!==null&&h!==void 0&&(m=h.payload)!==null&&m!==void 0&&m.coordinate){var g=h.payload.coordinate,{x:y,y:x}=g,_=Pde(g,Cde),w=Gc(Gc(Gc({},_),typeof y=="number"&&{x:Math.max(s.x,Math.min(y,s.x+s.width))}),typeof x=="number"&&{y:Math.max(s.y,Math.min(x,s.y+s.height))}),T=Gc(Gc({},h),{},{payload:Gc(Gc({},h.payload),{},{coordinate:w})});r(T)}else r(h);return}if(i!=null){var S;if(typeof n=="function"){var O={activeTooltipIndex:h.payload.index==null?void 0:Number(h.payload.index),isTooltipActive:h.payload.active,activeIndex:h.payload.index==null?void 0:Number(h.payload.index),activeLabel:h.payload.label,activeDataKey:h.payload.dataKey,activeCoordinate:h.payload.coordinate},C=n(i,O);S=i[C]}else n==="value"&&(S=i.find(te=>String(te.value)===h.payload.label));var{coordinate:k}=h.payload;if(S==null||h.payload.active===!1||k==null||s==null){r(KE({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:D,y:M}=k,N=Math.min(D,s.x+s.width),z=Math.min(M,s.y+s.height),H={x:a==="horizontal"?S.coordinate:N,y:a==="horizontal"?z:S.coordinate},B=KE({active:h.payload.active,coordinate:H,dataKey:h.payload.dataKey,index:String(S.index),label:h.payload.label});r(B)}}};return Fp.on(JE,c),()=>{Fp.off(JE,c)}},[o,r,t,e,n,i,a,s])}function Nde(){var e=rt(F4),t=rt(L4),r=jr();A.useEffect(()=>{if(e==null)return Cz;var n=(i,a,s)=>{t!==s&&e===i&&r(Tde(a))};return Fp.on(M8,n),()=>{Fp.off(M8,n)}},[r,t,e])}function Fde(){var e=jr();A.useEffect(()=>{e(wde())},[e]),Rde(),Nde()}function Lde(e,t,r,n,i,a){var s=rt(m=>sde(m,e,t)),o=rt(L4),c=rt(F4),f=rt(gU),h=rt(Sde),p=h?.active;A.useEffect(()=>{if(!p&&c!=null&&o!=null){var m=KE({active:a,coordinate:r,dataKey:s,index:i,label:typeof n=="number"?String(n):n});Fp.emit(JE,c,m,o)}},[p,r,s,i,n,o,c,f,a])}function F8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function L8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F8(Object(r),!0).forEach(function(n){Ide(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ide(e,t,r){return(t=Bde(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bde(e){var t=jde(e,"string");return typeof t=="symbol"?t:t+""}function jde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ude(e){return e.dataKey}function zde(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(lle,t)}var I8=[],Vde={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Yu.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function vd(e){var t=Di(e,Vde),{active:r,allowEscapeViewBox:n,animationDuration:i,animationEasing:a,content:s,filterNull:o,isAnimationActive:c,offset:f,payloadUniqBy:h,position:p,reverseDirection:m,useTranslate3d:g,wrapperStyle:y,cursor:x,shared:_,trigger:w,defaultIndex:T,portal:S,axisId:O}=t,C=jr(),k=typeof T=="number"?String(T):T;A.useEffect(()=>{C(che({shared:_,trigger:w,axisId:O,active:r,defaultIndex:k}))},[C,_,w,O,r,k]);var D=t4(),M=hj(),N=ihe(_),{activeIndex:z,isActive:H}=rt(X=>cde(X,N,w,k)),B=rt(X=>lde(X,N,w,k)),te=rt(X=>wz(X,N,w,k)),ne=rt(X=>ode(X,N,w,k)),le=B,Q=gde(),ee=r??H,[ce,J]=kB([le,ee]),R=N==="axis"?te:void 0;Lde(N,w,ne,R,z,ee);var se=S??Q;if(se==null)return null;var F=le??I8;ee||(F=I8),o&&F.length&&(F=EB(le.filter(X=>X.value!=null&&(X.hide!==!0||t.includeHidden)),h,Ude));var V=F.length>0,q=A.createElement(mle,{allowEscapeViewBox:n,animationDuration:i,animationEasing:a,isAnimationActive:c,active:ee,coordinate:ne,hasPayload:V,offset:f,position:p,reverseDirection:m,useTranslate3d:g,viewBox:D,wrapperStyle:y,lastBoundingBox:ce,innerRef:J,hasPortalFromProps:!!S},zde(s,L8(L8({},t),{},{payload:F,label:R,active:ee,coordinate:ne,accessibilityLayer:M})));return A.createElement(A.Fragment,null,lL.createPortal(q,se),ee&&A.createElement(mde,{cursor:x,tooltipEventType:N,coordinate:ne,payload:le,index:z}))}var Rw={},Nw={},Fw={},B8;function Hde(){return B8||(B8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let s,o=null;const c=a!=null&&a.includes("leading"),f=a==null||a.includes("trailing"),h=()=>{o!==null&&(r.apply(s,o),s=void 0,o=null)},p=()=>{f&&h(),x()};let m=null;const g=()=>{m!=null&&clearTimeout(m),m=setTimeout(()=>{m=null,p()},n)},y=()=>{m!==null&&(clearTimeout(m),m=null)},x=()=>{y(),s=void 0,o=null},_=()=>{h()},w=function(...T){if(i?.aborted)return;s=this,o=T;const S=m==null;g(),c&&S&&h()};return w.schedule=g,w.cancel=x,w.flush=_,i?.addEventListener("abort",x,{once:!0}),w}e.debounce=t}(Fw)),Fw}var j8;function $de(){return j8||(j8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hde();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:s=!1,trailing:o=!0,maxWait:c}=a,f=Array(2);s&&(f[0]="leading"),o&&(f[1]="trailing");let h,p=null;const m=t.debounce(function(...x){h=n.apply(this,x),p=null},i,{edges:f}),g=function(...x){return c!=null&&(p===null&&(p=Date.now()),Date.now()-p>=c)?(h=n.apply(this,x),p=Date.now(),m.cancel(),m.schedule(),h):(m.apply(this,x),h)},y=()=>(m.flush(),h);return g.cancel=m.cancel,g.flush=y,g}e.debounce=r}(Nw)),Nw}var U8;function Wde(){return U8||(U8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$de();function r(n,i=0,a={}){const{leading:s=!0,trailing:o=!0}=a;return t.debounce(n,i,{leading:s,maxWait:i,trailing:o})}e.throttle=r}(Rw)),Rw}var Lw,z8;function qde(){return z8||(z8=1,Lw=Wde().throttle),Lw}var Gde=qde();const Xde=fl(Gde);var Qd=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function V8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Iw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V8(Object(r),!0).forEach(function(n){Yde(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yde(e,t,r){return(t=Kde(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kde(e){var t=Zde(e,"string");return typeof t=="symbol"?t:t+""}function Zde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xd=A.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:s=0,minHeight:o,maxHeight:c,children:f,debounce:h=0,id:p,className:m,onResize:g,style:y={}}=e,x=A.useRef(null),_=A.useRef();_.current=g,A.useImperativeHandle(t,()=>x.current);var[w,T]=A.useState({containerWidth:n.width,containerHeight:n.height}),S=A.useCallback((C,k)=>{T(D=>{var M=Math.round(C),N=Math.round(k);return D.containerWidth===M&&D.containerHeight===N?D:{containerWidth:M,containerHeight:N}})},[]);A.useEffect(()=>{var C=N=>{var z,{width:H,height:B}=N[0].contentRect;S(H,B),(z=_.current)===null||z===void 0||z.call(_,H,B)};h>0&&(C=Xde(C,h,{trailing:!0,leading:!1}));var k=new ResizeObserver(C),{width:D,height:M}=x.current.getBoundingClientRect();return S(D,M),k.observe(x.current),()=>{k.disconnect()}},[S,h]);var O=A.useMemo(()=>{var{containerWidth:C,containerHeight:k}=w;if(C<0||k<0)return null;Qd(ou(i)||ou(a),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,i,a),Qd(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=ou(i)?C:i,M=ou(a)?k:a;return r&&r>0&&(D?M=D/r:M&&(D=M*r),c&&M>c&&(M=c)),Qd(D>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,D,M,i,a,s,o,r),A.Children.map(f,N=>A.cloneElement(N,{width:D,height:M,style:Iw({width:D,height:M},N.props.style)}))},[r,f,a,c,o,s,w,i]);return A.createElement("div",{id:p?"".concat(p):void 0,className:Gt("recharts-responsive-container",m),style:Iw(Iw({},y),{},{width:i,height:a,minWidth:s,minHeight:o,maxHeight:c}),ref:x},A.createElement("div",{style:{width:0,height:0,overflow:"visible"}},O))}),Lp=e=>null;Lp.displayName="Cell";function Qde(e,t,r){return(t=Jde(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jde(e){var t=epe(e,"string");return typeof t=="symbol"?t:t+""}function epe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class tpe{constructor(t){Qde(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function H8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rpe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H8(Object(r),!0).forEach(function(n){npe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function npe(e,t,r){return(t=ipe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ipe(e){var t=ape(e,"string");return typeof t=="symbol"?t:t+""}function ape(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var spe={cacheSize:2e3,enableCache:!0},Oz=rpe({},spe),$8=new tpe(Oz.cacheSize),ope={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},W8="recharts_measurement_span";function lpe(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",s=t.letterSpacing||"",o=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(s,"|").concat(o)}var q8=(e,t)=>{try{var r=document.getElementById(W8);r||(r=document.createElement("span"),r.setAttribute("id",W8),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,ope,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Jd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Yu.isSsr)return{width:0,height:0};if(!Oz.enableCache)return q8(t,r);var n=lpe(t,r),i=$8.get(n);if(i)return i;var a=q8(t,r);return $8.set(n,a),a},G8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,X8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,cpe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,upe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,kz={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},fpe=Object.keys(kz),a0="NaN";function hpe(e,t){return e*kz[t]}class ta{static parse(t){var r,[,n,i]=(r=upe.exec(t))!==null&&r!==void 0?r:[];return new ta(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Ts(t)&&(this.unit=""),r!==""&&!cpe.test(r)&&(this.num=NaN,this.unit=""),fpe.includes(r)&&(this.num=hpe(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new ta(NaN,""):new ta(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ta(NaN,""):new ta(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ta(NaN,""):new ta(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ta(NaN,""):new ta(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ts(this.num)}}function Dz(e){if(e.includes(a0))return a0;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=G8.exec(t))!==null&&r!==void 0?r:[],s=ta.parse(n??""),o=ta.parse(a??""),c=i==="*"?s.multiply(o):s.divide(o);if(c.isNaN())return a0;t=t.replace(G8,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,[,h,p,m]=(f=X8.exec(t))!==null&&f!==void 0?f:[],g=ta.parse(h??""),y=ta.parse(m??""),x=p==="+"?g.add(y):g.subtract(y);if(x.isNaN())return a0;t=t.replace(X8,x.toString())}return t}var Y8=/\(([^()]*)\)/;function dpe(e){for(var t=e,r;(r=Y8.exec(t))!=null;){var[,n]=r;t=t.replace(Y8,Dz(n))}return t}function ppe(e){var t=e.replace(/\s+/g,"");return t=dpe(t),t=Dz(t),t}function mpe(e){try{return ppe(e)}catch{return a0}}function Bw(e){var t=mpe(e.slice(5,-1));return t===a0?"":t}var gpe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],vpe=["dx","dy","angle","className","breakAll"];function eT(){return eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eT.apply(null,arguments)}function K8(e,t){if(e==null)return{};var r,n,i=xpe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function xpe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Pz=/[ \f\n\r\t\v\u2028\u2029]+/,Mz=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];Dn(t)||(r?i=t.toString().split(""):i=t.toString().split(Pz));var a=i.map(o=>({word:o,width:Jd(o,n).width})),s=r?0:Jd(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},ype=(e,t,r,n,i)=>{var{maxLines:a,children:s,style:o,breakAll:c}=e,f=ut(a),h=s,p=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return H.reduce((B,te)=>{var{word:ne,width:le}=te,Q=B[B.length-1];if(Q&&(n==null||i||Q.width+le+r<Number(n)))Q.words.push(ne),Q.width+=le+r;else{var ee={words:[ne],width:le};B.push(ee)}return B},[])},m=p(t),g=z=>z.reduce((H,B)=>H.width>B.width?H:B);if(!f||i)return m;var y=m.length>a||g(m).width>Number(n);if(!y)return m;for(var x="…",_=z=>{var H=h.slice(0,z),B=Mz({breakAll:c,style:o,children:H+x}).wordsWithComputedWidth,te=p(B),ne=te.length>a||g(te).width>Number(n);return[ne,te]},w=0,T=h.length-1,S=0,O;w<=T&&S<=h.length-1;){var C=Math.floor((w+T)/2),k=C-1,[D,M]=_(k),[N]=_(C);if(!D&&!N&&(w=C+1),D&&N&&(T=C-1),!D&&N){O=M;break}S++}return O||m},Z8=e=>{var t=Dn(e)?[]:e.toString().split(Pz);return[{words:t}]},_pe=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:s}=e;if((t||r)&&!Yu.isSsr){var o,c,f=Mz({breakAll:a,children:n,style:i});if(f){var{wordsWithComputedWidth:h,spaceWidth:p}=f;o=h,c=p}else return Z8(n);return ype({breakAll:a,children:n,maxLines:s,style:i},o,c,t,r)}return Z8(n)},Q8="#808080",fy=A.forwardRef((e,t)=>{var{x:r=0,y:n=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:s=!1,textAnchor:o="start",verticalAnchor:c="end",fill:f=Q8}=e,h=K8(e,gpe),p=A.useMemo(()=>_pe({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:s,style:h.style,width:h.width}),[h.breakAll,h.children,h.maxLines,s,h.style,h.width]),{dx:m,dy:g,angle:y,className:x,breakAll:_}=h,w=K8(h,vpe);if(!_o(r)||!_o(n)||p.length===0)return null;var T=r+(ut(m)?m:0),S=n+(ut(g)?g:0),O;switch(c){case"start":O=Bw("calc(".concat(a,")"));break;case"middle":O=Bw("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:O=Bw("calc(".concat(p.length-1," * -").concat(i,")"));break}var C=[];if(s){var k=p[0].width,{width:D}=h;C.push("scale(".concat(ut(D)?D/k:1,")"))}return y&&C.push("rotate(".concat(y,", ").concat(T,", ").concat(S,")")),C.length&&(w.transform=C.join(" ")),A.createElement("text",eT({},Yr(w,!0),{ref:t,x:T,y:S,className:Gt("recharts-text",x),textAnchor:o,fill:f.includes("url")?Q8:f}),p.map((M,N)=>{var z=M.words.join(_?"":" ");return A.createElement("tspan",{x:T,dy:N===0?O:i,key:"".concat(z,"-").concat(N)},z)}))});fy.displayName="Text";var bpe=["labelRef"];function wpe(e,t){if(e==null)return{};var r,n,i=Spe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Spe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function J8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J8(Object(r),!0).forEach(function(n){Epe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Epe(e,t,r){return(t=Tpe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tpe(e){var t=Ape(e,"string");return typeof t=="symbol"?t:t+""}function Ape(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ho.apply(null,arguments)}var Rz=A.createContext(null),Cpe=e=>{var{x:t,y:r,width:n,height:i,children:a}=e,s=A.useMemo(()=>({x:t,y:r,width:n,height:i}),[t,r,n,i]);return A.createElement(Rz.Provider,{value:s},a)},Nz=()=>{var e=A.useContext(Rz),t=t4();return e||t},Ope=A.createContext(null),kpe=()=>{var e=A.useContext(Ope),t=rt(bU);return e||t},Dpe=e=>{var{value:t,formatter:r}=e,n=Dn(e.children)?t:e.children;return typeof r=="function"?r(n):n},d3=e=>e!=null&&typeof e=="function",Ppe=(e,t)=>{var r=Ai(t-e),n=Math.min(Math.abs(t-e),360);return r*n},Mpe=(e,t,r,n,i)=>{var{offset:a,className:s}=e,{cx:o,cy:c,innerRadius:f,outerRadius:h,startAngle:p,endAngle:m,clockWise:g}=i,y=(f+h)/2,x=Ppe(p,m),_=x>=0?1:-1,w,T;switch(t){case"insideStart":w=p+_*a,T=g;break;case"insideEnd":w=m-_*a,T=!g;break;case"end":w=m+_*a,T=g;break;default:throw new Error("Unsupported position ".concat(t))}T=x<=0?T:!T;var S=_n(o,c,y,w),O=_n(o,c,y,w+(T?1:-1)*359),C="M".concat(S.x,",").concat(S.y,`
    A`).concat(y,",").concat(y,",0,1,").concat(T?0:1,`,
    `).concat(O.x,",").concat(O.y),k=Dn(e.id)?Tp("recharts-radial-line-"):e.id;return A.createElement("text",Ho({},n,{dominantBaseline:"central",className:Gt("recharts-radial-bar-label",s)}),A.createElement("defs",null,A.createElement("path",{id:k,d:C})),A.createElement("textPath",{xlinkHref:"#".concat(k)},r))},Rpe=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:s,startAngle:o,endAngle:c}=e,f=(o+c)/2;if(r==="outside"){var{x:h,y:p}=_n(n,i,s+t,f);return{x:h,y:p,textAnchor:h>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var m=(a+s)/2,{x:g,y}=_n(n,i,m,f);return{x:g,y,textAnchor:"middle",verticalAnchor:"middle"}},Fz=e=>"cx"in e&&ut(e.cx),Npe=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,a;r!=null&&!Fz(r)&&(a=r);var{x:s,y:o,width:c,height:f}=t,h=f>=0?1:-1,p=h*n,m=h>0?"end":"start",g=h>0?"start":"end",y=c>=0?1:-1,x=y*n,_=y>0?"end":"start",w=y>0?"start":"end";if(i==="top"){var T={x:s+c/2,y:o-h*n,textAnchor:"middle",verticalAnchor:m};return tn(tn({},T),a?{height:Math.max(o-a.y,0),width:c}:{})}if(i==="bottom"){var S={x:s+c/2,y:o+f+p,textAnchor:"middle",verticalAnchor:g};return tn(tn({},S),a?{height:Math.max(a.y+a.height-(o+f),0),width:c}:{})}if(i==="left"){var O={x:s-x,y:o+f/2,textAnchor:_,verticalAnchor:"middle"};return tn(tn({},O),a?{width:Math.max(O.x-a.x,0),height:f}:{})}if(i==="right"){var C={x:s+c+x,y:o+f/2,textAnchor:w,verticalAnchor:"middle"};return tn(tn({},C),a?{width:Math.max(a.x+a.width-C.x,0),height:f}:{})}var k=a?{width:c,height:f}:{};return i==="insideLeft"?tn({x:s+x,y:o+f/2,textAnchor:w,verticalAnchor:"middle"},k):i==="insideRight"?tn({x:s+c-x,y:o+f/2,textAnchor:_,verticalAnchor:"middle"},k):i==="insideTop"?tn({x:s+c/2,y:o+p,textAnchor:"middle",verticalAnchor:g},k):i==="insideBottom"?tn({x:s+c/2,y:o+f-p,textAnchor:"middle",verticalAnchor:m},k):i==="insideTopLeft"?tn({x:s+x,y:o+p,textAnchor:w,verticalAnchor:g},k):i==="insideTopRight"?tn({x:s+c-x,y:o+p,textAnchor:_,verticalAnchor:g},k):i==="insideBottomLeft"?tn({x:s+x,y:o+f-p,textAnchor:w,verticalAnchor:m},k):i==="insideBottomRight"?tn({x:s+c-x,y:o+f-p,textAnchor:_,verticalAnchor:m},k):i&&typeof i=="object"&&(ut(i.x)||ou(i.x))&&(ut(i.y)||ou(i.y))?tn({x:s+ja(i.x,c),y:o+ja(i.y,f),textAnchor:"end",verticalAnchor:"end"},k):tn({x:s+c/2,y:o+f/2,textAnchor:"middle",verticalAnchor:"middle"},k)},Fpe={offset:5};function Kl(e){var t=Di(e,Fpe),{viewBox:r,position:n,value:i,children:a,content:s,className:o="",textBreakAll:c,labelRef:f}=t,h=kpe(),p=Nz(),m=n==="center"?p:h??p,g=r||m;if(!g||Dn(i)&&Dn(a)&&!A.isValidElement(s)&&typeof s!="function")return null;var y=tn(tn({},t),{},{viewBox:g});if(A.isValidElement(s)){var{labelRef:x}=y,_=wpe(y,bpe);return A.cloneElement(s,_)}var w;if(typeof s=="function"){if(w=A.createElement(s,y),A.isValidElement(w))return w}else w=Dpe(t);var T=Fz(g),S=Yr(t,!0);if(T&&(n==="insideStart"||n==="insideEnd"||n==="end"))return Mpe(t,n,w,S,g);var O=T?Rpe(g,t.offset,t.position):Npe(t,g);return A.createElement(fy,Ho({ref:f,className:Gt("recharts-label",o)},S,O,{breakAll:c}),w)}Kl.displayName="Label";var Lpe=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?A.createElement(Kl,Ho({key:"label-implicit"},n)):_o(e)?A.createElement(Kl,Ho({key:"label-implicit",value:e},n)):A.isValidElement(e)?e.type===Kl?A.cloneElement(e,tn({key:"label-implicit"},n)):A.createElement(Kl,Ho({key:"label-implicit",content:e},n)):d3(e)?A.createElement(Kl,Ho({key:"label-implicit",content:e},n)):e&&typeof e=="object"?A.createElement(Kl,Ho({},e,{key:"label-implicit"},n)):null};function Ipe(e){var{label:t}=e,r=Nz();return Lpe(t,r)||null}var jw={},Uw={},eN;function Bpe(){return eN||(eN=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t}(Uw)),Uw}var zw={},tN;function jpe(){return tN||(tN=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t}(zw)),zw}var rN;function Upe(){return rN||(rN=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bpe(),r=jpe(),n=GA();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i}(jw)),jw}var Vw,nN;function zpe(){return nN||(nN=1,Vw=Upe().last),Vw}var Vpe=zpe();const Hpe=fl(Vpe);var $pe=["valueAccessor"],Wpe=["dataKey","clockWise","id","textBreakAll"];function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jv.apply(null,arguments)}function iN(e,t){if(e==null)return{};var r,n,i=qpe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function qpe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Gpe=e=>Array.isArray(e.value)?Hpe(e.value):e.value,Lz=A.createContext(void 0),Xpe=Lz.Provider,Iz=A.createContext(void 0),Ype=Iz.Provider;function Kpe(){return A.useContext(Lz)}function Zpe(){return A.useContext(Iz)}function Kg(e){var{valueAccessor:t=Gpe}=e,r=iN(e,$pe),{dataKey:n,clockWise:i,id:a,textBreakAll:s}=r,o=iN(r,Wpe),c=Kpe(),f=Zpe(),h=c||f;return!h||!h.length?null:A.createElement(Ha,{className:"recharts-label-list"},h.map((p,m)=>{var g,y=Dn(n)?t(p,m):Fr(p&&p.payload,n),x=Dn(a)?{}:{id:"".concat(a,"-").concat(m)};return A.createElement(Kl,Jv({},Yr(p,!0),o,x,{fill:(g=r.fill)!==null&&g!==void 0?g:p.fill,parentViewBox:p.parentViewBox,value:y,textBreakAll:s,viewBox:p.viewBox,key:"label-".concat(m),index:m}))}))}Kg.displayName="LabelList";function Bz(e){var{label:t}=e;return t?t===!0?A.createElement(Kg,{key:"labelList-implicit"}):A.isValidElement(t)||d3(t)?A.createElement(Kg,{key:"labelList-implicit",content:t}):typeof t=="object"?A.createElement(Kg,Jv({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function tT(){return tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tT.apply(null,arguments)}var jz=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=Gt("recharts-dot",i);return t===+t&&r===+r&&n===+n?A.createElement("circle",tT({},dl(e),BA(e),{className:a,cx:t,cy:r,r:n})):null},Uz=e=>e.graphicalItems.polarItems,Qpe=Ee([kr,xm],V4),p3=Ee([Uz,on,Qpe],H4),Jpe=Ee([p3],$4),m3=Ee([Jpe,D4],W4),eme=Ee([m3,on,p3],G4),tme=Ee([m3,on,p3],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,s=Fr(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:s,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:Fr(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]}))),aN=()=>{},rme=Ee([on,HU,aN,tme,aN,cr,kr],Y4),zz=Ee([on,cr,m3,eme,vm,kr,rme],K4),nme=Ee([zz,on,th],J4);Ee([on,zz,nme,kr],t3);var ime={radiusAxis:{},angleAxis:{}},Vz=qa({name:"polarAxis",initialState:ime,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:kOe,removeRadiusAxis:DOe,addAngleAxis:POe,removeAngleAxis:MOe}=Vz.actions,ame=Vz.reducer;function sN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sN(Object(r),!0).forEach(function(n){sme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sme(e,t,r){return(t=ome(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ome(e){var t=lme(e,"string");return typeof t=="symbol"?t:t+""}function lme(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cme=(e,t)=>t,g3=Ee([Uz,cme],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),ume=[],v3=(e,t,r)=>r?.length===0?ume:r,Hz=Ee([D4,g3,v3],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>oN(oN({},t.presentationProps),a.props))),i!=null)return i}}),fme=Ee([Hz,g3,v3],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,s=Fr(n,t.nameKey,t.name),o;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?o=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?o=n.fill:o=t.fill,{value:$x(s,t.dataKey),color:o,payload:n,type:t.legendType}})}),hme=Ee([Hz,g3,v3,Gn],(e,t,r,n)=>{if(!(t==null||e==null))return m1e({offset:n,pieSettings:t,displayedData:e,cells:r})}),Hw={},lN;function dme(){return lN||(lN=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t}(Hw)),Hw}var $w,cN;function pme(){return cN||(cN=1,$w=dme().isPlainObject),$w}var mme=pme();const gme=fl(mme);function uN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(r),!0).forEach(function(n){vme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vme(e,t,r){return(t=xme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xme(e){var t=yme(e,"string");return typeof t=="symbol"?t:t+""}function yme(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ex.apply(null,arguments)}var hN=(e,t,r,n,i)=>{var a=r-n,s;return s="M ".concat(e,",").concat(t),s+="L ".concat(e+r,",").concat(t),s+="L ".concat(e+r-a/2,",").concat(t+i),s+="L ".concat(e+r-a/2-n,",").concat(t+i),s+="L ".concat(e,",").concat(t," Z"),s},_me={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},bme=e=>{var t=Di(e,_me),{x:r,y:n,upperWidth:i,lowerWidth:a,height:s,className:o}=t,{animationEasing:c,animationDuration:f,animationBegin:h,isUpdateAnimationActive:p}=t,m=A.useRef(),[g,y]=A.useState(-1),x=A.useRef(i),_=A.useRef(a),w=A.useRef(s),T=A.useRef(r),S=A.useRef(n),O=Kx(e,"trapezoid-");if(A.useEffect(()=>{if(m.current&&m.current.getTotalLength)try{var ne=m.current.getTotalLength();ne&&y(ne)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||s!==+s||i===0&&a===0||s===0)return null;var C=Gt("recharts-trapezoid",o);if(!p)return A.createElement("g",null,A.createElement("path",ex({},Yr(t,!0),{className:C,d:hN(r,n,i,a,s)})));var k=x.current,D=_.current,M=w.current,N=T.current,z=S.current,H="0px ".concat(g===-1?1:g,"px"),B="".concat(g,"px 0px"),te=dj(["strokeDasharray"],f,c);return A.createElement(Yx,{animationId:O,key:O,canBegin:g>0,duration:f,easing:c,isActive:p,begin:h},ne=>{var le=Si(k,i,ne),Q=Si(D,a,ne),ee=Si(M,s,ne),ce=Si(N,r,ne),J=Si(z,n,ne);m.current&&(x.current=le,_.current=Q,w.current=ee,T.current=ce,S.current=J);var R=ne>0?{transition:te,strokeDasharray:B}:{strokeDasharray:H};return A.createElement("path",ex({},Yr(t,!0),{className:C,d:hN(ce,J,le,Q,ee),ref:m,style:fN(fN({},R),t.style)}))})},wme=["option","shapeType","propTransformer","activeClassName","isActive"];function Sme(e,t){if(e==null)return{};var r,n,i=Eme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Eme(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function dN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dN(Object(r),!0).forEach(function(n){Tme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tme(e,t,r){return(t=Ame(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ame(e){var t=Cme(e,"string");return typeof t=="symbol"?t:t+""}function Cme(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ome(e,t){return tx(tx({},t),e)}function kme(e,t){return e==="symbols"}function pN(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return A.createElement(vj,r);case"trapezoid":return A.createElement(bme,r);case"sector":return A.createElement(_j,r);case"symbols":if(kme(t))return A.createElement($A,r);break;default:return null}}function Dme(e){return A.isValidElement(e)?e.props:e}function Pme(e){var{option:t,shapeType:r,propTransformer:n=Ome,activeClassName:i="recharts-active-shape",isActive:a}=e,s=Sme(e,wme),o;if(A.isValidElement(t))o=A.cloneElement(t,tx(tx({},s),Dme(t)));else if(typeof t=="function")o=t(s);else if(gme(t)&&typeof t!="boolean"){var c=n(t,s);o=A.createElement(pN,{shapeType:r,elementProps:c})}else{var f=s;o=A.createElement(pN,{shapeType:r,elementProps:f})}return a?A.createElement(Ha,{className:i},o):o}var Mme=(e,t)=>{var r=jr();return(n,i)=>a=>{e?.(n,i,a),r(az({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}},Rme=e=>{var t=jr();return(r,n)=>i=>{e?.(r,n,i),t(uhe())}},Nme=(e,t)=>{var r=jr();return(n,i)=>a=>{e?.(n,i,a),r(fhe({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}};function $z(e){var{fn:t,args:r}=e,n=jr(),i=ks();return A.useEffect(()=>{if(!i){var a=t(r);return n(ohe(a)),()=>{n(lhe(a))}}},[t,r,n,i]),null}var Wz=()=>{};function Fme(e){var{legendPayload:t}=e,r=jr(),n=ks();return A.useEffect(()=>n?Wz:(r(uj(t)),()=>{r(fj(t))}),[r,n,t]),null}function Lme(e){var{legendPayload:t}=e,r=jr(),n=rt(cr);return A.useEffect(()=>n!=="centric"&&n!=="radial"?Wz:(r(uj(t)),()=>{r(fj(t))}),[r,n,t]),null}var Ww,Ime=()=>{var[e]=A.useState(()=>Tp("uid-"));return e},Bme=(Ww=Wq.useId)!==null&&Ww!==void 0?Ww:Ime;function jme(e,t){var r=Bme();return t||(e?"".concat(e,"-").concat(r):r)}var Ume=A.createContext(void 0),qz=e=>{var{id:t,type:r,children:n}=e,i=jme("recharts-".concat(r),t);return A.createElement(Ume.Provider,{value:i},n(i))},zme={cartesianItems:[],polarItems:[]},Gz=qa({name:"graphicalItems",initialState:zme,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:r,next:n}=t.payload,i=Ko(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},removeCartesianGraphicalItem(e,t){var r=Ko(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var r=Ko(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)}}}),{addCartesianGraphicalItem:Vme,replaceCartesianGraphicalItem:Hme,removeCartesianGraphicalItem:$me,addPolarGraphicalItem:Wme,removePolarGraphicalItem:qme}=Gz.actions,Gme=Gz.reducer;function Xme(e){var t=jr(),r=A.useRef(null);return A.useEffect(()=>{r.current===null?t(Vme(e)):r.current!==e&&t(Hme({prev:r.current,next:e})),r.current=e},[t,e]),A.useEffect(()=>()=>{r.current&&(t($me(r.current)),r.current=null)},[t]),null}function Yme(e){var t=jr();return A.useEffect(()=>(t(Wme(e)),()=>{t(qme(e))}),[t,e]),null}var Kme=["onMouseEnter","onClick","onMouseLeave"],Zme=["id"],Qme=["id"];function x3(e,t){if(e==null)return{};var r,n,i=Jme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Jme(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function mN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mN(Object(r),!0).forEach(function(n){e1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e1e(e,t,r){return(t=t1e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t1e(e){var t=r1e(e,"string");return typeof t=="symbol"?t:t+""}function r1e(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pc.apply(null,arguments)}function n1e(e){var t=A.useMemo(()=>KI(e.children,Lp),[e.children]),r=rt(n=>fme(n,e.id,t));return r==null?null:A.createElement(Lme,{legendPayload:r})}function i1e(e){var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:s,name:o,hide:c,tooltipType:f}=e;return{dataDefinedOnItem:n.map(h=>h.tooltipPayload),positions:n.map(h=>h.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:s,dataKey:t,nameKey:r,name:$x(o,t),hide:c,type:f,color:s,unit:""}}}var a1e=(e,t)=>e>t?"start":e<t?"end":"middle",s1e=(e,t,r)=>ja(typeof t=="function"?t(e):t,r,r*.8),o1e=(e,t,r)=>{var{top:n,left:i,width:a,height:s}=t,o=ej(a,s),c=i+ja(e.cx,a,a/2),f=n+ja(e.cy,s,s/2),h=ja(e.innerRadius,o,0),p=s1e(r,e.outerRadius,o),m=e.maxRadius||Math.sqrt(a*a+s*s)/2;return{cx:c,cy:f,innerRadius:h,outerRadius:p,maxRadius:m}},l1e=(e,t)=>{var r=Ai(t-e),n=Math.min(Math.abs(t-e),360);return r*n};function c1e(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var u1e=(e,t)=>{if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return e(t);var r=Gt("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return A.createElement(s4,pc({},t,{type:"linear",className:r}))},f1e=(e,t,r)=>{if(A.isValidElement(e))return A.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),A.isValidElement(n)))return n;var i=Gt("recharts-pie-label-text",c1e(e));return A.createElement(fy,pc({},t,{alignmentBaseline:"middle",className:i}),n)};function h1e(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:s}=r;if(!n||!i||!t)return null;var o=dl(r),c=Yr(i,!1),f=Yr(a,!1),h=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,p=t.map((m,g)=>{var y=(m.startAngle+m.endAngle)/2,x=_n(m.cx,m.cy,m.outerRadius+h,y),_=Tr(Tr(Tr(Tr({},o),m),{},{stroke:"none"},c),{},{index:g,textAnchor:a1e(x.x,m.cx)},x),w=Tr(Tr(Tr(Tr({},o),m),{},{fill:"none",stroke:m.fill},f),{},{index:g,points:[_n(m.cx,m.cy,m.outerRadius,y),x],key:"line"});return A.createElement(Ha,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(g)},a&&u1e(a,w),f1e(i,_,Fr(m,s)))});return A.createElement(Ha,{className:"recharts-pie-labels"},p)}function d1e(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?A.createElement(Bz,{label:i}):A.createElement(h1e,{sectors:t,props:r,showLabels:n})}function p1e(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i}=e,a=rt(I0),{onMouseEnter:s,onClick:o,onMouseLeave:c}=i,f=x3(i,Kme),h=Mme(s,i.dataKey),p=Rme(c),m=Nme(o,i.dataKey);return t==null||t.length===0?null:A.createElement(A.Fragment,null,t.map((g,y)=>{if(g?.startAngle===0&&g?.endAngle===0&&t.length!==1)return null;var x=r&&String(y)===a,_=a?n:null,w=x?r:_,T=Tr(Tr({},g),{},{stroke:g.stroke,tabIndex:-1,[aj]:y,[sj]:i.dataKey});return A.createElement(Ha,pc({tabIndex:-1,className:"recharts-pie-sector"},jA(f,g,y),{onMouseEnter:h(g,y),onMouseLeave:p(g,y),onClick:m(g,y),key:"sector-".concat(g?.startAngle,"-").concat(g?.endAngle,"-").concat(g.midAngle,"-").concat(y)}),A.createElement(Pme,pc({option:w,isActive:x,shapeType:"sector"},T)))}))}function m1e(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:s,startAngle:o,endAngle:c,dataKey:f,nameKey:h,tooltipType:p}=r,m=Math.abs(r.minAngle),g=l1e(o,c),y=Math.abs(g),x=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,_=n.filter(k=>Fr(k,f,0)!==0).length,w=(y>=360?_:_-1)*x,T=y-_*m-w,S=n.reduce((k,D)=>{var M=Fr(D,f,0);return k+(ut(M)?M:0)},0),O;if(S>0){var C;O=n.map((k,D)=>{var M=Fr(k,f,0),N=Fr(k,h,D),z=o1e(r,a,k),H=(ut(M)?M:0)/S,B,te=Tr(Tr({},k),i&&i[D]&&i[D].props);D?B=C.endAngle+Ai(g)*x*(M!==0?1:0):B=o;var ne=B+Ai(g)*((M!==0?m:0)+H*T),le=(B+ne)/2,Q=(z.innerRadius+z.outerRadius)/2,ee=[{name:N,value:M,payload:te,dataKey:f,type:p}],ce=_n(z.cx,z.cy,Q,le);return C=Tr(Tr(Tr(Tr({},r.presentationProps),{},{percent:H,cornerRadius:s,name:N,tooltipPayload:ee,midAngle:le,middleRadius:Q,tooltipPosition:ce},te),z),{},{value:M,startAngle:B,endAngle:ne,payload:te,paddingAngle:Ai(g)*x}),C})}return O}function g1e(e){var{showLabels:t,sectors:r,children:n}=e,i=A.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return A.createElement(Ype,{value:t?i:void 0},n)}function v1e(e){var{props:t,previousSectorsRef:r}=e,{sectors:n,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:o,activeShape:c,inactiveShape:f,onAnimationStart:h,onAnimationEnd:p}=t,m=Kx(t,"recharts-pie-"),g=r.current,[y,x]=A.useState(!1),_=A.useCallback(()=>{typeof p=="function"&&p(),x(!1)},[p]),w=A.useCallback(()=>{typeof h=="function"&&h(),x(!0)},[h]);return A.createElement(g1e,{showLabels:!y,sectors:n},A.createElement(Yx,{animationId:m,begin:a,duration:s,isActive:i,easing:o,onAnimationStart:w,onAnimationEnd:_,key:m},T=>{var S=[],O=n&&n[0],C=O?.startAngle;return n?.forEach((k,D)=>{var M=g&&g[D],N=D>0?Fu(k,"paddingAngle",0):0;if(M){var z=Si(M.endAngle-M.startAngle,k.endAngle-k.startAngle,T),H=Tr(Tr({},k),{},{startAngle:C+N,endAngle:C+z+N});S.push(H),C=H.endAngle}else{var{endAngle:B,startAngle:te}=k,ne=Si(0,B-te,T),le=Tr(Tr({},k),{},{startAngle:C+N,endAngle:C+ne+N});S.push(le),C=le.endAngle}}),r.current=S,A.createElement(Ha,null,A.createElement(p1e,{sectors:S,activeShape:c,inactiveShape:f,allOtherPieProps:t}))}),A.createElement(d1e,{showLabels:!y,sectors:n,props:t}),t.children)}var x1e={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!Yu.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function y1e(e){var{id:t}=e,r=x3(e,Zme),{hide:n,className:i,rootTabIndex:a}=e,s=A.useMemo(()=>KI(e.children,Lp),[e.children]),o=rt(h=>hme(h,t,s)),c=A.useRef(null),f=Gt("recharts-pie",i);return n||o==null?(c.current=null,A.createElement(Ha,{tabIndex:a,className:f})):A.createElement(A.Fragment,null,A.createElement($z,{fn:i1e,args:Tr(Tr({},e),{},{sectors:o})}),A.createElement(Ha,{tabIndex:a,className:f},A.createElement(v1e,{props:Tr(Tr({},r),{},{sectors:o}),previousSectorsRef:c})))}function rT(e){var t=Di(e,x1e),{id:r}=t,n=x3(t,Qme),i=dl(n);return A.createElement(qz,{id:r,type:"pie"},a=>A.createElement(A.Fragment,null,A.createElement(Yme,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),A.createElement(n1e,pc({},n,{id:a})),A.createElement(y1e,pc({},n,{id:a}))))}rT.displayName="Pie";function gN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gN(Object(r),!0).forEach(function(n){_1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _1e(e,t,r){return(t=b1e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b1e(e){var t=w1e(e,"string");return typeof t=="symbol"?t:t+""}function w1e(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S1e={xAxis:{},yAxis:{},zAxis:{}},Xz=qa({name:"cartesianAxis",initialState:S1e,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload;e.yAxis[r]&&(e.yAxis[r]=vN(vN({},e.yAxis[r]),{},{width:n}))}}}),{addXAxis:E1e,removeXAxis:T1e,addYAxis:A1e,removeYAxis:C1e,addZAxis:ROe,removeZAxis:NOe,updateYAxisWidth:O1e}=Xz.actions,k1e=Xz.reducer,D1e=Ee([Gn],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),P1e=Ee([D1e,pl,ml],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),y3=()=>rt(P1e),M1e=()=>rt(Qhe);function xN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(r),!0).forEach(function(n){R1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R1e(e,t,r){return(t=N1e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N1e(e){var t=F1e(e,"string");return typeof t=="symbol"?t:t+""}function F1e(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L1e=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var s=yN(yN({index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},Yr(i,!1)),BA(i)),o;return A.isValidElement(i)?o=A.cloneElement(i,s):typeof i=="function"?o=i(s):o=A.createElement(jz,s),A.createElement(Ha,{className:"recharts-active-dot"},o)};function I1e(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i}=e,a=rt(I0),s=M1e();if(t==null||s==null)return null;var o=t.find(c=>s.includes(c.payload));return Dn(o)?null:L1e({point:o,childIndex:Number(a),mainColor:r,dataKey:i,activeDot:n})}var B1e={},Yz=qa({name:"errorBars",initialState:B1e,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:FOe,replaceErrorBar:LOe,removeErrorBar:IOe}=Yz.actions,j1e=Yz.reducer,U1e=["children"];function z1e(e,t){if(e==null)return{};var r,n,i=V1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function V1e(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var H1e={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},$1e=A.createContext(H1e);function W1e(e){var{children:t}=e,r=z1e(e,U1e);return A.createElement($1e.Provider,{value:r},t)}function Kz(e,t){var r,n,i=rt(f=>vl(f,e)),a=rt(f=>xl(f,t)),s=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:wa.allowDataOverflow,o=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Sa.allowDataOverflow,c=s||o;return{needClip:c,needClipX:s,needClipY:o}}function q1e(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=y3(),{needClipX:a,needClipY:s,needClip:o}=Kz(t,r);if(!o)return null;var{x:c,y:f,width:h,height:p}=i;return A.createElement("clipPath",{id:"clipPath-".concat(n)},A.createElement("rect",{x:a?c:c-h/2,y:s?f:f-p/2,width:a?h:h*2,height:s?p:p*2}))}var Zz=e=>{var{chartData:t}=e,r=jr(),n=ks();return A.useEffect(()=>n?()=>{}:(r(R8(t)),()=>{r(R8(void 0))}),[t,r,n]),null},_N={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},Qz=qa({name:"brush",initialState:_N,reducers:{setBrushSettings(e,t){return t.payload==null?_N:t.payload}}}),{setBrushSettings:BOe}=Qz.actions,G1e=Qz.reducer;function X1e(e,t,r){return(t=Y1e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y1e(e){var t=K1e(e,"string");return typeof t=="symbol"?t:t+""}function K1e(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class _3{static create(t){return new _3(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}X1e(_3,"EPS",1e-4);function Z1e(e){return(e%180+180)%180}var Q1e=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Z1e(i),s=a*Math.PI/180,o=Math.atan(n/r),c=s>o&&s<Math.PI-o?n/Math.sin(s):r/Math.cos(s);return Math.abs(c)},J1e={dots:[],areas:[],lines:[]},Jz=qa({name:"referenceElements",initialState:J1e,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ko(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ko(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ko(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:jOe,removeDot:UOe,addArea:zOe,removeArea:VOe,addLine:HOe,removeLine:$Oe}=Jz.actions,ege=Jz.reducer,tge=A.createContext(void 0),rge=e=>{var{children:t}=e,[r]=A.useState("".concat(Tp("recharts"),"-clip")),n=y3();if(n==null)return null;var{x:i,y:a,width:s,height:o}=n;return A.createElement(tge.Provider,{value:r},A.createElement("defs",null,A.createElement("clipPath",{id:r},A.createElement("rect",{x:i,y:a,height:o,width:s}))),t)};function B0(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function eV(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function nge(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Q1e(n,r)}function ige(e,t,r){var n=r==="width",{x:i,y:a,width:s,height:o}=e;return t===1?{start:n?i:a,end:n?i+s:a+o}:{start:n?i+s:a+o,end:n?i:a}}function rx(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function age(e,t){return eV(e,t+1)}function sge(e,t,r,n,i){for(var a=(n||[]).slice(),{start:s,end:o}=t,c=0,f=1,h=s,p=function(){var y=n?.[c];if(y===void 0)return{v:eV(n,f)};var x=c,_,w=()=>(_===void 0&&(_=r(y,x)),_),T=y.coordinate,S=c===0||rx(e,T,w,h,o);S||(c=0,h=s,f+=1),S&&(h=T+e*(w()/2+i),c+=f)},m;f<=a.length;)if(m=p(),m)return m.v;return[]}function bN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bN(Object(r),!0).forEach(function(n){oge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oge(e,t,r){return(t=lge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lge(e){var t=cge(e,"string");return typeof t=="symbol"?t:t+""}function cge(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uge(e,t,r,n,i){for(var a=(n||[]).slice(),s=a.length,{start:o}=t,{end:c}=t,f=function(m){var g=a[m],y,x=()=>(y===void 0&&(y=r(g,m)),y);if(m===s-1){var _=e*(g.coordinate+e*x()/2-c);a[m]=g=pi(pi({},g),{},{tickCoord:_>0?g.coordinate-_*e:g.coordinate})}else a[m]=g=pi(pi({},g),{},{tickCoord:g.coordinate});var w=rx(e,g.tickCoord,x,o,c);w&&(c=g.tickCoord-e*(x()/2+i),a[m]=pi(pi({},g),{},{isShow:!0}))},h=s-1;h>=0;h--)f(h);return a}function fge(e,t,r,n,i,a){var s=(n||[]).slice(),o=s.length,{start:c,end:f}=t;if(a){var h=n[o-1],p=r(h,o-1),m=e*(h.coordinate+e*p/2-f);s[o-1]=h=pi(pi({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate});var g=rx(e,h.tickCoord,()=>p,c,f);g&&(f=h.tickCoord-e*(p/2+i),s[o-1]=pi(pi({},h),{},{isShow:!0}))}for(var y=a?o-1:o,x=function(T){var S=s[T],O,C=()=>(O===void 0&&(O=r(S,T)),O);if(T===0){var k=e*(S.coordinate-e*C()/2-c);s[T]=S=pi(pi({},S),{},{tickCoord:k<0?S.coordinate-k*e:S.coordinate})}else s[T]=S=pi(pi({},S),{},{tickCoord:S.coordinate});var D=rx(e,S.tickCoord,C,c,f);D&&(c=S.tickCoord+e*(C()/2+i),s[T]=pi(pi({},S),{},{isShow:!0}))},_=0;_<y;_++)x(_);return s}function b3(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:s,orientation:o,interval:c,tickFormatter:f,unit:h,angle:p}=e;if(!i||!i.length||!n)return[];if(ut(c)||Yu.isSsr){var m;return(m=age(i,ut(c)?c:0))!==null&&m!==void 0?m:[]}var g=[],y=o==="top"||o==="bottom"?"width":"height",x=h&&y==="width"?Jd(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},_=(S,O)=>{var C=typeof f=="function"?f(S.value,O):S.value;return y==="width"?nge(Jd(C,{fontSize:t,letterSpacing:r}),x,p):Jd(C,{fontSize:t,letterSpacing:r})[y]},w=i.length>=2?Ai(i[1].coordinate-i[0].coordinate):1,T=ige(a,w,y);return c==="equidistantPreserveStart"?sge(w,T,_,i,s):(c==="preserveStart"||c==="preserveStartEnd"?g=fge(w,T,_,i,s,c==="preserveStartEnd"):g=uge(w,T,_,i,s),g.filter(S=>S.isShow))}var hge=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,s=0;if(t){t.forEach(h=>{if(h){var p=h.getBoundingClientRect();p.width>s&&(s=p.width)}});var o=r?r.getBoundingClientRect().width:0,c=i+a,f=s+c+o+(r?n:0);return Math.round(f)}return 0},dge=["axisLine","width","height","className","hide","ticks"],pge=["viewBox"],mge=["viewBox"];function nT(e,t){if(e==null)return{};var r,n,i=gge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function gge(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ju(){return ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ju.apply(null,arguments)}function wN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(r),!0).forEach(function(n){vge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vge(e,t,r){return(t=xge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xge(e){var t=yge(e,"string");return typeof t=="symbol"?t:t+""}function yge(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var w3={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};function _ge(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:s,axisLine:o,otherSvgProps:c}=e;if(!o)return null;var f=On(On(On({},c),Yr(o,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var h=+(a==="top"&&!s||a==="bottom"&&s);f=On(On({},f),{},{x1:t,y1:r+h*i,x2:t+n,y2:r+h*i})}else{var p=+(a==="left"&&!s||a==="right"&&s);f=On(On({},f),{},{x1:t+p*n,y1:r,x2:t+p*n,y2:r+i})}return A.createElement("line",ju({},f,{className:Gt("recharts-cartesian-axis-line",Fu(o,"className"))}))}function bge(e,t,r,n,i,a,s,o,c){var f,h,p,m,g,y,x=o?-1:1,_=e.tickSize||s,w=ut(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":f=h=e.coordinate,m=r+ +!o*i,p=m-x*_,y=p-x*c,g=w;break;case"left":p=m=e.coordinate,h=t+ +!o*n,f=h-x*_,g=f-x*c,y=w;break;case"right":p=m=e.coordinate,h=t+ +o*n,f=h+x*_,g=f+x*c,y=w;break;default:f=h=e.coordinate,m=r+ +o*i,p=m+x*_,y=p+x*c,g=w;break}return{line:{x1:f,y1:p,x2:h,y2:m},tick:{x:g,y}}}function wge(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Sge(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Ege(e){var{option:t,tickProps:r,value:n}=e,i,a=Gt(r.className,"recharts-cartesian-axis-tick-value");if(A.isValidElement(t))i=A.cloneElement(t,On(On({},r),{},{className:a}));else if(typeof t=="function")i=t(On(On({},r),{},{className:a}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Gt(s,t?.className)),i=A.createElement(fy,ju({},r,{className:s}),n)}return i}function Tge(e){var{ticks:t=[],tick:r,tickLine:n,stroke:i,tickFormatter:a,unit:s,padding:o,tickTextProps:c,orientation:f,mirror:h,x:p,y:m,width:g,height:y,tickSize:x,tickMargin:_,fontSize:w,letterSpacing:T,getTicksConfig:S,events:O}=e,C=b3(On(On({},S),{},{ticks:t}),w,T),k=wge(f,h),D=Sge(f,h),M=dl(S),N=Yr(r,!1),z=On(On({},M),{},{fill:"none"},Yr(n,!1)),H=C.map((B,te)=>{var{line:ne,tick:le}=bge(B,p,m,g,y,f,x,h,_),Q=On(On(On(On({textAnchor:k,verticalAnchor:D},M),{},{stroke:"none",fill:i},N),le),{},{index:te,payload:B,visibleTicksCount:C.length,tickFormatter:a,padding:o},c);return A.createElement(Ha,ju({className:"recharts-cartesian-axis-tick",key:"tick-".concat(B.value,"-").concat(B.coordinate,"-").concat(B.tickCoord)},jA(O,B,te)),n&&A.createElement("line",ju({},z,ne,{className:Gt("recharts-cartesian-axis-tick-line",Fu(n,"className"))})),r&&A.createElement(Ege,{option:r,tickProps:Q,value:"".concat(typeof a=="function"?a(B.value,te):B.value).concat(s||"")}))});return H.length>0?A.createElement("g",{className:"recharts-cartesian-axis-ticks"},H):null}var Age=A.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:s,ticks:o}=e,c=nT(e,dge),[f,h]=A.useState(""),[p,m]=A.useState(""),g=A.useRef([]);A.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var x;return hge({ticks:g.current,label:(x=e.labelRef)===null||x===void 0?void 0:x.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var y=A.useCallback(x=>{if(x){var _=x.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=Array.from(_);var w=_[0];if(w){var T=window.getComputedStyle(w),S=T.fontSize,O=T.letterSpacing;(S!==f||O!==p)&&(h(S),m(O))}}},[f,p]);return s||n!=null&&n<=0||i!=null&&i<=0?null:A.createElement(Ha,{className:Gt("recharts-cartesian-axis",a),ref:y},A.createElement(_ge,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:dl(e)}),A.createElement(Tge,{ticks:o,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:f,letterSpacing:p,getTicksConfig:e,events:c}),A.createElement(Cpe,{x:e.x,y:e.y,width:e.width,height:e.height},A.createElement(Ipe,{label:e.label}),e.children))}),Cge=A.memo(Age,(e,t)=>{var{viewBox:r}=e,n=nT(e,pge),{viewBox:i}=t,a=nT(t,mge);return B0(r,i)&&B0(n,a)}),S3=A.forwardRef((e,t)=>{var r=Di(e,w3);return A.createElement(Cge,ju({},r,{ref:t}))});S3.displayName="CartesianAxis";var Oge=["x1","y1","x2","y2","key"],kge=["offset"],Dge=["xAxisId","yAxisId"],Pge=["xAxisId","yAxisId"];function SN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SN(Object(r),!0).forEach(function(n){Mge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mge(e,t,r){return(t=Rge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rge(e){var t=Nge(e,"string");return typeof t=="symbol"?t:t+""}function Nge(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uu(){return uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uu.apply(null,arguments)}function nx(e,t){if(e==null)return{};var r,n,i=Fge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Fge(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Lge=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:s,ry:o}=e;return A.createElement("rect",{x:n,y:i,ry:o,width:a,height:s,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function tV(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var{x1:n,y1:i,x2:a,y2:s,key:o}=t,c=nx(t,Oge),f=dl(c),{offset:h}=f,p=nx(f,kge);r=A.createElement("line",uu({},p,{x1:n,y1:i,x2:a,y2:s,fill:"none",key:o}))}return r}function Ige(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,o=nx(e,Dge),c=i.map((f,h)=>{var p=xi(xi({},o),{},{x1:t,y1:f,x2:t+r,y2:f,key:"line-".concat(h),index:h});return tV(n,p)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function Bge(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,o=nx(e,Pge),c=i.map((f,h)=>{var p=xi(xi({},o),{},{x1:f,y1:t,x2:f,y2:t+r,key:"line-".concat(h),index:h});return tV(n,p)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function jge(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:s,horizontalPoints:o,horizontal:c=!0}=e;if(!c||!t||!t.length)return null;var f=o.map(p=>Math.round(p+i-i)).sort((p,m)=>p-m);i!==f[0]&&f.unshift(0);var h=f.map((p,m)=>{var g=!f[m+1],y=g?i+s-p:f[m+1]-p;if(y<=0)return null;var x=m%t.length;return A.createElement("rect",{key:"react-".concat(m),y:p,x:n,height:y,width:a,stroke:"none",fill:t[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function Uge(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:s,height:o,verticalPoints:c}=e;if(!t||!r||!r.length)return null;var f=c.map(p=>Math.round(p+i-i)).sort((p,m)=>p-m);i!==f[0]&&f.unshift(0);var h=f.map((p,m)=>{var g=!f[m+1],y=g?i+s-p:f[m+1]-p;if(y<=0)return null;var x=m%r.length;return A.createElement("rect",{key:"react-".concat(m),x:p,y:a,width:y,height:o,stroke:"none",fill:r[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var zge=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return rj(b3(xi(xi(xi({},w3),r),{},{ticks:nj(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},Vge=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return rj(b3(xi(xi(xi({},w3),r),{},{ticks:nj(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},Hge={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function Zg(e){var t=r4(),r=n4(),n=lj(),i=xi(xi({},Di(e,Hge)),{},{x:ut(e.x)?e.x:n.left,y:ut(e.y)?e.y:n.top,width:ut(e.width)?e.width:n.width,height:ut(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:s,x:o,y:c,width:f,height:h,syncWithTicks:p,horizontalValues:m,verticalValues:g}=i,y=ks(),x=rt(N=>E8(N,"xAxis",a,y)),_=rt(N=>E8(N,"yAxis",s,y));if(!ut(f)||f<=0||!ut(h)||h<=0||!ut(o)||o!==+o||!ut(c)||c!==+c)return null;var w=i.verticalCoordinatesGenerator||zge,T=i.horizontalCoordinatesGenerator||Vge,{horizontalPoints:S,verticalPoints:O}=i;if((!S||!S.length)&&typeof T=="function"){var C=m&&m.length,k=T({yAxis:_?xi(xi({},_),{},{ticks:C?m:_.ticks}):void 0,width:t,height:r,offset:n},C?!0:p);Qd(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(S=k)}if((!O||!O.length)&&typeof w=="function"){var D=g&&g.length,M=w({xAxis:x?xi(xi({},x),{},{ticks:D?g:x.ticks}):void 0,width:t,height:r,offset:n},D?!0:p);Qd(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof M,"]")),Array.isArray(M)&&(O=M)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(Lge,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),A.createElement(jge,uu({},i,{horizontalPoints:S})),A.createElement(Uge,uu({},i,{verticalPoints:O})),A.createElement(Ige,uu({},i,{offset:n,horizontalPoints:S,xAxis:x,yAxis:_})),A.createElement(Bge,uu({},i,{offset:n,verticalPoints:O,xAxis:x,yAxis:_})))}Zg.displayName="CartesianGrid";var rV=(e,t,r,n)=>JU(e,"xAxis",t,n),nV=(e,t,r,n)=>QU(e,"xAxis",t,n),iV=(e,t,r,n)=>JU(e,"yAxis",r,n),aV=(e,t,r,n)=>QU(e,"yAxis",r,n),$ge=Ee([cr,rV,iV,nV,aV],(e,t,r,n,i)=>bc(e,"xAxis")?ME(t,n,!1):ME(r,i,!1)),Wge=(e,t,r,n,i)=>i;function qge(e){return e.type==="line"}var Gge=Ee([OU,Wge],(e,t)=>e.filter(qge).find(r=>r.id===t)),Xge=Ee([cr,rV,iV,nV,aV,Gge,$ge,P4],(e,t,r,n,i,a,s,o)=>{var{chartData:c,dataStartIndex:f,dataEndIndex:h}=o;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||s==null)){var{dataKey:p,data:m}=a,g;if(m!=null&&m.length>0?g=m:g=c?.slice(f,h+1),g!=null)return gve({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:p,bandSize:s,displayedData:g})}}),Yge=["id"],Kge=["type","layout","connectNulls","needClip"],Zge=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function EN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ka(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(r),!0).forEach(function(n){Qge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qge(e,t,r){return(t=Jge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jge(e){var t=eve(e,"string");return typeof t=="symbol"?t:t+""}function eve(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E3(e,t){if(e==null)return{};var r,n,i=tve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function tve(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uu.apply(null,arguments)}var rve=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:$x(r,t),payload:e}]};function nve(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:s,hide:o,unit:c}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:$x(s,t),hide:o,type:e.tooltipType,color:e.stroke,unit:c}}}var sV=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function ive(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var ave=(e,t,r)=>{var n=r.reduce((p,m)=>p+m);if(!n)return sV(t,e);for(var i=Math.floor(e/n),a=e%n,s=t-e,o=[],c=0,f=0;c<r.length;f+=r[c],++c)if(f+r[c]>a){o=[...r.slice(0,c),a-f];break}var h=o.length%2===0?[0,s]:[s];return[...ive(r,i),...o,...h].map(p=>"".concat(p,"px")).join(", ")};function sve(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=Gt("recharts-line-dot",typeof e!="boolean"?e.className:"");r=A.createElement(jz,Uu({},t,{className:n}))}return r}function ove(e,t){return e==null?!1:t?!0:e.length===1}function lve(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:s}=n;if(!ove(r,i))return null;var{id:o}=n,c=E3(n,Yge),f=ZI(i),h=dl(c),p=Yr(i,!0),m=r.map((y,x)=>{var _=ka(ka(ka({key:"dot-".concat(x),r:3},h),p),{},{index:x,cx:y.x,cy:y.y,dataKey:a,value:y.value,payload:y.payload,points:r});return sve(i,_)}),g={clipPath:s?"url(#clipPath-".concat(f?"":"dots-").concat(t,")"):void 0};return A.createElement(Ha,Uu({className:"recharts-line-dots",key:"dots"},g),m)}function cve(e){var{showLabels:t,children:r,points:n}=e,i=A.useMemo(()=>n?.map(a=>{var s={x:a.x,y:a.y,width:0,height:0};return ka(ka({},s),{},{value:a.value,payload:a.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[n]);return A.createElement(Xpe,{value:t?i:null},r)}function TN(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:s,layout:o,connectNulls:c,needClip:f}=a,h=E3(a,Kge),p=ka(ka({},Yr(h,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:f?"url(#clipPath-".concat(t,")"):void 0,points:n,type:s,layout:o,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return A.createElement(A.Fragment,null,n?.length>1&&A.createElement(s4,Uu({},p,{pathRef:r})),A.createElement(lve,{points:n,clipPathId:t,props:a}))}function uve(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function fve(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:s,strokeDasharray:o,isAnimationActive:c,animationBegin:f,animationDuration:h,animationEasing:p,animateNewValues:m,width:g,height:y,onAnimationEnd:x,onAnimationStart:_}=r,w=i.current,T=Kx(r,"recharts-line-"),[S,O]=A.useState(!1),C=!S,k=A.useCallback(()=>{typeof x=="function"&&x(),O(!1)},[x]),D=A.useCallback(()=>{typeof _=="function"&&_(),O(!0)},[_]),M=uve(n.current),N=a.current;return A.createElement(cve,{points:s,showLabels:C},r.children,A.createElement(Yx,{animationId:T,begin:f,duration:h,isActive:c,easing:p,onAnimationEnd:k,onAnimationStart:D,key:T},z=>{var H=Si(N,M+N,z),B=Math.min(H,M),te;if(c)if(o){var ne="".concat(o).split(/[,\s]+/gim).map(ee=>parseFloat(ee));te=ave(B,M,ne)}else te=sV(M,B);else te=o==null?void 0:String(o);if(w){var le=w.length/s.length,Q=z===1?s:s.map((ee,ce)=>{var J=Math.floor(ce*le);if(w[J]){var R=w[J];return ka(ka({},ee),{},{x:Si(R.x,ee.x,z),y:Si(R.y,ee.y,z)})}return m?ka(ka({},ee),{},{x:Si(g*2,ee.x,z),y:Si(y/2,ee.y,z)}):ka(ka({},ee),{},{x:ee.x,y:ee.y})});return i.current=Q,A.createElement(TN,{props:r,points:Q,clipPathId:t,pathRef:n,strokeDasharray:te})}return z>0&&M>0&&(i.current=s,a.current=B),A.createElement(TN,{props:r,points:s,clipPathId:t,pathRef:n,strokeDasharray:te})}),A.createElement(Bz,{label:r.label}))}function hve(e){var{clipPathId:t,props:r}=e,n=A.useRef(null),i=A.useRef(0),a=A.useRef(null);return A.createElement(fve,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:a})}var dve=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:Fr(e.payload,t)});class pve extends A.Component{render(){var t,{hide:r,dot:n,points:i,className:a,xAxisId:s,yAxisId:o,top:c,left:f,width:h,height:p,id:m,needClip:g}=this.props;if(r)return null;var y=Gt("recharts-line",a),x=m,{r:_=3,strokeWidth:w=2}=(t=Yr(n,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},T=ZI(n),S=_*2+w;return A.createElement(A.Fragment,null,A.createElement(Ha,{className:y},g&&A.createElement("defs",null,A.createElement(q1e,{clipPathId:x,xAxisId:s,yAxisId:o}),!T&&A.createElement("clipPath",{id:"clipPath-dots-".concat(x)},A.createElement("rect",{x:f-S/2,y:c-S/2,width:h+S,height:p+S}))),A.createElement(W1e,{xAxisId:s,yAxisId:o,data:i,dataPointFormatter:dve,errorBarOffset:0},A.createElement(hve,{props:this.props,clipPathId:x}))),A.createElement(I1e,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var oV={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Yu.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function mve(e){var t=Di(e,oV),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:s,connectNulls:o,dot:c,hide:f,isAnimationActive:h,label:p,legendType:m,xAxisId:g,yAxisId:y,id:x}=t,_=E3(t,Zge),{needClip:w}=Kz(g,y),T=y3(),S=i4(),O=ks(),C=rt(z=>Xge(z,g,y,O,x));if(S!=="horizontal"&&S!=="vertical"||C==null||T==null)return null;var{height:k,width:D,x:M,y:N}=T;return A.createElement(pve,Uu({},_,{id:x,connectNulls:o,dot:c,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:s,isAnimationActive:h,hide:f,label:p,legendType:m,xAxisId:g,yAxisId:y,points:C,layout:S,height:k,width:D,left:M,top:N,needClip:w}))}function gve(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:s,bandSize:o,displayedData:c}=e;return c.map((f,h)=>{var p=Fr(f,s);if(t==="horizontal"){var m=o5({axis:r,ticks:i,bandSize:o,entry:f,index:h}),g=Dn(p)?null:n.scale(p);return{x:m,y:g,value:p,payload:f}}var y=Dn(p)?null:r.scale(p),x=o5({axis:n,ticks:a,bandSize:o,entry:f,index:h});return y==null||x==null?null:{x:y,y:x,value:p,payload:f}}).filter(Boolean)}function vve(e){var t=Di(e,oV),r=ks();return A.createElement(qz,{id:t.id,type:"line"},n=>A.createElement(A.Fragment,null,A.createElement(Fme,{legendPayload:rve(t)}),A.createElement($z,{fn:nve,args:t}),A.createElement(Xme,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),A.createElement(mve,Uu({},t,{id:n}))))}var Qg=A.memo(vve);Qg.displayName="Line";var xve=["dangerouslySetInnerHTML","ticks"],yve=["id"],_ve=["domain"],bve=["domain"];function iT(){return iT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iT.apply(null,arguments)}function ix(e,t){if(e==null)return{};var r,n,i=wve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function wve(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Sve(e){var t=jr();return A.useEffect(()=>(t(E1e(e)),()=>{t(T1e(e))}),[e,t]),null}var Eve=e=>{var{xAxisId:t,className:r}=e,n=rt(oj),i=ks(),a="xAxis",s=rt(_=>rh(_,a,t,i)),o=rt(_=>ZU(_,a,t,i)),c=rt(_=>$0e(_,t)),f=rt(_=>K0e(_,t)),h=rt(_=>TU(_,t));if(c==null||f==null||h==null)return null;var{dangerouslySetInnerHTML:p,ticks:m}=e,g=ix(e,xve),{id:y}=h,x=ix(h,yve);return A.createElement(S3,iT({},g,x,{scale:s,x:f.x,y:f.y,width:c.width,height:c.height,className:Gt("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:o}))},Tve={allowDataOverflow:wa.allowDataOverflow,allowDecimals:wa.allowDecimals,allowDuplicatedCategory:wa.allowDuplicatedCategory,height:wa.height,hide:!1,mirror:wa.mirror,orientation:wa.orientation,padding:wa.padding,reversed:wa.reversed,scale:wa.scale,tickCount:wa.tickCount,type:wa.type,xAxisId:0},Ave=e=>{var t,r,n,i,a,s=Di(e,Tve);return A.createElement(A.Fragment,null,A.createElement(Sve,{interval:(t=s.interval)!==null&&t!==void 0?t:"preserveEnd",id:s.xAxisId,scale:s.scale,type:s.type,padding:s.padding,allowDataOverflow:s.allowDataOverflow,domain:s.domain,dataKey:s.dataKey,allowDuplicatedCategory:s.allowDuplicatedCategory,allowDecimals:s.allowDecimals,tickCount:s.tickCount,includeHidden:(r=s.includeHidden)!==null&&r!==void 0?r:!1,reversed:s.reversed,ticks:s.ticks,height:s.height,orientation:s.orientation,mirror:s.mirror,hide:s.hide,unit:s.unit,name:s.name,angle:(n=s.angle)!==null&&n!==void 0?n:0,minTickGap:(i=s.minTickGap)!==null&&i!==void 0?i:5,tick:(a=s.tick)!==null&&a!==void 0?a:!0,tickFormatter:s.tickFormatter}),A.createElement(Eve,s))},Cve=(e,t)=>{var{domain:r}=e,n=ix(e,_ve),{domain:i}=t,a=ix(t,bve);return B0(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:B0({domain:r},{domain:i}):!1},Jg=A.memo(Ave,Cve);Jg.displayName="XAxis";var Ove=["dangerouslySetInnerHTML","ticks"],kve=["id"],Dve=["domain"],Pve=["domain"];function aT(){return aT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aT.apply(null,arguments)}function ax(e,t){if(e==null)return{};var r,n,i=Mve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Mve(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Rve(e){var t=jr();return A.useEffect(()=>(t(A1e(e)),()=>{t(C1e(e))}),[e,t]),null}var Nve=e=>{var{yAxisId:t,className:r,width:n,label:i}=e,a=A.useRef(null),s=A.useRef(null),o=rt(oj),c=ks(),f=jr(),h="yAxis",p=rt(C=>rh(C,h,t,c)),m=rt(C=>J0e(C,t)),g=rt(C=>Q0e(C,t)),y=rt(C=>ZU(C,h,t,c)),x=rt(C=>AU(C,t));if(A.useLayoutEffect(()=>{if(!(n!=="auto"||!m||d3(i)||A.isValidElement(i)||x==null)){var C=a.current;if(C){var k=C.getCalculatedWidth();Math.round(m.width)!==Math.round(k)&&f(O1e({id:t,width:k}))}}},[y,m,f,i,t,n,x]),m==null||g==null||x==null)return null;var{dangerouslySetInnerHTML:_,ticks:w}=e,T=ax(e,Ove),{id:S}=x,O=ax(x,kve);return A.createElement(S3,aT({},T,O,{ref:a,labelRef:s,scale:p,x:g.x,y:g.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:m.width,height:m.height,className:Gt("recharts-".concat(h," ").concat(h),r),viewBox:o,ticks:y}))},Fve={allowDataOverflow:Sa.allowDataOverflow,allowDecimals:Sa.allowDecimals,allowDuplicatedCategory:Sa.allowDuplicatedCategory,hide:!1,mirror:Sa.mirror,orientation:Sa.orientation,padding:Sa.padding,reversed:Sa.reversed,scale:Sa.scale,tickCount:Sa.tickCount,type:Sa.type,width:Sa.width,yAxisId:0},Lve=e=>{var t,r,n,i,a,s=Di(e,Fve);return A.createElement(A.Fragment,null,A.createElement(Rve,{interval:(t=s.interval)!==null&&t!==void 0?t:"preserveEnd",id:s.yAxisId,scale:s.scale,type:s.type,domain:s.domain,allowDataOverflow:s.allowDataOverflow,dataKey:s.dataKey,allowDuplicatedCategory:s.allowDuplicatedCategory,allowDecimals:s.allowDecimals,tickCount:s.tickCount,padding:s.padding,includeHidden:(r=s.includeHidden)!==null&&r!==void 0?r:!1,reversed:s.reversed,ticks:s.ticks,width:s.width,orientation:s.orientation,mirror:s.mirror,hide:s.hide,unit:s.unit,name:s.name,angle:(n=s.angle)!==null&&n!==void 0?n:0,minTickGap:(i=s.minTickGap)!==null&&i!==void 0?i:5,tick:(a=s.tick)!==null&&a!==void 0?a:!0,tickFormatter:s.tickFormatter}),A.createElement(Nve,s))},Ive=(e,t)=>{var{domain:r}=e,n=ax(e,Dve),{domain:i}=t,a=ax(t,Pve);return B0(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:B0({domain:r},{domain:i}):!1},ev=A.memo(Lve,Ive);ev.displayName="YAxis";var qw={exports:{}},Gw={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var AN;function Bve(){if(AN)return Gw;AN=1;var e=V0();function t(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,o=e.useDebugValue;return Gw.useSyncExternalStoreWithSelector=function(c,f,h,p,m){var g=i(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=s(function(){function _(C){if(!w){if(w=!0,T=C,C=p(C),m!==void 0&&y.hasValue){var k=y.value;if(m(k,C))return S=k}return S=C}if(k=S,r(T,C))return k;var D=p(C);return m!==void 0&&m(k,D)?(T=C,k):(T=C,S=D)}var w=!1,T,S,O=h===void 0?null:h;return[function(){return _(f())},O===null?void 0:function(){return _(O())}]},[f,h,p,m]);var x=n(c,g[0],g[1]);return a(function(){y.hasValue=!0,y.value=x},[x]),o(x),x},Gw}var CN;function jve(){return CN||(CN=1,qw.exports=Bve()),qw.exports}jve();function Uve(e){e()}function zve(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Uve(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var ON={notify(){},get:()=>[]};function Vve(e,t){let r,n=ON,i=0,a=!1;function s(x){h();const _=n.subscribe(x);let w=!1;return()=>{w||(w=!0,_(),p())}}function o(){n.notify()}function c(){y.onStateChange&&y.onStateChange()}function f(){return a}function h(){i++,r||(r=e.subscribe(c),n=zve())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=ON)}function m(){a||(a=!0,h())}function g(){a&&(a=!1,p())}const y={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:c,isSubscribed:f,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>n};return y}var Hve=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$ve=Hve(),Wve=()=>typeof navigator<"u"&&navigator.product==="ReactNative",qve=Wve(),Gve=()=>$ve||qve?A.useLayoutEffect:A.useEffect,Xve=Gve(),Yve=Symbol.for("react-redux-context"),Kve=typeof globalThis<"u"?globalThis:{};function Zve(){if(!A.createContext)return{};const e=Kve[Yve]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),e.set(A.createContext,t)),t}var Qve=Zve();function Jve(e){const{children:t,context:r,serverState:n,store:i}=e,a=A.useMemo(()=>{const c=Vve(i);return{store:i,subscription:c,getServerState:n?()=>n:void 0}},[i,n]),s=A.useMemo(()=>i.getState(),[i]);Xve(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const o=r||Qve;return A.createElement(o.Provider,{value:a},t)}var exe=Jve,txe=(e,t)=>t,T3=Ee([txe,cr,bU,Rn,pz,yl,ade,Gn],ude),A3=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},lV=As("mouseClick"),cV=fm();cV.startListening({actionCreator:lV,effect:(e,t)=>{var r=e.payload,n=T3(t.getState(),A3(r));n?.activeIndex!=null&&t.dispatch(hhe({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var sT=As("mouseMove"),uV=fm();uV.startListening({actionCreator:sT,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=i3(n,n.tooltip.settings.shared),a=T3(n,A3(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(oz({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(sz()))}});var kN={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},fV=qa({name:"rootProps",initialState:kN,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:kN.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),rxe=fV.reducer,{updateOptions:nxe}=fV.actions,hV=qa({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:ixe}=hV.actions,axe=hV.reducer,dV=As("keyDown"),pV=As("focus"),C3=fm();C3.startListening({actionCreator:dV,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var s=Number(a3(i,ih(r))),o=yl(r);if(a==="Enter"){var c=Qv(r,"axis","hover",String(i.index));t.dispatch(ZE({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:c}));return}var f=nhe(r),h=f==="left-to-right"?1:-1,p=a==="ArrowRight"?1:-1,m=s+p*h;if(!(o==null||m>=o.length||m<0)){var g=Qv(r,"axis","hover",String(m));t.dispatch(ZE({active:!0,activeIndex:m.toString(),activeDataKey:void 0,activeCoordinate:g}))}}}}});C3.startListening({actionCreator:pV,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",s=Qv(r,"axis","hover",String(a));t.dispatch(ZE({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:s}))}}}});var os=As("externalEvent"),mV=fm();mV.startListening({actionCreator:os,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:Yhe(r),activeDataKey:Ghe(r),activeIndex:I0(r),activeLabel:vz(r),activeTooltipIndex:I0(r),isTooltipActive:Khe(r)};e.payload.handler(n,e.payload.reactEvent)}}});var sxe=Ee([nh],e=>e.tooltipItemPayloads),oxe=Ee([sxe,wm,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(o=>o.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var s=t(a,r);return s}}}),gV=As("touchMove"),vV=fm();vV.startListening({actionCreator:gV,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=i3(n,n.tooltip.settings.shared);if(i==="axis"){var a=T3(n,A3({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(oz({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var s,o=r.touches[0],c=document.elementFromPoint(o.clientX,o.clientY);if(!c||!c.getAttribute)return;var f=c.getAttribute(aj),h=(s=c.getAttribute(sj))!==null&&s!==void 0?s:void 0,p=oxe(t.getState(),f,h);t.dispatch(az({activeDataKey:h,activeIndex:f,activeCoordinate:p}))}}});var lxe=PB({brush:G1e,cartesianAxis:k1e,chartData:Ade,errorBars:j1e,graphicalItems:Gme,layout:aoe,legend:qoe,options:bde,polarAxis:ame,polarOptions:axe,referenceElements:ege,rootProps:rxe,tooltip:dhe}),cxe=function(t){return Dse({reducer:lxe,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([cV.middleware,uV.middleware,C3.middleware,mV.middleware,vV.middleware]),devTools:Yu.devToolsEnabled})};function xV(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=ks(),a=A.useRef(null);if(i)return r;a.current==null&&(a.current=cxe(t));var s=YA;return A.createElement(exe,{context:s,store:a.current},r)}function yV(e){var{layout:t,width:r,height:n,margin:i}=e,a=jr(),s=ks();return A.useEffect(()=>{s||(a(roe(t)),a(noe({width:r,height:n})),a(toe(i)))},[a,s,t,r,n,i]),null}function _V(e){var t=jr();return A.useEffect(()=>{t(nxe(e))},[t,e]),null}var uxe=["children"];function fxe(e,t){if(e==null)return{};var r,n,i=hxe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function hxe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sx.apply(null,arguments)}var dxe={width:"100%",height:"100%"},pxe=A.forwardRef((e,t)=>{var r=r4(),n=n4(),i=hj();if(!M0(r)||!M0(n))return null;var{children:a,otherAttributes:s,title:o,desc:c}=e,f,h;return typeof s.tabIndex=="number"?f=s.tabIndex:f=i?0:void 0,typeof s.role=="string"?h=s.role:h=i?"application":void 0,A.createElement(UA,sx({},s,{title:o,desc:c,role:h,tabIndex:f,width:r,height:n,style:dxe,ref:t}),a)}),mxe=e=>{var{children:t}=e,r=rt(Xx);if(!r)return null;var{width:n,height:i,y:a,x:s}=r;return A.createElement(UA,{width:n,height:i,x:s,y:a},t)},DN=A.forwardRef((e,t)=>{var{children:r}=e,n=fxe(e,uxe),i=ks();return i?A.createElement(mxe,null,r):A.createElement(pxe,sx({ref:t},n),r)});function gxe(){var e=jr(),[t,r]=A.useState(null),n=rt(Poe);return A.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Gs(a)&&a!==n&&e(ioe(a))}},[t,e,n]),r}function PN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vxe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(r),!0).forEach(function(n){xxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xxe(e,t,r){return(t=yxe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yxe(e){var t=_xe(e,"string");return typeof t=="symbol"?t:t+""}function _xe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bxe=A.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:s,onDoubleClick:o,onMouseDown:c,onMouseEnter:f,onMouseLeave:h,onMouseMove:p,onMouseUp:m,onTouchEnd:g,onTouchMove:y,onTouchStart:x,style:_,width:w}=e,T=jr(),[S,O]=A.useState(null),[C,k]=A.useState(null);Fde();var D=gxe(),M=A.useCallback(F=>{D(F),typeof t=="function"&&t(F),O(F),k(F)},[D,t,O,k]),N=A.useCallback(F=>{T(lV(F)),T(os({handler:a,reactEvent:F}))},[T,a]),z=A.useCallback(F=>{T(sT(F)),T(os({handler:f,reactEvent:F}))},[T,f]),H=A.useCallback(F=>{T(sz()),T(os({handler:h,reactEvent:F}))},[T,h]),B=A.useCallback(F=>{T(sT(F)),T(os({handler:p,reactEvent:F}))},[T,p]),te=A.useCallback(()=>{T(pV())},[T]),ne=A.useCallback(F=>{T(dV(F.key))},[T]),le=A.useCallback(F=>{T(os({handler:s,reactEvent:F}))},[T,s]),Q=A.useCallback(F=>{T(os({handler:o,reactEvent:F}))},[T,o]),ee=A.useCallback(F=>{T(os({handler:c,reactEvent:F}))},[T,c]),ce=A.useCallback(F=>{T(os({handler:m,reactEvent:F}))},[T,m]),J=A.useCallback(F=>{T(os({handler:x,reactEvent:F}))},[T,x]),R=A.useCallback(F=>{T(gV(F)),T(os({handler:y,reactEvent:F}))},[T,y]),se=A.useCallback(F=>{T(os({handler:g,reactEvent:F}))},[T,g]);return A.createElement(Sz.Provider,{value:S},A.createElement(QI.Provider,{value:C},A.createElement("div",{className:Gt("recharts-wrapper",n),style:vxe({position:"relative",cursor:"default",width:w,height:i},_),onClick:N,onContextMenu:le,onDoubleClick:Q,onFocus:te,onKeyDown:ne,onMouseDown:ee,onMouseEnter:z,onMouseLeave:H,onMouseMove:B,onMouseUp:ce,onTouchEnd:se,onTouchMove:R,onTouchStart:J,ref:M},r)))}),wxe=["children","className","width","height","style","compact","title","desc"];function Sxe(e,t){if(e==null)return{};var r,n,i=Exe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Exe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bV=A.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:s,compact:o,title:c,desc:f}=e,h=Sxe(e,wxe),p=dl(h);return o?A.createElement(DN,{otherAttributes:p,title:c,desc:f},r):A.createElement(bxe,{className:n,style:s,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},A.createElement(DN,{otherAttributes:p,title:c,desc:f,ref:t},A.createElement(rge,null,r)))}),Txe=["width","height"];function oT(){return oT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oT.apply(null,arguments)}function Axe(e,t){if(e==null)return{};var r,n,i=Cxe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Cxe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Oxe={top:5,right:5,bottom:5,left:5},kxe={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Oxe,reverseStackOrder:!1,syncMethod:"index"},Dxe=A.forwardRef(function(t,r){var n,i=Di(t.categoricalChartProps,kxe),{width:a,height:s}=i,o=Axe(i,Txe);if(!M0(a)||!M0(s))return null;var{chartName:c,defaultTooltipEventType:f,validateTooltipEventTypes:h,tooltipPayloadSearcher:p,categoricalChartProps:m}=t,g={chartName:c,defaultTooltipEventType:f,validateTooltipEventTypes:h,tooltipPayloadSearcher:p,eventEmitter:void 0};return A.createElement(xV,{preloadedState:{options:g},reduxStoreName:(n=m.id)!==null&&n!==void 0?n:c},A.createElement(Zz,{chartData:m.data}),A.createElement(yV,{width:a,height:s,layout:i.layout,margin:i.margin}),A.createElement(_V,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(bV,oT({},o,{width:a,height:s,ref:r})))}),Pxe=["axis"],Xw=A.forwardRef((e,t)=>A.createElement(Dxe,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Pxe,tooltipPayloadSearcher:Ez,categoricalChartProps:e,ref:t}));function Mxe(e){var t=jr();return A.useEffect(()=>{t(ixe(e))},[t,e]),null}var Rxe=["width","height","layout"];function lT(){return lT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lT.apply(null,arguments)}function Nxe(e,t){if(e==null)return{};var r,n,i=Fxe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Fxe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Lxe={top:5,right:5,bottom:5,left:5},Ixe={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Lxe,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},Bxe=A.forwardRef(function(t,r){var n,i=Di(t.categoricalChartProps,Ixe),{width:a,height:s,layout:o}=i,c=Nxe(i,Rxe);if(!M0(a)||!M0(s))return null;var{chartName:f,defaultTooltipEventType:h,validateTooltipEventTypes:p,tooltipPayloadSearcher:m}=t,g={chartName:f,defaultTooltipEventType:h,validateTooltipEventTypes:p,tooltipPayloadSearcher:m,eventEmitter:void 0};return A.createElement(xV,{preloadedState:{options:g},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:f},A.createElement(Zz,{chartData:i.data}),A.createElement(yV,{width:a,height:s,layout:o,margin:i.margin}),A.createElement(_V,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(Mxe,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),A.createElement(bV,lT({width:a,height:s},c,{ref:r})))}),jxe=["item"],Uxe={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},MN=A.forwardRef((e,t)=>{var r=Di(e,Uxe);return A.createElement(Bxe,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:jxe,tooltipPayloadSearcher:Ez,categoricalChartProps:r,ref:t})});const da=Xr.create({baseURL:"https://acoplasticos.com.co:3001/"});function zxe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{fetchReportsByCompany:async({table_prefix:c,company_nit:f})=>{t(!0),n(null);try{const h=await da.post("/api/home/company",{table_prefix:c,company_nit:f});return a(h.data),h.data}catch(h){throw n(h.response?.data||{error:"Error de conexión"}),h}finally{t(!1)}},fetchReportsGrouped:async({table_prefix:c})=>{t(!0),n(null);try{const f=await da.post("/api/home/grouped",{table_prefix:c});return a(f.data),f.data}catch(f){throw n(f.response?.data||{error:"Error de conexión"}),f}finally{t(!1)}},data:i,loading:e,error:r}}function hy(e){const[t,r]=A.useState(null),[n,i]=A.useState(!1),[a,s]=A.useState(null);return A.useEffect(()=>{if(!e)return;(async()=>{i(!0),s(null);try{const c=await da.post("/api/config/get-configurations",{table_prefix:e});r(c.data.data)}catch(c){s(c.response?.data||{error:"Error de conexión"})}finally{i(!1)}})()},[e]),{data:t,loading:n,error:a}}const wV="/assets/Amazon-Colombia-CCcOUJJC.webp",SV="/assets/Andean-Colombia-Blz6dOJB.webp",EV="/assets/Caribbean-Colombia-2qKpdUWu.webp",TV="/assets/Orinoquia-Colombia-6naTJcuk.webp",AV="/assets/Pacific-Colombia-ZQe3ZPMW.webp",yd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3c!--!%20Font%20Awesome%20Free%206.2.1%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20(Icons:%20CC%20BY%204.0,%20Fonts:%20SIL%20OFL%201.1,%20Code:%20MIT%20License)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M256%20512c141.4%200%20256-114.6%20256-256S397.4%200%20256%200S0%20114.6%200%20256S114.6%20512%20256%20512zM175%20175c9.4-9.4%2024.6-9.4%2033.9%200l47%2047%2047-47c9.4-9.4%2024.6-9.4%2033.9%200s9.4%2024.6%200%2033.9l-47%2047%2047%2047c9.4%209.4%209.4%2024.6%200%2033.9s-24.6%209.4-33.9%200l-47-47-47%2047c-9.4%209.4-24.6%209.4-33.9%200s-9.4-24.6%200-33.9l47-47-47-47c-9.4-9.4-9.4-24.6%200-33.9z'/%3e%3c/svg%3e",Vxe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%206L18%2018M18%206L6%2018'%20stroke='%23000000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function Hxe(){const e=F=>F!==""&&F!==null&&F!==void 0,[t,r]=A.useState([]),[n,i]=A.useState(null),[a,s]=A.useState(null),[o,c]=A.useState({from:"",to:""}),[f,h]=A.useState(""),[p,m]=A.useState(""),[g,y]=A.useState(""),x=A.useRef(null);A.useRef(null);const _=A.useRef(null),w=A.useRef(null),T=A.useRef(null),S=()=>{i(""),c({from:"",to:""}),h(""),m(""),y("")},O=()=>i(""),C=()=>{h(""),m("")},k=()=>m(""),D=()=>y(""),M=A.useMemo(()=>t.filter(F=>{if(n&&F.year!==n)return!1;if(o.from&&o.to){const V=F.month;if(V<Number(o.from)||V>Number(o.to))return!1}return!(f&&F.category_id!==f||p&&F.subcategory_id!==p||g&&F.region!==g)}),[t,n,o,f,p,g]),{fetchReportsByCompany:N}=zxe(),z=JSON.parse(localStorage.getItem("user")),{table_prefix:H,company_nit:B}=z||{},{data:te}=hy(H),ne=A.useMemo(()=>te?.categories||[],[te]),le=[{id:1,nombre:"Caribe",icon:EV},{id:2,nombre:"Pacífico",icon:AV},{id:3,nombre:"Andina",icon:SV},{id:4,nombre:"Orinoquía",icon:TV},{id:5,nombre:"Amazonía",icon:wV}];A.useEffect(()=>{(async()=>{try{const V=await N({table_prefix:H,company_nit:B});r(V.data||[])}catch(V){console.error("Error cargando reportes:",V)}})()},[H,B]);const Q=A.useMemo(()=>Array.from(new Set(M.map(V=>V.year))).sort((V,q)=>q-V),[M]),ee=(F,V)=>{const q=M.filter(ae=>ae.category_id===F&&(!n||ae.year===n)),X=q.reduce((ae,Se)=>ae+Number(Se[V]),0);return le.map(ae=>{const Se=q.filter(ue=>ue.region===ae.id).reduce((ue,xe)=>ue+Number(xe[V]),0),Te=X>0?Se/X*100:0;return{name:ae.nombre,value:Te}})},ce=["#0088FE","#00C49F","#FFBB28","#FF8042","#A28EFF"],J=F=>{if(!F||!M.length)return[];const V=F.subcategorias?.map(Se=>Se.id)||[],q=M.filter(Se=>Se.category_id===F.id||V.includes(Se.subcategory_id)),X=["01","02","03","04","05","06","07","08","09","10","11","12"],ae=[];for(let Se=2019;Se<=2025;Se++)X.forEach(Te=>{const ue=q.filter(xe=>xe.year===Se&&xe.month===Number(Te));ae.push({mes:`${Te}/${Se}`,produccion:ue.reduce((xe,Ne)=>xe+Number(Ne.produccion||0),0),ventasGalones:ue.reduce((xe,Ne)=>xe+Number(Ne.ventas_volumen||0),0),ventasPesos:ue.reduce((xe,Ne)=>xe+Number(Ne.ventas_pesos||0),0),highlight:n===Se})});return ae},R=A.useMemo(()=>te?.subcategories||[],[te]),se=A.useMemo(()=>ne.map(F=>({...F,subcategories:R.filter(V=>V.category_id===F.id)})),[ne,R]);return P.jsxs("div",{className:"home-main-container",children:[P.jsx("div",{className:"home-main-header",children:P.jsx("div",{children:"Reporte Estudios de Mercado"})}),P.jsxs("div",{className:"filtros-container",children:[P.jsxs("div",{onClick:()=>x.current?.focus(),children:[P.jsxs("label",{style:{color:e(n)?"var(--color-primary)":"inherit"},children:[P.jsx("img",{src:yd,alt:"",style:{opacity:e(n)?.6:0,transition:"opacity 0.25s ease"},onClick:F=>{F.stopPropagation(),O()}}),"Año |"]}),P.jsxs("select",{ref:x,value:n||"",onChange:F=>i(Number(F.target.value)),children:[P.jsx("option",{value:"",children:"Todos"}),Q.map(F=>P.jsx("option",{value:F,children:F},F))]})]}),P.jsxs("div",{children:[P.jsxs("label",{style:{color:o.from&&o.to?"var(--color-primary)":"inherit"},children:[P.jsx("img",{src:yd,alt:"",style:{opacity:o.from&&o.to?.6:0,transition:"opacity 0.25s ease"},onClick:F=>{F.stopPropagation(),c({from:"",to:""})}}),"Mes |"]}),P.jsxs("div",{className:"month-range",children:[P.jsxs("select",{value:o.from,onChange:F=>c(V=>({...V,from:F.target.value})),children:[P.jsx("option",{value:"",children:"Desde"}),[...Array(12)].map((F,V)=>P.jsx("option",{value:V+1,children:new Date(0,V).toLocaleString("es-CO",{month:"long"})},V+1))]}),P.jsx("span",{children:"-"}),P.jsxs("select",{value:o.to,onChange:F=>c(V=>({...V,to:F.target.value})),children:[P.jsx("option",{value:"",children:"Hasta"}),[...Array(12)].map((F,V)=>P.jsx("option",{value:V+1,children:new Date(0,V).toLocaleString("es-CO",{month:"long"})},V+1))]})]})]}),P.jsxs("div",{onClick:()=>_.current?.focus(),children:[P.jsxs("label",{style:{color:e(f)?"var(--color-primary)":"inherit"},children:[P.jsx("img",{src:yd,alt:"",style:{opacity:e(f)?.6:0,transition:"opacity 0.25s ease"},onClick:F=>{F.stopPropagation(),C()}}),"Categoría |"]}),P.jsxs("select",{ref:_,value:f,onChange:F=>h(Number(F.target.value)),children:[P.jsx("option",{value:"",children:"Todas"}),ne.map(F=>P.jsx("option",{value:F.id,children:F.name},F.id))]})]}),P.jsxs("div",{onClick:()=>w.current?.focus(),children:[P.jsxs("label",{style:{color:e(p)?"var(--color-primary)":"inherit"},children:[P.jsx("img",{src:yd,alt:"",style:{opacity:e(p)?.6:0,transition:"opacity 0.25s ease"},onClick:F=>{F.stopPropagation(),k()}}),"Subcategoría |"]}),P.jsxs("select",{ref:w,value:p,onChange:F=>m(Number(F.target.value)),disabled:!f,children:[P.jsx("option",{value:"",children:"Todas"}),R.filter(F=>F.category_id===f).map(F=>P.jsx("option",{value:F.id,children:F.name},F.id))]})]}),P.jsxs("div",{onClick:()=>T.current?.focus(),children:[P.jsxs("label",{style:{color:e(g)?"var(--color-primary)":"inherit"},children:[P.jsx("img",{src:yd,alt:"",style:{opacity:e(g)?.6:0,transition:"opacity 0.25s ease"},onClick:F=>{F.stopPropagation(),D()}}),"Región |"]}),P.jsxs("select",{ref:T,value:g,onChange:F=>y(Number(F.target.value)),children:[P.jsx("option",{value:"",children:"Todas"}),le.map(F=>P.jsx("option",{value:F.id,children:F.nombre},F.id))]})]}),P.jsx("div",{onClick:S,style:{cursor:"pointer"},children:P.jsxs("label",{style:{cursor:"pointer"},children:[P.jsx("img",{src:Vxe,alt:""}),"Limpiar Filtros"]})})]}),P.jsxs("div",{className:"charts-container",children:[ne.map(F=>{const V=J(F);return P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"category-charts",children:[P.jsx("h3",{children:F.name}),P.jsxs("div",{className:"flex-pies",children:[P.jsxs("div",{className:"pie-chart-container",style:{marginLeft:"40px"},children:[P.jsx("h4",{children:"Producción (Gal)"}),P.jsx(xd,{width:"100%",height:300,children:P.jsxs(MN,{children:[P.jsx(rT,{data:ee(F.id,"produccion"),dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:80,label:({name:q,value:X})=>`${q}: ${X.toFixed(1)}%`,children:le.map((q,X)=>P.jsx(Lp,{fill:ce[X%ce.length]},X))}),P.jsx(vd,{formatter:q=>`${q.toFixed(1)}%`}),P.jsx(Op,{})]})})]}),P.jsxs("div",{className:"pie-chart-container",children:[P.jsx("h4",{children:"Ventas (COP)"}),P.jsx(xd,{width:"100%",height:300,children:P.jsxs(MN,{children:[P.jsx(rT,{data:ee(F.id,"ventas_pesos"),dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:80,label:({name:q,value:X})=>`${q}: ${X.toFixed(1)}%`,children:le.map((q,X)=>P.jsx(Lp,{fill:ce[X%ce.length]},X))}),P.jsx(vd,{formatter:q=>`${q.toFixed(1)}%`}),P.jsx(Op,{})]})})]})]})]},F.id),P.jsxs("div",{className:"category-charts",children:[P.jsx("h3",{children:F.name}),P.jsxs("div",{className:"trend-section",children:[P.jsxs("h3",{children:["Tendencias - ",F.name]}),P.jsxs("div",{className:"chart-container",children:[P.jsx("h4",{children:"Producción mensual (Gal)"}),P.jsx(xd,{width:"100%",height:300,children:P.jsxs(Xw,{data:V,margin:{top:20,right:30,left:40,bottom:20},children:[P.jsx(Zg,{strokeDasharray:"3 3"}),P.jsx(Jg,{dataKey:"mes"}),P.jsx(ev,{}),P.jsx(vd,{formatter:q=>q.toLocaleString("es-CO")}),P.jsx(Qg,{type:"monotone",dataKey:"produccion",stroke:"#0088FE",strokeWidth:2,dot:q=>{const{cx:X,cy:ae,payload:Se}=q,Te=Se.mes.endsWith(`/${n}`)?"#FF0000":"#0088FE";return P.jsx("circle",{cx:X,cy:ae,r:4,fill:Te,stroke:"#fff",strokeWidth:1})}})]})})]}),P.jsxs("div",{className:"chart-container",children:[P.jsx("h4",{children:"Ventas mensuales (Gal)"}),P.jsx(xd,{width:"100%",height:300,children:P.jsxs(Xw,{data:V,margin:{top:20,right:30,left:40,bottom:20},children:[P.jsx(Zg,{strokeDasharray:"3 3"}),P.jsx(Jg,{dataKey:"mes"}),P.jsx(ev,{}),P.jsx(vd,{formatter:q=>q.toLocaleString("es-CO")}),P.jsx(Qg,{type:"monotone",dataKey:"ventasGalones",stroke:"#00C49F",strokeWidth:2})]})})]}),P.jsxs("div",{className:"chart-container",children:[P.jsx("h4",{children:"Ventas mensuales (COP)"}),P.jsx(xd,{width:"100%",height:300,children:P.jsxs(Xw,{data:V,margin:{top:20,right:30,left:50,bottom:20},children:[P.jsx(Zg,{strokeDasharray:"3 3"}),P.jsx(Jg,{dataKey:"mes"}),P.jsx(ev,{}),P.jsx(vd,{formatter:q=>`$${q.toLocaleString("es-CO")}`}),P.jsx(Qg,{type:"monotone",dataKey:"ventasPesos",stroke:"#FF8042",strokeWidth:2})]})})]})]})]},F.id)]})}),P.jsxs("div",{className:"tabla-categorias-container",children:[P.jsx("h3",{children:"Resumen por categoría y subcategoría"}),P.jsxs("table",{className:"tabla-categorias",children:[P.jsxs("thead",{children:[P.jsxs("tr",{children:[P.jsx("th",{rowSpan:"3",children:"Mes/Año"}),se.map(F=>P.jsx("th",{colSpan:F.subcategories.length*3,children:F.name},`cat-${F.id}`))]}),P.jsx("tr",{children:se.map(F=>F.subcategories.map(V=>P.jsx("th",{colSpan:"3",children:V.name},`sub-${V.id}`)))}),P.jsx("tr",{children:se.map(F=>F.subcategories.map(V=>P.jsxs(cS.Fragment,{children:[P.jsx("th",{children:"Ventas (COP)"}),P.jsx("th",{children:"Producción (Gal)"}),P.jsx("th",{children:"Ventas (Gal)"})]},`sub-${V.id}-headers`)))})]}),P.jsx("tbody",{children:(()=>{const F=n?M.filter(q=>q.year===n):M;return Array.from(new Set(F.map(q=>`${q.year}-${q.month}`))).map(q=>{const[X,ae]=q.split("-"),Se=new Date(X,ae-1).toLocaleString("es-CO",{month:"long"});return P.jsxs("tr",{children:[P.jsx("td",{children:`${Se} - ${X}`}),se.map(Te=>Te.subcategories.map(ue=>{const xe=F.filter(Le=>Le.year===Number(X)&&Le.month===Number(ae)&&Le.subcategory_id===ue.id),Ne=xe.reduce((Le,He)=>Le+Number(He.ventas_pesos||0),0),j=xe.reduce((Le,He)=>Le+Number(He.produccion||0),0),ze=xe.reduce((Le,He)=>Le+Number(He.ventas_volumen||0),0);return P.jsxs(cS.Fragment,{children:[P.jsx("td",{children:Ne?Ne.toLocaleString("es-CO"):"-"}),P.jsx("td",{children:j?j.toLocaleString("es-CO"):"-"}),P.jsx("td",{children:ze?ze.toLocaleString("es-CO"):"-"})]},`sub-${ue.id}-ym-${X}-${ae}`)}))]},`row-${q}`)})})()})]})]})]})]})}function $xe(e){const[t,r]=A.useState([]),[n,i]=A.useState(!0),[a,s]=A.useState(null);return A.useEffect(()=>{if(!e)return;(async()=>{i(!0);try{const c=await da.post("/api/categories/get-categories",{table_prefix:e});r(c.data),s(null)}catch(c){console.error("Error obteniendo categorías:",c),s(c)}finally{i(!1)}})()},[e]),{categorias:t,loading:n,error:a}}function Wxe(e){const[t,r]=A.useState([]),[n,i]=A.useState(!0),[a,s]=A.useState(null);return A.useEffect(()=>{if(!e)return;(async()=>{i(!0);try{const c=await da.post("/api/categories/allsubcategories",{table_prefix:e});r(c.data),s(null)}catch(c){console.error("Error obteniendo subcategorías:",c),s(c)}finally{i(!1)}})()},[e]),{subCategories:t,loading:n,error:a}}function qxe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{sendReports:async({tablePrefix:o,companyId:c,reportType:f,reports:h})=>{if(!o||!c||!Array.isArray(h)||h.length===0){n("Debe enviar tablePrefix, companyId y un arreglo de reports válidos"),console.warn("Parámetros inválidos:",{tablePrefix:o,companyId:c,reports:h});return}if(!["region","country"].includes(f)){n("Debe especificar reportType como 'region' o 'country'"),console.warn("reportType inválido:",f);return}t(!0),n(null),a(null);const p={table_prefix:o,company_id:c,report_type:f,reports:h};try{const m=await da.post("/api/reports",p);a(m.data)}catch(m){console.error("Error enviando reports:",m),n(m.response?.data?.error||"Error al enviar los reportes")}finally{t(!1)}},loading:e,error:r,response:i}}function Gxe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{fetchReportHistory:async({table_prefix:o,company_nit:c})=>{t(!0),n(null);try{const f=await da.post("/api/history/get-history",{table_prefix:o,company_nit:c});return console.log("Respuesta recibida desde backend (histórico):",f.data),a(f.data),f.data}catch(f){throw console.error("Error en fetchReportHistory:",f.response?.data||f.message),n(f.response?.data||{error:"Error de conexión"}),f}finally{t(!1)}},data:i,loading:e,error:r}}function Xxe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{updateEditPermission:async({table_prefix:o,company_nit:c,year:f,month:h})=>{t(!0),n(null),a(null);try{console.log("Enviando petición a /api/history/update-edit-permission:",{table_prefix:o,company_nit:c,year:f,month:h});const p=await da.post("/api/history/update-edit-permission",{table_prefix:o,company_nit:c,year:f,month:h});return console.log("✅ Permiso actualizado correctamente:",p.data),a(p.data.message||"Permiso actualizado correctamente"),p.data}catch(p){throw console.error("❌ Error en updateEditPermission:",p.response?.data||p.message),n(p.response?.data||{error:"Error de conexión"}),p}finally{t(!1)}},loading:e,error:r,success:i}}const cT=({isOpen:e,children:t})=>e?P.jsx("div",{className:"modal",children:P.jsx("div",{className:"modal-content",children:t})}):null,Yxe={regiones:[{id_region:1,nombre_region:"Caribe",departamentos:{13:"Bolívar",20:"Cesar",23:"Córdoba",44:"La Guajira",47:"Magdalena",70:"Sucre",88:"San Andrés y Providencia","08":"Atlántico"}},{id_region:2,nombre_region:"Pacífico",departamentos:{19:"Cauca",27:"Chocó",52:"Nariño",76:"Valle del Cauca"}},{id_region:3,nombre_region:"Andina",departamentos:{15:"Boyacá",17:"Caldas",25:"Cundinamarca",41:"Huila",54:"Norte de Santander",63:"Quindío",66:"Risaralda",68:"Santander",73:"Tolima","05":"Antioquia"}},{id_region:4,nombre_region:"Orinoquía",departamentos:{50:"Meta",81:"Arauca",85:"Casanare",99:"Vichada"}},{id_region:5,nombre_region:"Amazonía",departamentos:{18:"Caquetá",86:"Putumayo",91:"Amazonas",94:"Guainía",95:"Guaviare",97:"Vaupés"}}]},Kxe={colombia:Yxe};function Zxe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{fetchSpecificReport:async({table_prefix:o,company_nit:c,year:f,month:h})=>{t(!0),n(null);try{console.log("Enviando petición a /api/reports/specific:",{table_prefix:o,company_nit:c,year:f,month:h});const p=await da.post("/api/reports/specific",{table_prefix:o,company_nit:c,year:f,month:h});return console.log("Respuesta recibida desde backend (specific report):",p.data),a(p.data),p.data}catch(p){throw console.error("Error en fetchSpecificReport:",p.response?.data||p.message),n(p.response?.data||{error:"Error de conexión"}),p}finally{t(!1)}},data:i,loading:e,error:r}}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var ox={};ox.version="0.18.5";var CV=1252,Qxe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],O3={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},k3=function(e){Qxe.indexOf(e)!=-1&&(CV=O3[0]=e)};function Jxe(){k3(1252)}var Hs=function(e){k3(e)};function D3(){Hs(1200),Jxe()}function RN(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function eye(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function OV(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 Pd=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?eye(e.slice(2)):t==254&&r==255?OV(e.slice(2)):t==65279?e.slice(1):e},xg=function(t){return String.fromCharCode(t)},NN=function(t){return String.fromCharCode(t)},Ip,nc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Bp(e){for(var t="",r=0,n=0,i=0,a=0,s=0,o=0,c=0,f=0;f<e.length;)r=e.charCodeAt(f++),a=r>>2,n=e.charCodeAt(f++),s=(r&3)<<4|n>>4,i=e.charCodeAt(f++),o=(n&15)<<2|i>>6,c=i&63,isNaN(n)?o=c=64:isNaN(i)&&(c=64),t+=nc.charAt(a)+nc.charAt(s)+nc.charAt(o)+nc.charAt(c);return t}function Wa(e){var t="",r=0,n=0,i=0,a=0,s=0,o=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var f=0;f<e.length;)a=nc.indexOf(e.charAt(f++)),s=nc.indexOf(e.charAt(f++)),r=a<<2|s>>4,t+=String.fromCharCode(r),o=nc.indexOf(e.charAt(f++)),n=(s&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(n)),c=nc.indexOf(e.charAt(f++)),i=(o&3)<<6|c,c!==64&&(t+=String.fromCharCode(i));return t}var kt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),_l=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 mc(e){return kt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function FN(e){return kt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Fa=function(t){return kt?_l(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function dy(e){if(typeof ArrayBuffer>"u")return Fa(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 Tc(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 tye(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}function P3(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return P3(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var $n=kt?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:_l(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(a){return Array.isArray(a)?a:[].slice.call(a)}))};function rye(e){for(var t=[],r=0,n=e.length+250,i=mc(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[r++]=s;else if(s<2048)i[r++]=192|s>>6&31,i[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++a)&1023;i[r++]=240|s>>8&7,i[r++]=128|s>>2&63,i[r++]=128|o>>6&15|(s&3)<<4,i[r++]=128|o&63}else i[r++]=224|s>>12&15,i[r++]=128|s>>6&63,i[r++]=128|s&63;r>n&&(t.push(i.slice(0,r)),r=0,i=mc(65535),n=65530)}return t.push(i.slice(0,r)),$n(t)}var Gi=/\u0000/g,Md=/[\u0001-\u0006]/g;function g0(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function $s(e,t){var r=""+e;return r.length>=t?r:Wr("0",t-r.length)+r}function M3(e,t){var r=""+e;return r.length>=t?r:Wr(" ",t-r.length)+r}function lx(e,t){var r=""+e;return r.length>=t?r:r+Wr(" ",t-r.length)}function nye(e,t){var r=""+Math.round(e);return r.length>=t?r:Wr("0",t-r.length)+r}function iye(e,t){var r=""+e;return r.length>=t?r:Wr("0",t-r.length)+r}var LN=Math.pow(2,32);function Wf(e,t){if(e>LN||e<-LN)return nye(e,t);var r=Math.round(e);return iye(r,t)}function cx(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 IN=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Yw=[["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 aye(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 ct={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"秒 "'},BN={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},sye={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 ux(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,s=1,o=0,c=1,f=0,h=0,p=Math.floor(i);f<t&&(p=Math.floor(i),o=p*s+a,h=p*f+c,!(i-p<5e-8));)i=1/(i-p),a=s,s=o,c=f,f=h;if(h>t&&(f>t?(h=c,o=a):(h=f,o=s)),!r)return[0,n*o,h];var m=Math.floor(n*o/h);return[m,n*o-m*h,h]}function fu(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],o={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(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++i==86400&&(o.T=i=0,++n,++o.D)),n===60)s=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),s=[c.getFullYear(),c.getMonth()+1,c.getDate()],a=c.getDay(),n<60&&(a=(a+6)%7),r&&(a=hye(c,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var kV=new Date(1899,11,31,0,0,0),oye=kV.getTime(),lye=new Date(1900,2,1,0,0,0);function DV(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=lye&&(r+=1440*60*1e3),(r-(oye+(e.getTimezoneOffset()-kV.getTimezoneOffset())*6e4))/(1440*60*1e3)}function R3(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function cye(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function uye(e){var t=e<0?12:11,r=R3(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function fye(e){var t=R3(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function jp(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=uye(e):t===10?r=e.toFixed(10).substr(0,12):r=fye(e),R3(cye(r.toUpperCase()))}function zu(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):jp(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Os(14,DV(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function hye(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function dye(e,t,r,n){var i="",a=0,s=0,o=r.y,c,f=0;switch(e){case 98:o=r.y+543;case 121:switch(t.length){case 1:case 2:c=o%100,f=2;break;default:c=o%1e4,f=4;break}break;case 109:switch(t.length){case 1:case 2:c=r.m,f=t.length;break;case 3:return Yw[r.m-1][1];case 5:return Yw[r.m-1][0];default:return Yw[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:c=r.d,f=t.length;break;case 3:return IN[r.q][0];default:return IN[r.q][1]}break;case 104:switch(t.length){case 1:case 2:c=1+(r.H+11)%12,f=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:c=r.H,f=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:c=r.M,f=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")?$s(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(r.S+r.u)),a>=60*s&&(a=0),t==="s"?a===0?"0":""+a/s:(i=$s(a,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":c=r.D*24+r.H;break;case"[m]":case"[mm]":c=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":c=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}f=t.length===3?1:2;break;case 101:c=o,f=1;break}var h=f>0?$s(c,f):"";return h}function ic(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 PV=/%/g;function pye(e,t,r){var n=t.replace(PV,""),i=t.length-n.length;return Qo(e,n,r*Math.pow(10,2*i))+Wr("%",i)}function mye(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Qo(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function MV(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"-"+MV(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a);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(o,c,f,h){return c+f+h.substr(0,(i+a)%i)+"."+h.substr(a)+"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 RV=/# (\?+)( ?)\/( ?)(\d+)/;function gye(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),s=i-a*n,o=n;return r+(a===0?"":""+a)+" "+(s===0?Wr(" ",e[1].length+1+e[4].length):M3(s,e[1].length)+e[2]+"/"+e[3]+$s(o,e[4].length))}function vye(e,t,r){return r+(t===0?"":""+t)+Wr(" ",e[1].length+2+e[4].length)}var NV=/^#*0*\.([0#]+)/,FV=/\).*[0#]/,LV=/\(###\) ###\\?-####/;function zi(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 jN(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function UN(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 xye(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function yye(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function ls(e,t,r){if(e.charCodeAt(0)===40&&!t.match(FV)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ls("n",n,r):"("+ls("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return mye(e,t,r);if(t.indexOf("%")!==-1)return pye(e,t,r);if(t.indexOf("E")!==-1)return MV(t,r);if(t.charCodeAt(0)===36)return"$"+ls(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,o,c=Math.abs(r),f=r<0?"-":"";if(t.match(/^00+$/))return f+Wf(c,t.length);if(t.match(/^[#?]+$/))return i=Wf(r,0),i==="0"&&(i=""),i.length>t.length?i:zi(t.substr(0,t.length-i.length))+i;if(a=t.match(RV))return gye(a,c,f);if(t.match(/^#+0+$/))return f+Wf(c,t.length-t.indexOf("0"));if(a=t.match(NV))return i=jN(r,a[1].length).replace(/^([^\.]+)$/,"$1."+zi(a[1])).replace(/\.$/,"."+zi(a[1])).replace(/\.(\d*)$/,function(y,x){return"."+x+Wr("0",zi(a[1]).length-x.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return f+jN(c,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return f+ic(Wf(c,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ls(e,t,-r):ic(""+(Math.floor(r)+xye(r,a[1].length)))+"."+$s(UN(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return ls(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=g0(ls(e,t.replace(/[\\-]/g,""),r)),s=0,g0(g0(t.replace(/\\/g,"")).replace(/[0#]/g,function(y){return s<i.length?i.charAt(s++):y==="0"?"0":""}));if(t.match(LV))return i=ls(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var h="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=ux(c,Math.pow(10,s)-1,!1),i=""+f,h=Qo("n",a[1],o[1]),h.charAt(h.length-1)==" "&&(h=h.substr(0,h.length-1)+"0"),i+=h+a[2]+"/"+a[3],h=lx(o[2],s),h.length<a[4].length&&(h=zi(a[4].substr(a[4].length-h.length))+h),i+=h,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=ux(c,Math.pow(10,s)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?M3(o[1],s)+a[2]+"/"+a[3]+lx(o[2],s):Wr(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=Wf(r,0),t.length<=i.length?i:zi(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=t.indexOf(".")-s,m=t.length-i.length-p;return zi(t.substr(0,p)+i+t.substr(t.length-m))}if(a=t.match(/^00,000\.([#0]*0)$/))return s=UN(r,a[1].length),r<0?"-"+ls(e,t,-r):ic(yye(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(y){return"00,"+(y.length<3?$s(0,3-y.length):"")+y})+"."+$s(s,a[1].length);switch(t){case"###,##0.00":return ls(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var g=ic(Wf(c,0));return g!=="0"?f+g:"";case"###,###.00":return ls(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return ls(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function _ye(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Qo(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function bye(e,t,r){var n=t.replace(PV,""),i=t.length-n.length;return Qo(e,n,r*Math.pow(10,2*i))+Wr("%",i)}function IV(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"-"+IV(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,c,f,h){return c+f+h.substr(0,(i+a)%i)+"."+h.substr(a)+"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 no(e,t,r){if(e.charCodeAt(0)===40&&!t.match(FV)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?no("n",n,r):"("+no("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return _ye(e,t,r);if(t.indexOf("%")!==-1)return bye(e,t,r);if(t.indexOf("E")!==-1)return IV(t,r);if(t.charCodeAt(0)===36)return"$"+no(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,o,c=Math.abs(r),f=r<0?"-":"";if(t.match(/^00+$/))return f+$s(c,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:zi(t.substr(0,t.length-i.length))+i;if(a=t.match(RV))return vye(a,c,f);if(t.match(/^#+0+$/))return f+$s(c,t.length-t.indexOf("0"));if(a=t.match(NV))return i=(""+r).replace(/^([^\.]+)$/,"$1."+zi(a[1])).replace(/\.$/,"."+zi(a[1])),i=i.replace(/\.(\d*)$/,function(y,x){return"."+x+Wr("0",zi(a[1]).length-x.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return f+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return f+ic(""+c);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+no(e,t,-r):ic(""+r)+"."+Wr("0",a[1].length);if(a=t.match(/^#,#*,#0/))return no(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=g0(no(e,t.replace(/[\\-]/g,""),r)),s=0,g0(g0(t.replace(/\\/g,"")).replace(/[0#]/g,function(y){return s<i.length?i.charAt(s++):y==="0"?"0":""}));if(t.match(LV))return i=no(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var h="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=ux(c,Math.pow(10,s)-1,!1),i=""+f,h=Qo("n",a[1],o[1]),h.charAt(h.length-1)==" "&&(h=h.substr(0,h.length-1)+"0"),i+=h+a[2]+"/"+a[3],h=lx(o[2],s),h.length<a[4].length&&(h=zi(a[4].substr(a[4].length-h.length))+h),i+=h,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=ux(c,Math.pow(10,s)-1,!0),f+(o[0]||(o[1]?"":"0"))+" "+(o[1]?M3(o[1],s)+a[2]+"/"+a[3]+lx(o[2],s):Wr(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:zi(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=t.indexOf(".")-s,m=t.length-i.length-p;return zi(t.substr(0,p)+i+t.substr(t.length-m))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+no(e,t,-r):ic(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(y){return"00,"+(y.length<3?$s(0,3-y.length):"")+y})+"."+$s(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var g=ic(""+c);return g!=="0"?f+g:"";default:if(t.match(/\.[0#?]*$/))return no(e,t.slice(0,t.lastIndexOf(".")),r)+zi(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Qo(e,t,r){return(r|0)===r?no(e,t,r):ls(e,t,r)}function wye(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 BV=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ah(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":cx(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(BV))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 Sye(e,t,r,n){for(var i=[],a="",s=0,o="",c="t",f,h,p,m="H";s<e.length;)switch(o=e.charAt(s)){case"G":if(!cx(e,s))throw new Error("unrecognized character "+o+" in "+e);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(p=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(p);i[i.length]={t:"t",v:a},++s;break;case"\\":var g=e.charAt(++s),y=g==="("||g===")"?g:"t";i[i.length]={t:y,v:g},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(f==null&&(f=fu(t,r,e.charAt(s+1)==="2"),f==null))return"";i[i.length]={t:"X",v:e.substr(s,2)},c=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||f==null&&(f=fu(t,r),f==null))return"";for(a=o;++s<e.length&&e.charAt(s).toLowerCase()===o;)a+=o;o==="m"&&c.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=m),i[i.length]={t:o,v:a},c=o;break;case"A":case"a":case"上":var x={t:o,v:o};if(f==null&&(f=fu(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(f!=null&&(x.v=f.H>=12?"P":"A"),x.t="T",m="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(f!=null&&(x.v=f.H>=12?"PM":"AM"),x.t="T",s+=5,m="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(f!=null&&(x.v=f.H>=12?"下午":"上午"),x.t="T",s+=5,m="h"):(x.t="t",++s),f==null&&x.t==="T")return"";i[i.length]=x,c=o;break;case"[":for(a=o;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(BV)){if(f==null&&(f=fu(t,r),f==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},c=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",ah(e)||(i[i.length]={t:"t",v:a}));break;case".":if(f!=null){for(a=o;++s<e.length&&(o=e.charAt(s))==="0";)a+=o;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=o;++s<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(s))>-1;)a+=o;i[i.length]={t:"n",v:a};break;case"?":for(a=o;e.charAt(++s)===o;)a+=o;i[i.length]={t:o,v:a},c=o;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=o;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:o,v:o},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);i[i.length]={t:"t",v:o},++s;break}var _=0,w=0,T;for(s=i.length-1,c="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=m,c="h",_<1&&(_=1);break;case"s":(T=i[s].v.match(/\.0+$/))&&(w=Math.max(w,T[0].length-1)),_<3&&(_=3);case"d":case"y":case"M":case"e":c=i[s].t;break;case"m":c==="s"&&(i[s].t="M",_<2&&(_=2));break;case"X":break;case"Z":_<1&&i[s].v.match(/[Hh]/)&&(_=1),_<2&&i[s].v.match(/[Mm]/)&&(_=2),_<3&&i[s].v.match(/[Ss]/)&&(_=3)}switch(_){case 0:break;case 1:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M),f.M>=60&&(f.M=0,++f.H);break;case 2:f.u>=.5&&(f.u=0,++f.S),f.S>=60&&(f.S=0,++f.M);break}var S="",O;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=dye(i[s].t.charCodeAt(0),i[s].v,f,w),i[s].t="t";break;case"n":case"?":for(O=s+1;i[O]!=null&&((o=i[O].t)==="?"||o==="D"||(o===" "||o==="t")&&i[O+1]!=null&&(i[O+1].t==="?"||i[O+1].t==="t"&&i[O+1].v==="/")||i[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(i[O].v==="/"||i[O].v===" "&&i[O+1]!=null&&i[O+1].t=="?"));)i[s].v+=i[O].v,i[O]={v:"",t:";"},++O;S+=i[s].v,s=O-1;break;case"G":i[s].t="t",i[s].v=zu(t,r);break}var C="",k,D;if(S.length>0){S.charCodeAt(0)==40?(k=t<0&&S.charCodeAt(0)===45?-t:t,D=Qo("n",S,k)):(k=t<0&&n>1?-t:t,D=Qo("n",S,k),k<0&&i[0]&&i[0].t=="t"&&(D=D.substr(1),i[0].v="-"+i[0].v)),O=D.length-1;var M=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){M=s;break}var N=i.length;if(M===i.length&&D.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(O>=i[s].v.length-1?(O-=i[s].v.length,i[s].v=D.substr(O+1,i[s].v.length)):O<0?i[s].v="":(i[s].v=D.substr(0,O+1),O=-1),i[s].t="t",N=s);O>=0&&N<i.length&&(i[N].v=D.substr(0,O+1)+i[N].v)}else if(M!==i.length&&D.indexOf("E")===-1){for(O=D.indexOf(".")-1,s=M;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(h=i[s].v.indexOf(".")>-1&&s===M?i[s].v.indexOf(".")-1:i[s].v.length-1,C=i[s].v.substr(h+1);h>=0;--h)O>=0&&(i[s].v.charAt(h)==="0"||i[s].v.charAt(h)==="#")&&(C=D.charAt(O--)+C);i[s].v=C,i[s].t="t",N=s}for(O>=0&&N<i.length&&(i[N].v=D.substr(0,O+1)+i[N].v),O=D.indexOf(".")+1,s=M;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==M)){for(h=i[s].v.indexOf(".")>-1&&s===M?i[s].v.indexOf(".")+1:0,C=i[s].v.substr(0,h);h<i[s].v.length;++h)O<D.length&&(C+=D.charAt(O++));i[s].v=C,i[s].t="t",N=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(k=n>1&&t<0&&s>0&&i[s-1].v==="-"?-t:t,i[s].v=Qo(i[s].t,i[s].v,k),i[s].t="t");var z="";for(s=0;s!==i.length;++s)i[s]!=null&&(z+=i[s].v);return z}var zN=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function VN(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 Eye(e,t){var r=wye(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 a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(zN),o=r[1].match(zN);return VN(t,s)?[n,r[0]]:VN(t,o)?[n,r[1]]:[n,r[s!=null&&o!=null?2:1]]}return[n,a]}function Os(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:ct)[e],n==null&&(n=r.table&&r.table[BN[e]]||ct[BN[e]]),n==null&&(n=sye[e]||"General");break}if(cx(n,0))return zu(t,r);t instanceof Date&&(t=DV(t,r.date1904));var i=Eye(n,t);if(cx(i[1]))return zu(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return Sye(i[1],t,r,i[0])}function Jo(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(ct[r]==null){t<0&&(t=r);continue}if(ct[r]==e){t=r;break}}t<0&&(t=391)}return ct[t]=e,t}function py(e){for(var t=0;t!=392;++t)e[t]!==void 0&&Jo(e[t],t)}function sh(){ct=aye()}var Tye={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},jV=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Aye(e){var t=typeof e=="number"?ct[e]:e;return t=t.replace(jV,"(\\d+)"),new RegExp("^"+t+"$")}function Cye(e,t,r){var n=-1,i=-1,a=-1,s=-1,o=-1,c=-1;(t.match(jV)||[]).forEach(function(p,m){var g=parseInt(r[m+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=g;break;case"d":a=g;break;case"h":s=g;break;case"s":c=g;break;case"m":s>=0?o=g:i=g;break}}),c>=0&&o==-1&&i>=0&&(o=i,i=-1);var f=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);f.length==7&&(f="0"+f),f.length==8&&(f="20"+f);var h=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return s==-1&&o==-1&&c==-1?f:n==-1&&i==-1&&a==-1?h:f+"T"+h}var Oye=function(){var e={};e.version="1.2.0";function t(){for(var D=0,M=new Array(256),N=0;N!=256;++N)D=N,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,M[N]=D;return typeof Int32Array<"u"?new Int32Array(M):M}var r=t();function n(D){var M=0,N=0,z=0,H=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(z=0;z!=256;++z)H[z]=D[z];for(z=0;z!=256;++z)for(N=D[z],M=256+z;M<4096;M+=256)N=H[M]=N>>>8^D[N&255];var B=[];for(z=1;z!=16;++z)B[z-1]=typeof Int32Array<"u"?H.subarray(z*256,z*256+256):H.slice(z*256,z*256+256);return B}var i=n(r),a=i[0],s=i[1],o=i[2],c=i[3],f=i[4],h=i[5],p=i[6],m=i[7],g=i[8],y=i[9],x=i[10],_=i[11],w=i[12],T=i[13],S=i[14];function O(D,M){for(var N=M^-1,z=0,H=D.length;z<H;)N=N>>>8^r[(N^D.charCodeAt(z++))&255];return~N}function C(D,M){for(var N=M^-1,z=D.length-15,H=0;H<z;)N=S[D[H++]^N&255]^T[D[H++]^N>>8&255]^w[D[H++]^N>>16&255]^_[D[H++]^N>>>24]^x[D[H++]]^y[D[H++]]^g[D[H++]]^m[D[H++]]^p[D[H++]]^h[D[H++]]^f[D[H++]]^c[D[H++]]^o[D[H++]]^s[D[H++]]^a[D[H++]]^r[D[H++]];for(z+=15;H<z;)N=N>>>8^r[(N^D[H++])&255];return~N}function k(D,M){for(var N=M^-1,z=0,H=D.length,B=0,te=0;z<H;)B=D.charCodeAt(z++),B<128?N=N>>>8^r[(N^B)&255]:B<2048?(N=N>>>8^r[(N^(192|B>>6&31))&255],N=N>>>8^r[(N^(128|B&63))&255]):B>=55296&&B<57344?(B=(B&1023)+64,te=D.charCodeAt(z++)&1023,N=N>>>8^r[(N^(240|B>>8&7))&255],N=N>>>8^r[(N^(128|B>>2&63))&255],N=N>>>8^r[(N^(128|te>>6&15|(B&3)<<4))&255],N=N>>>8^r[(N^(128|te&63))&255]):(N=N>>>8^r[(N^(224|B>>12&15))&255],N=N>>>8^r[(N^(128|B>>6&63))&255],N=N>>>8^r[(N^(128|B&63))&255]);return~N}return e.table=r,e.bstr=O,e.buf=C,e.str=k,e}(),it=function(){var t={};t.version="1.2.1";function r(I,K){for(var W=I.split("/"),G=K.split("/"),Y=0,Z=0,de=Math.min(W.length,G.length);Y<de;++Y){if(Z=W[Y].length-G[Y].length)return Z;if(W[Y]!=G[Y])return W[Y]<G[Y]?-1:1}return W.length-G.length}function n(I){if(I.charAt(I.length-1)=="/")return I.slice(0,-1).indexOf("/")===-1?I:n(I.slice(0,-1));var K=I.lastIndexOf("/");return K===-1?I:I.slice(0,K+1)}function i(I){if(I.charAt(I.length-1)=="/")return i(I.slice(0,-1));var K=I.lastIndexOf("/");return K===-1?I:I.slice(K+1)}function a(I,K){typeof K=="string"&&(K=new Date(K));var W=K.getHours();W=W<<6|K.getMinutes(),W=W<<5|K.getSeconds()>>>1,I.write_shift(2,W);var G=K.getFullYear()-1980;G=G<<4|K.getMonth()+1,G=G<<5|K.getDate(),I.write_shift(2,G)}function s(I){var K=I.read_shift(2)&65535,W=I.read_shift(2)&65535,G=new Date,Y=W&31;W>>>=5;var Z=W&15;W>>>=4,G.setMilliseconds(0),G.setFullYear(W+1980),G.setMonth(Z-1),G.setDate(Y);var de=K&31;K>>>=5;var _e=K&63;return K>>>=6,G.setHours(K),G.setMinutes(_e),G.setSeconds(de<<1),G}function o(I){ni(I,0);for(var K={},W=0;I.l<=I.length-4;){var G=I.read_shift(2),Y=I.read_shift(2),Z=I.l+Y,de={};switch(G){case 21589:W=I.read_shift(1),W&1&&(de.mtime=I.read_shift(4)),Y>5&&(W&2&&(de.atime=I.read_shift(4)),W&4&&(de.ctime=I.read_shift(4))),de.mtime&&(de.mt=new Date(de.mtime*1e3));break}I.l=Z,K[G]=de}return K}var c;function f(){return c||(c={})}function h(I,K){if(I[0]==80&&I[1]==75)return Mi(I,K);if((I[0]|32)==109&&(I[1]|32)==105)return st(I,K);if(I.length<512)throw new Error("CFB file size "+I.length+" < 512");var W=3,G=512,Y=0,Z=0,de=0,_e=0,fe=0,ve=[],pe=I.slice(0,512);ni(pe,0);var ke=p(pe);switch(W=ke[0],W){case 3:G=512;break;case 4:G=4096;break;case 0:if(ke[1]==0)return Mi(I,K);default:throw new Error("Major Version: Expected 3 or 4 saw "+W)}G!==512&&(pe=I.slice(0,G),ni(pe,28));var Fe=I.slice(0,G);m(pe,W);var qe=pe.read_shift(4,"i");if(W===3&&qe!==0)throw new Error("# Directory Sectors: Expected 0 saw "+qe);pe.l+=4,de=pe.read_shift(4,"i"),pe.l+=4,pe.chk("00100000","Mini Stream Cutoff Size: "),_e=pe.read_shift(4,"i"),Y=pe.read_shift(4,"i"),fe=pe.read_shift(4,"i"),Z=pe.read_shift(4,"i");for(var Be=-1,Ve=0;Ve<109&&(Be=pe.read_shift(4,"i"),!(Be<0));++Ve)ve[Ve]=Be;var Ze=g(I,G);_(fe,Z,Ze,G,ve);var At=T(Ze,de,ve,G);At[de].name="!Directory",Y>0&&_e!==te&&(At[_e].name="!MiniFAT"),At[ve[0]].name="!FAT",At.fat_addrs=ve,At.ssz=G;var Vt={},Kt=[],Ni=[],Sn=[];S(de,At,Ze,Kt,Y,Vt,Ni,_e),y(Ni,Sn,Kt),Kt.shift();var Ln={FileIndex:Ni,FullPaths:Sn};return K&&K.raw&&(Ln.raw={header:Fe,sectors:Ze}),Ln}function p(I){if(I[I.l]==80&&I[I.l+1]==75)return[0,0];I.chk(ne,"Header Signature: "),I.l+=16;var K=I.read_shift(2,"u");return[I.read_shift(2,"u"),K]}function m(I,K){var W=9;switch(I.l+=2,W=I.read_shift(2)){case 9:if(K!=3)throw new Error("Sector Shift: Expected 9 saw "+W);break;case 12:if(K!=4)throw new Error("Sector Shift: Expected 12 saw "+W);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+W)}I.chk("0600","Mini Sector Shift: "),I.chk("000000000000","Reserved: ")}function g(I,K){for(var W=Math.ceil(I.length/K)-1,G=[],Y=1;Y<W;++Y)G[Y-1]=I.slice(Y*K,(Y+1)*K);return G[W-1]=I.slice(W*K),G}function y(I,K,W){for(var G=0,Y=0,Z=0,de=0,_e=0,fe=W.length,ve=[],pe=[];G<fe;++G)ve[G]=pe[G]=G,K[G]=W[G];for(;_e<pe.length;++_e)G=pe[_e],Y=I[G].L,Z=I[G].R,de=I[G].C,ve[G]===G&&(Y!==-1&&ve[Y]!==Y&&(ve[G]=ve[Y]),Z!==-1&&ve[Z]!==Z&&(ve[G]=ve[Z])),de!==-1&&(ve[de]=G),Y!==-1&&G!=ve[G]&&(ve[Y]=ve[G],pe.lastIndexOf(Y)<_e&&pe.push(Y)),Z!==-1&&G!=ve[G]&&(ve[Z]=ve[G],pe.lastIndexOf(Z)<_e&&pe.push(Z));for(G=1;G<fe;++G)ve[G]===G&&(Z!==-1&&ve[Z]!==Z?ve[G]=ve[Z]:Y!==-1&&ve[Y]!==Y&&(ve[G]=ve[Y]));for(G=1;G<fe;++G)if(I[G].type!==0){if(_e=G,_e!=ve[_e])do _e=ve[_e],K[G]=K[_e]+"/"+K[G];while(_e!==0&&ve[_e]!==-1&&_e!=ve[_e]);ve[G]=-1}for(K[0]+="/",G=1;G<fe;++G)I[G].type!==2&&(K[G]+="/")}function x(I,K,W){for(var G=I.start,Y=I.size,Z=[],de=G;W&&Y>0&&de>=0;)Z.push(K.slice(de*B,de*B+B)),Y-=B,de=tu(W,de*4);return Z.length===0?Ce(0):$n(Z).slice(0,I.size)}function _(I,K,W,G,Y){var Z=te;if(I===te){if(K!==0)throw new Error("DIFAT chain shorter than expected")}else if(I!==-1){var de=W[I],_e=(G>>>2)-1;if(!de)return;for(var fe=0;fe<_e&&(Z=tu(de,fe*4))!==te;++fe)Y.push(Z);_(tu(de,G-4),K-1,W,G,Y)}}function w(I,K,W,G,Y){var Z=[],de=[];Y||(Y=[]);var _e=G-1,fe=0,ve=0;for(fe=K;fe>=0;){Y[fe]=!0,Z[Z.length]=fe,de.push(I[fe]);var pe=W[Math.floor(fe*4/G)];if(ve=fe*4&_e,G<4+ve)throw new Error("FAT boundary crossed: "+fe+" 4 "+G);if(!I[pe])break;fe=tu(I[pe],ve)}return{nodes:Z,data:eF([de])}}function T(I,K,W,G){var Y=I.length,Z=[],de=[],_e=[],fe=[],ve=G-1,pe=0,ke=0,Fe=0,qe=0;for(pe=0;pe<Y;++pe)if(_e=[],Fe=pe+K,Fe>=Y&&(Fe-=Y),!de[Fe]){fe=[];var Be=[];for(ke=Fe;ke>=0;){Be[ke]=!0,de[ke]=!0,_e[_e.length]=ke,fe.push(I[ke]);var Ve=W[Math.floor(ke*4/G)];if(qe=ke*4&ve,G<4+qe)throw new Error("FAT boundary crossed: "+ke+" 4 "+G);if(!I[Ve]||(ke=tu(I[Ve],qe),Be[ke]))break}Z[Fe]={nodes:_e,data:eF([fe])}}return Z}function S(I,K,W,G,Y,Z,de,_e){for(var fe=0,ve=G.length?2:0,pe=K[I].data,ke=0,Fe=0,qe;ke<pe.length;ke+=128){var Be=pe.slice(ke,ke+128);ni(Be,64),Fe=Be.read_shift(2),qe=U3(Be,0,Fe-ve),G.push(qe);var Ve={name:qe,type:Be.read_shift(1),color:Be.read_shift(1),L:Be.read_shift(4,"i"),R:Be.read_shift(4,"i"),C:Be.read_shift(4,"i"),clsid:Be.read_shift(16),state:Be.read_shift(4,"i"),start:0,size:0},Ze=Be.read_shift(2)+Be.read_shift(2)+Be.read_shift(2)+Be.read_shift(2);Ze!==0&&(Ve.ct=O(Be,Be.l-8));var At=Be.read_shift(2)+Be.read_shift(2)+Be.read_shift(2)+Be.read_shift(2);At!==0&&(Ve.mt=O(Be,Be.l-8)),Ve.start=Be.read_shift(4,"i"),Ve.size=Be.read_shift(4,"i"),Ve.size<0&&Ve.start<0&&(Ve.size=Ve.type=0,Ve.start=te,Ve.name=""),Ve.type===5?(fe=Ve.start,Y>0&&fe!==te&&(K[fe].name="!StreamData")):Ve.size>=4096?(Ve.storage="fat",K[Ve.start]===void 0&&(K[Ve.start]=w(W,Ve.start,K.fat_addrs,K.ssz)),K[Ve.start].name=Ve.name,Ve.content=K[Ve.start].data.slice(0,Ve.size)):(Ve.storage="minifat",Ve.size<0?Ve.size=0:fe!==te&&Ve.start!==te&&K[fe]&&(Ve.content=x(Ve,K[fe].data,(K[_e]||{}).data))),Ve.content&&ni(Ve.content,0),Z[qe]=Ve,de.push(Ve)}}function O(I,K){return new Date((Pa(I,K+4)/1e7*Math.pow(2,32)+Pa(I,K)/1e7-11644473600)*1e3)}function C(I,K){return f(),h(c.readFileSync(I),K)}function k(I,K){var W=K&&K.type;switch(W||kt&&Buffer.isBuffer(I)&&(W="buffer"),W||"base64"){case"file":return C(I,K);case"base64":return h(Fa(Wa(I)),K);case"binary":return h(Fa(I),K)}return h(I,K)}function D(I,K){var W=K||{},G=W.root||"Root Entry";if(I.FullPaths||(I.FullPaths=[]),I.FileIndex||(I.FileIndex=[]),I.FullPaths.length!==I.FileIndex.length)throw new Error("inconsistent CFB structure");I.FullPaths.length===0&&(I.FullPaths[0]=G+"/",I.FileIndex[0]={name:G,type:5}),W.CLSID&&(I.FileIndex[0].clsid=W.CLSID),M(I)}function M(I){var K="Sh33tJ5";if(!it.find(I,"/"+K)){var W=Ce(4);W[0]=55,W[1]=W[3]=50,W[2]=54,I.FileIndex.push({name:K,type:2,content:W,size:4,L:69,R:69,C:69}),I.FullPaths.push(I.FullPaths[0]+K),N(I)}}function N(I,K){D(I);for(var W=!1,G=!1,Y=I.FullPaths.length-1;Y>=0;--Y){var Z=I.FileIndex[Y];switch(Z.type){case 0:G?W=!0:(I.FileIndex.pop(),I.FullPaths.pop());break;case 1:case 2:case 5:G=!0,isNaN(Z.R*Z.L*Z.C)&&(W=!0),Z.R>-1&&Z.L>-1&&Z.R==Z.L&&(W=!0);break;default:W=!0;break}}if(!(!W&&!K)){var de=new Date(1987,1,19),_e=0,fe=Object.create?Object.create(null):{},ve=[];for(Y=0;Y<I.FullPaths.length;++Y)fe[I.FullPaths[Y]]=!0,I.FileIndex[Y].type!==0&&ve.push([I.FullPaths[Y],I.FileIndex[Y]]);for(Y=0;Y<ve.length;++Y){var pe=n(ve[Y][0]);G=fe[pe],G||(ve.push([pe,{name:i(pe).replace("/",""),type:1,clsid:Q,ct:de,mt:de,content:null}]),fe[pe]=!0)}for(ve.sort(function(qe,Be){return r(qe[0],Be[0])}),I.FullPaths=[],I.FileIndex=[],Y=0;Y<ve.length;++Y)I.FullPaths[Y]=ve[Y][0],I.FileIndex[Y]=ve[Y][1];for(Y=0;Y<ve.length;++Y){var ke=I.FileIndex[Y],Fe=I.FullPaths[Y];if(ke.name=i(Fe).replace("/",""),ke.L=ke.R=ke.C=-(ke.color=1),ke.size=ke.content?ke.content.length:0,ke.start=0,ke.clsid=ke.clsid||Q,Y===0)ke.C=ve.length>1?1:-1,ke.size=0,ke.type=5;else if(Fe.slice(-1)=="/"){for(_e=Y+1;_e<ve.length&&n(I.FullPaths[_e])!=Fe;++_e);for(ke.C=_e>=ve.length?-1:_e,_e=Y+1;_e<ve.length&&n(I.FullPaths[_e])!=n(Fe);++_e);ke.R=_e>=ve.length?-1:_e,ke.type=1}else n(I.FullPaths[Y+1]||"")==n(Fe)&&(ke.R=Y+1),ke.type=2}}}function z(I,K){var W=K||{};if(W.fileType=="mad")return _t(I,W);switch(N(I),W.fileType){case"zip":return Ur(I,W)}var G=function(qe){for(var Be=0,Ve=0,Ze=0;Ze<qe.FileIndex.length;++Ze){var At=qe.FileIndex[Ze];if(At.content){var Vt=At.content.length;Vt>0&&(Vt<4096?Be+=Vt+63>>6:Ve+=Vt+511>>9)}}for(var Kt=qe.FullPaths.length+3>>2,Ni=Be+7>>3,Sn=Be+127>>7,Ln=Ni+Ve+Kt+Sn,li=Ln+127>>7,ci=li<=109?0:Math.ceil((li-109)/127);Ln+li+ci+127>>7>li;)ci=++li<=109?0:Math.ceil((li-109)/127);var Ms=[1,ci,li,Sn,Kt,Ve,Be,0];return qe.FileIndex[0].size=Be<<6,Ms[7]=(qe.FileIndex[0].start=Ms[0]+Ms[1]+Ms[2]+Ms[3]+Ms[4]+Ms[5])+(Ms[6]+7>>3),Ms}(I),Y=Ce(G[7]<<9),Z=0,de=0;{for(Z=0;Z<8;++Z)Y.write_shift(1,le[Z]);for(Z=0;Z<8;++Z)Y.write_shift(2,0);for(Y.write_shift(2,62),Y.write_shift(2,3),Y.write_shift(2,65534),Y.write_shift(2,9),Y.write_shift(2,6),Z=0;Z<3;++Z)Y.write_shift(2,0);for(Y.write_shift(4,0),Y.write_shift(4,G[2]),Y.write_shift(4,G[0]+G[1]+G[2]+G[3]-1),Y.write_shift(4,0),Y.write_shift(4,4096),Y.write_shift(4,G[3]?G[0]+G[1]+G[2]-1:te),Y.write_shift(4,G[3]),Y.write_shift(-4,G[1]?G[0]-1:te),Y.write_shift(4,G[1]),Z=0;Z<109;++Z)Y.write_shift(-4,Z<G[2]?G[1]+Z:-1)}if(G[1])for(de=0;de<G[1];++de){for(;Z<236+de*127;++Z)Y.write_shift(-4,Z<G[2]?G[1]+Z:-1);Y.write_shift(-4,de===G[1]-1?te:de+1)}var _e=function(qe){for(de+=qe;Z<de-1;++Z)Y.write_shift(-4,Z+1);qe&&(++Z,Y.write_shift(-4,te))};for(de=Z=0,de+=G[1];Z<de;++Z)Y.write_shift(-4,ee.DIFSECT);for(de+=G[2];Z<de;++Z)Y.write_shift(-4,ee.FATSECT);_e(G[3]),_e(G[4]);for(var fe=0,ve=0,pe=I.FileIndex[0];fe<I.FileIndex.length;++fe)pe=I.FileIndex[fe],pe.content&&(ve=pe.content.length,!(ve<4096)&&(pe.start=de,_e(ve+511>>9)));for(_e(G[6]+7>>3);Y.l&511;)Y.write_shift(-4,ee.ENDOFCHAIN);for(de=Z=0,fe=0;fe<I.FileIndex.length;++fe)pe=I.FileIndex[fe],pe.content&&(ve=pe.content.length,!(!ve||ve>=4096)&&(pe.start=de,_e(ve+63>>6)));for(;Y.l&511;)Y.write_shift(-4,ee.ENDOFCHAIN);for(Z=0;Z<G[4]<<2;++Z){var ke=I.FullPaths[Z];if(!ke||ke.length===0){for(fe=0;fe<17;++fe)Y.write_shift(4,0);for(fe=0;fe<3;++fe)Y.write_shift(4,-1);for(fe=0;fe<12;++fe)Y.write_shift(4,0);continue}pe=I.FileIndex[Z],Z===0&&(pe.start=pe.size?pe.start-1:te);var Fe=Z===0&&W.root||pe.name;if(ve=2*(Fe.length+1),Y.write_shift(64,Fe,"utf16le"),Y.write_shift(2,ve),Y.write_shift(1,pe.type),Y.write_shift(1,pe.color),Y.write_shift(-4,pe.L),Y.write_shift(-4,pe.R),Y.write_shift(-4,pe.C),pe.clsid)Y.write_shift(16,pe.clsid,"hex");else for(fe=0;fe<4;++fe)Y.write_shift(4,0);Y.write_shift(4,pe.state||0),Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(4,pe.start),Y.write_shift(4,pe.size),Y.write_shift(4,0)}for(Z=1;Z<I.FileIndex.length;++Z)if(pe=I.FileIndex[Z],pe.size>=4096)if(Y.l=pe.start+1<<9,kt&&Buffer.isBuffer(pe.content))pe.content.copy(Y,Y.l,0,pe.size),Y.l+=pe.size+511&-512;else{for(fe=0;fe<pe.size;++fe)Y.write_shift(1,pe.content[fe]);for(;fe&511;++fe)Y.write_shift(1,0)}for(Z=1;Z<I.FileIndex.length;++Z)if(pe=I.FileIndex[Z],pe.size>0&&pe.size<4096)if(kt&&Buffer.isBuffer(pe.content))pe.content.copy(Y,Y.l,0,pe.size),Y.l+=pe.size+63&-64;else{for(fe=0;fe<pe.size;++fe)Y.write_shift(1,pe.content[fe]);for(;fe&63;++fe)Y.write_shift(1,0)}if(kt)Y.l=Y.length;else for(;Y.l<Y.length;)Y.write_shift(1,0);return Y}function H(I,K){var W=I.FullPaths.map(function(fe){return fe.toUpperCase()}),G=W.map(function(fe){var ve=fe.split("/");return ve[ve.length-(fe.slice(-1)=="/"?2:1)]}),Y=!1;K.charCodeAt(0)===47?(Y=!0,K=W[0].slice(0,-1)+K):Y=K.indexOf("/")!==-1;var Z=K.toUpperCase(),de=Y===!0?W.indexOf(Z):G.indexOf(Z);if(de!==-1)return I.FileIndex[de];var _e=!Z.match(Md);for(Z=Z.replace(Gi,""),_e&&(Z=Z.replace(Md,"!")),de=0;de<W.length;++de)if((_e?W[de].replace(Md,"!"):W[de]).replace(Gi,"")==Z||(_e?G[de].replace(Md,"!"):G[de]).replace(Gi,"")==Z)return I.FileIndex[de];return null}var B=64,te=-2,ne="d0cf11e0a1b11ae1",le=[208,207,17,224,161,177,26,225],Q="00000000000000000000000000000000",ee={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:te,FREESECT:-1,HEADER_SIGNATURE:ne,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Q,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ce(I,K,W){f();var G=z(I,W);c.writeFileSync(K,G)}function J(I){for(var K=new Array(I.length),W=0;W<I.length;++W)K[W]=String.fromCharCode(I[W]);return K.join("")}function R(I,K){var W=z(I,K);switch(K&&K.type||"buffer"){case"file":return f(),c.writeFileSync(K.filename,W),W;case"binary":return typeof W=="string"?W:J(W);case"base64":return Bp(typeof W=="string"?W:J(W));case"buffer":if(kt)return Buffer.isBuffer(W)?W:_l(W);case"array":return typeof W=="string"?Fa(W):W}return W}var se;function F(I){try{var K=I.InflateRaw,W=new K;if(W._processChunk(new Uint8Array([3,0]),W._finishFlushFlag),W.bytesRead)se=I;else throw new Error("zlib does not expose bytesRead")}catch(G){console.error("cannot use native zlib: "+(G.message||G))}}function V(I,K){if(!se)return Xi(I,K);var W=se.InflateRaw,G=new W,Y=G._processChunk(I.slice(I.l),G._finishFlushFlag);return I.l+=G.bytesRead,Y}function q(I){return se?se.deflateRawSync(I):je(I)}var X=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ae=[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],Se=[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 Te(I){var K=(I<<1|I<<11)&139536|(I<<5|I<<15)&558144;return(K>>16|K>>8|K)&255}for(var ue=typeof Uint8Array<"u",xe=ue?new Uint8Array(256):[],Ne=0;Ne<256;++Ne)xe[Ne]=Te(Ne);function j(I,K){var W=xe[I&255];return K<=8?W>>>8-K:(W=W<<8|xe[I>>8&255],K<=16?W>>>16-K:(W=W<<8|xe[I>>16&255],W>>>24-K))}function ze(I,K){var W=K&7,G=K>>>3;return(I[G]|(W<=6?0:I[G+1]<<8))>>>W&3}function Le(I,K){var W=K&7,G=K>>>3;return(I[G]|(W<=5?0:I[G+1]<<8))>>>W&7}function He(I,K){var W=K&7,G=K>>>3;return(I[G]|(W<=4?0:I[G+1]<<8))>>>W&15}function Xe(I,K){var W=K&7,G=K>>>3;return(I[G]|(W<=3?0:I[G+1]<<8))>>>W&31}function ie(I,K){var W=K&7,G=K>>>3;return(I[G]|(W<=1?0:I[G+1]<<8))>>>W&127}function yt(I,K,W){var G=K&7,Y=K>>>3,Z=(1<<W)-1,de=I[Y]>>>G;return W<8-G||(de|=I[Y+1]<<8-G,W<16-G)||(de|=I[Y+2]<<16-G,W<24-G)||(de|=I[Y+3]<<24-G),de&Z}function Yt(I,K,W){var G=K&7,Y=K>>>3;return G<=5?I[Y]|=(W&7)<<G:(I[Y]|=W<<G&255,I[Y+1]=(W&7)>>8-G),K+3}function Sr(I,K,W){var G=K&7,Y=K>>>3;return W=(W&1)<<G,I[Y]|=W,K+1}function Tt(I,K,W){var G=K&7,Y=K>>>3;return W<<=G,I[Y]|=W&255,W>>>=8,I[Y+1]=W,K+8}function Nn(I,K,W){var G=K&7,Y=K>>>3;return W<<=G,I[Y]|=W&255,W>>>=8,I[Y+1]=W&255,I[Y+2]=W>>>8,K+16}function Dr(I,K){var W=I.length,G=2*W>K?2*W:K+5,Y=0;if(W>=K)return I;if(kt){var Z=FN(G);if(I.copy)I.copy(Z);else for(;Y<I.length;++Y)Z[Y]=I[Y];return Z}else if(ue){var de=new Uint8Array(G);if(de.set)de.set(I);else for(;Y<W;++Y)de[Y]=I[Y];return de}return I.length=G,I}function vr(I){for(var K=new Array(I),W=0;W<I;++W)K[W]=0;return K}function It(I,K,W){var G=1,Y=0,Z=0,de=0,_e=0,fe=I.length,ve=ue?new Uint16Array(32):vr(32);for(Z=0;Z<32;++Z)ve[Z]=0;for(Z=fe;Z<W;++Z)I[Z]=0;fe=I.length;var pe=ue?new Uint16Array(fe):vr(fe);for(Z=0;Z<fe;++Z)ve[Y=I[Z]]++,G<Y&&(G=Y),pe[Z]=0;for(ve[0]=0,Z=1;Z<=G;++Z)ve[Z+16]=_e=_e+ve[Z-1]<<1;for(Z=0;Z<fe;++Z)_e=I[Z],_e!=0&&(pe[Z]=ve[_e+16]++);var ke=0;for(Z=0;Z<fe;++Z)if(ke=I[Z],ke!=0)for(_e=j(pe[Z],G)>>G-ke,de=(1<<G+4-ke)-1;de>=0;--de)K[_e|de<<ke]=ke&15|Z<<4;return G}var xr=ue?new Uint16Array(512):vr(512),ge=ue?new Uint16Array(32):vr(32);if(!ue){for(var Ie=0;Ie<512;++Ie)xr[Ie]=0;for(Ie=0;Ie<32;++Ie)ge[Ie]=0}(function(){for(var I=[],K=0;K<32;K++)I.push(5);It(I,ge,32);var W=[];for(K=0;K<=143;K++)W.push(8);for(;K<=255;K++)W.push(9);for(;K<=279;K++)W.push(7);for(;K<=287;K++)W.push(8);It(W,xr,288)})();var Re=function(){for(var K=ue?new Uint8Array(32768):[],W=0,G=0;W<Se.length-1;++W)for(;G<Se[W+1];++G)K[G]=W;for(;G<32768;++G)K[G]=29;var Y=ue?new Uint8Array(259):[];for(W=0,G=0;W<ae.length-1;++W)for(;G<ae[W+1];++G)Y[G]=W;function Z(_e,fe){for(var ve=0;ve<_e.length;){var pe=Math.min(65535,_e.length-ve),ke=ve+pe==_e.length;for(fe.write_shift(1,+ke),fe.write_shift(2,pe),fe.write_shift(2,~pe&65535);pe-- >0;)fe[fe.l++]=_e[ve++]}return fe.l}function de(_e,fe){for(var ve=0,pe=0,ke=ue?new Uint16Array(32768):[];pe<_e.length;){var Fe=Math.min(65535,_e.length-pe);if(Fe<10){for(ve=Yt(fe,ve,+(pe+Fe==_e.length)),ve&7&&(ve+=8-(ve&7)),fe.l=ve/8|0,fe.write_shift(2,Fe),fe.write_shift(2,~Fe&65535);Fe-- >0;)fe[fe.l++]=_e[pe++];ve=fe.l*8;continue}ve=Yt(fe,ve,+(pe+Fe==_e.length)+2);for(var qe=0;Fe-- >0;){var Be=_e[pe];qe=(qe<<5^Be)&32767;var Ve=-1,Ze=0;if((Ve=ke[qe])&&(Ve|=pe&-32768,Ve>pe&&(Ve-=32768),Ve<pe))for(;_e[Ve+Ze]==_e[pe+Ze]&&Ze<250;)++Ze;if(Ze>2){Be=Y[Ze],Be<=22?ve=Tt(fe,ve,xe[Be+1]>>1)-1:(Tt(fe,ve,3),ve+=5,Tt(fe,ve,xe[Be-23]>>5),ve+=3);var At=Be<8?0:Be-4>>2;At>0&&(Nn(fe,ve,Ze-ae[Be]),ve+=At),Be=K[pe-Ve],ve=Tt(fe,ve,xe[Be]>>3),ve-=3;var Vt=Be<4?0:Be-2>>1;Vt>0&&(Nn(fe,ve,pe-Ve-Se[Be]),ve+=Vt);for(var Kt=0;Kt<Ze;++Kt)ke[qe]=pe&32767,qe=(qe<<5^_e[pe])&32767,++pe;Fe-=Ze-1}else Be<=143?Be=Be+48:ve=Sr(fe,ve,1),ve=Tt(fe,ve,xe[Be]),ke[qe]=pe&32767,++pe}ve=Tt(fe,ve,0)-1}return fe.l=(ve+7)/8|0,fe.l}return function(fe,ve){return fe.length<8?Z(fe,ve):de(fe,ve)}}();function je(I){var K=Ce(50+Math.floor(I.length*1.1)),W=Re(I,K);return K.slice(0,W)}var Ye=ue?new Uint16Array(32768):vr(32768),Ge=ue?new Uint16Array(32768):vr(32768),at=ue?new Uint16Array(128):vr(128),vt=1,nr=1;function cn(I,K){var W=Xe(I,K)+257;K+=5;var G=Xe(I,K)+1;K+=5;var Y=He(I,K)+4;K+=4;for(var Z=0,de=ue?new Uint8Array(19):vr(19),_e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],fe=1,ve=ue?new Uint8Array(8):vr(8),pe=ue?new Uint8Array(8):vr(8),ke=de.length,Fe=0;Fe<Y;++Fe)de[X[Fe]]=Z=Le(I,K),fe<Z&&(fe=Z),ve[Z]++,K+=3;var qe=0;for(ve[0]=0,Fe=1;Fe<=fe;++Fe)pe[Fe]=qe=qe+ve[Fe-1]<<1;for(Fe=0;Fe<ke;++Fe)(qe=de[Fe])!=0&&(_e[Fe]=pe[qe]++);var Be=0;for(Fe=0;Fe<ke;++Fe)if(Be=de[Fe],Be!=0){qe=xe[_e[Fe]]>>8-Be;for(var Ve=(1<<7-Be)-1;Ve>=0;--Ve)at[qe|Ve<<Be]=Be&7|Fe<<3}var Ze=[];for(fe=1;Ze.length<W+G;)switch(qe=at[ie(I,K)],K+=qe&7,qe>>>=3){case 16:for(Z=3+ze(I,K),K+=2,qe=Ze[Ze.length-1];Z-- >0;)Ze.push(qe);break;case 17:for(Z=3+Le(I,K),K+=3;Z-- >0;)Ze.push(0);break;case 18:for(Z=11+ie(I,K),K+=7;Z-- >0;)Ze.push(0);break;default:Ze.push(qe),fe<qe&&(fe=qe);break}var At=Ze.slice(0,W),Vt=Ze.slice(W);for(Fe=W;Fe<286;++Fe)At[Fe]=0;for(Fe=G;Fe<30;++Fe)Vt[Fe]=0;return vt=It(At,Ye,286),nr=It(Vt,Ge,30),K}function un(I,K){if(I[0]==3&&!(I[1]&3))return[mc(K),2];for(var W=0,G=0,Y=FN(K||1<<18),Z=0,de=Y.length>>>0,_e=0,fe=0;(G&1)==0;){if(G=Le(I,W),W+=3,G>>>1)G>>1==1?(_e=9,fe=5):(W=cn(I,W),_e=vt,fe=nr);else{W&7&&(W+=8-(W&7));var ve=I[W>>>3]|I[(W>>>3)+1]<<8;if(W+=32,ve>0)for(!K&&de<Z+ve&&(Y=Dr(Y,Z+ve),de=Y.length);ve-- >0;)Y[Z++]=I[W>>>3],W+=8;continue}for(;;){!K&&de<Z+32767&&(Y=Dr(Y,Z+32767),de=Y.length);var pe=yt(I,W,_e),ke=G>>>1==1?xr[pe]:Ye[pe];if(W+=ke&15,ke>>>=4,(ke>>>8&255)===0)Y[Z++]=ke;else{if(ke==256)break;ke-=257;var Fe=ke<8?0:ke-4>>2;Fe>5&&(Fe=0);var qe=Z+ae[ke];Fe>0&&(qe+=yt(I,W,Fe),W+=Fe),pe=yt(I,W,fe),ke=G>>>1==1?ge[pe]:Ge[pe],W+=ke&15,ke>>>=4;var Be=ke<4?0:ke-2>>1,Ve=Se[ke];for(Be>0&&(Ve+=yt(I,W,Be),W+=Be),!K&&de<qe&&(Y=Dr(Y,qe+100),de=Y.length);Z<qe;)Y[Z]=Y[Z-Ve],++Z}}}return K?[Y,W+7>>>3]:[Y.slice(0,Z),W+7>>>3]}function Xi(I,K){var W=I.slice(I.l||0),G=un(W,K);return I.l+=G[1],G[0]}function xt(I,K){if(I)typeof console<"u"&&console.error(K);else throw new Error(K)}function Mi(I,K){var W=I;ni(W,0);var G=[],Y=[],Z={FileIndex:G,FullPaths:Y};D(Z,{root:K.root});for(var de=W.length-4;(W[de]!=80||W[de+1]!=75||W[de+2]!=5||W[de+3]!=6)&&de>=0;)--de;W.l=de+4,W.l+=4;var _e=W.read_shift(2);W.l+=6;var fe=W.read_shift(4);for(W.l=fe,de=0;de<_e;++de){W.l+=20;var ve=W.read_shift(4),pe=W.read_shift(4),ke=W.read_shift(2),Fe=W.read_shift(2),qe=W.read_shift(2);W.l+=8;var Be=W.read_shift(4),Ve=o(W.slice(W.l+ke,W.l+ke+Fe));W.l+=ke+Fe+qe;var Ze=W.l;W.l=Be+4,wn(W,ve,pe,Z,Ve),W.l=Ze}return Z}function wn(I,K,W,G,Y){I.l+=2;var Z=I.read_shift(2),de=I.read_shift(2),_e=s(I);if(Z&8257)throw new Error("Unsupported ZIP encryption");for(var fe=I.read_shift(4),ve=I.read_shift(4),pe=I.read_shift(4),ke=I.read_shift(2),Fe=I.read_shift(2),qe="",Be=0;Be<ke;++Be)qe+=String.fromCharCode(I[I.l++]);if(Fe){var Ve=o(I.slice(I.l,I.l+Fe));(Ve[21589]||{}).mt&&(_e=Ve[21589].mt),((Y||{})[21589]||{}).mt&&(_e=Y[21589].mt)}I.l+=Fe;var Ze=I.slice(I.l,I.l+ve);switch(de){case 8:Ze=V(I,pe);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+de)}var At=!1;Z&8&&(fe=I.read_shift(4),fe==134695760&&(fe=I.read_shift(4),At=!0),ve=I.read_shift(4),pe=I.read_shift(4)),ve!=K&&xt(At,"Bad compressed size: "+K+" != "+ve),pe!=W&&xt(At,"Bad uncompressed size: "+W+" != "+pe),et(G,qe,Ze,{unsafe:!0,mt:_e})}function Ur(I,K){var W=K||{},G=[],Y=[],Z=Ce(1),de=W.compression?8:0,_e=0,fe=0,ve=0,pe=0,ke=0,Fe=I.FullPaths[0],qe=Fe,Be=I.FileIndex[0],Ve=[],Ze=0;for(fe=1;fe<I.FullPaths.length;++fe)if(qe=I.FullPaths[fe].slice(Fe.length),Be=I.FileIndex[fe],!(!Be.size||!Be.content||qe=="Sh33tJ5")){var At=pe,Vt=Ce(qe.length);for(ve=0;ve<qe.length;++ve)Vt.write_shift(1,qe.charCodeAt(ve)&127);Vt=Vt.slice(0,Vt.l),Ve[ke]=Oye.buf(Be.content,0);var Kt=Be.content;de==8&&(Kt=q(Kt)),Z=Ce(30),Z.write_shift(4,67324752),Z.write_shift(2,20),Z.write_shift(2,_e),Z.write_shift(2,de),Be.mt?a(Z,Be.mt):Z.write_shift(4,0),Z.write_shift(-4,Ve[ke]),Z.write_shift(4,Kt.length),Z.write_shift(4,Be.content.length),Z.write_shift(2,Vt.length),Z.write_shift(2,0),pe+=Z.length,G.push(Z),pe+=Vt.length,G.push(Vt),pe+=Kt.length,G.push(Kt),Z=Ce(46),Z.write_shift(4,33639248),Z.write_shift(2,0),Z.write_shift(2,20),Z.write_shift(2,_e),Z.write_shift(2,de),Z.write_shift(4,0),Z.write_shift(-4,Ve[ke]),Z.write_shift(4,Kt.length),Z.write_shift(4,Be.content.length),Z.write_shift(2,Vt.length),Z.write_shift(2,0),Z.write_shift(2,0),Z.write_shift(2,0),Z.write_shift(2,0),Z.write_shift(4,0),Z.write_shift(4,At),Ze+=Z.l,Y.push(Z),Ze+=Vt.length,Y.push(Vt),++ke}return Z=Ce(22),Z.write_shift(4,101010256),Z.write_shift(2,0),Z.write_shift(2,0),Z.write_shift(2,ke),Z.write_shift(2,ke),Z.write_shift(4,Ze),Z.write_shift(4,pe),Z.write_shift(2,0),$n([$n(G),$n(Y),Z])}var Zr={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 Yi(I,K){if(I.ctype)return I.ctype;var W=I.name||"",G=W.match(/\.([^\.]+)$/);return G&&Zr[G[1]]||K&&(G=(W=K).match(/[\.\\]([^\.\\])+$/),G&&Zr[G[1]])?Zr[G[1]]:"application/octet-stream"}function oi(I){for(var K=Bp(I),W=[],G=0;G<K.length;G+=76)W.push(K.slice(G,G+76));return W.join(`\r
`)+`\r
`}function Fn(I){var K=I.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ve){var pe=ve.charCodeAt(0).toString(16).toUpperCase();return"="+(pe.length==1?"0"+pe:pe)});K=K.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),K.charAt(0)==`
`&&(K="=0D"+K.slice(1)),K=K.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var W=[],G=K.split(`\r
`),Y=0;Y<G.length;++Y){var Z=G[Y];if(Z.length==0){W.push("");continue}for(var de=0;de<Z.length;){var _e=76,fe=Z.slice(de,de+_e);fe.charAt(_e-1)=="="?_e--:fe.charAt(_e-2)=="="?_e-=2:fe.charAt(_e-3)=="="&&(_e-=3),fe=Z.slice(de,de+_e),de+=_e,de<Z.length&&(fe+="="),W.push(fe)}}return W.join(`\r
`)}function Ri(I){for(var K=[],W=0;W<I.length;++W){for(var G=I[W];W<=I.length&&G.charAt(G.length-1)=="=";)G=G.slice(0,G.length-1)+I[++W];K.push(G)}for(var Y=0;Y<K.length;++Y)K[Y]=K[Y].replace(/[=][0-9A-Fa-f]{2}/g,function(Z){return String.fromCharCode(parseInt(Z.slice(1),16))});return Fa(K.join(`\r
`))}function gt(I,K,W){for(var G="",Y="",Z="",de,_e=0;_e<10;++_e){var fe=K[_e];if(!fe||fe.match(/^\s*$/))break;var ve=fe.match(/^(.*?):\s*([^\s].*)$/);if(ve)switch(ve[1].toLowerCase()){case"content-location":G=ve[2].trim();break;case"content-type":Z=ve[2].trim();break;case"content-transfer-encoding":Y=ve[2].trim();break}}switch(++_e,Y.toLowerCase()){case"base64":de=Fa(Wa(K.slice(_e).join("")));break;case"quoted-printable":de=Ri(K.slice(_e));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+Y)}var pe=et(I,G.slice(W.length),de,{unsafe:!0});Z&&(pe.ctype=Z)}function st(I,K){if(J(I.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var W=K&&K.root||"",G=(kt&&Buffer.isBuffer(I)?I.toString("binary"):J(I)).split(`\r
`),Y=0,Z="";for(Y=0;Y<G.length;++Y)if(Z=G[Y],!!/^Content-Location:/i.test(Z)&&(Z=Z.slice(Z.indexOf("file")),W||(W=Z.slice(0,Z.lastIndexOf("/")+1)),Z.slice(0,W.length)!=W))for(;W.length>0&&(W=W.slice(0,W.length-1),W=W.slice(0,W.lastIndexOf("/")+1),Z.slice(0,W.length)!=W););var de=(G[1]||"").match(/boundary="(.*?)"/);if(!de)throw new Error("MAD cannot find boundary");var _e="--"+(de[1]||""),fe=[],ve=[],pe={FileIndex:fe,FullPaths:ve};D(pe);var ke,Fe=0;for(Y=0;Y<G.length;++Y){var qe=G[Y];qe!==_e&&qe!==_e+"--"||(Fe++&&gt(pe,G.slice(ke,Y),W),ke=Y)}return pe}function _t(I,K){var W=K||{},G=W.boundary||"SheetJS";G="------="+G;for(var Y=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+G.slice(2)+'"',"","",""],Z=I.FullPaths[0],de=Z,_e=I.FileIndex[0],fe=1;fe<I.FullPaths.length;++fe)if(de=I.FullPaths[fe].slice(Z.length),_e=I.FileIndex[fe],!(!_e.size||!_e.content||de=="Sh33tJ5")){de=de.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ze){return"_x"+Ze.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ze){return"_u"+Ze.charCodeAt(0).toString(16)+"_"});for(var ve=_e.content,pe=kt&&Buffer.isBuffer(ve)?ve.toString("binary"):J(ve),ke=0,Fe=Math.min(1024,pe.length),qe=0,Be=0;Be<=Fe;++Be)(qe=pe.charCodeAt(Be))>=32&&qe<128&&++ke;var Ve=ke>=Fe*4/5;Y.push(G),Y.push("Content-Location: "+(W.root||"file:///C:/SheetJS/")+de),Y.push("Content-Transfer-Encoding: "+(Ve?"quoted-printable":"base64")),Y.push("Content-Type: "+Yi(_e,de)),Y.push(""),Y.push(Ve?Fn(pe):oi(pe))}return Y.push(G+`--\r
`),Y.join(`\r
`)}function Ue(I){var K={};return D(K,I),K}function et(I,K,W,G){var Y=G&&G.unsafe;Y||D(I);var Z=!Y&&it.find(I,K);if(!Z){var de=I.FullPaths[0];K.slice(0,de.length)==de?de=K:(de.slice(-1)!="/"&&(de+="/"),de=(de+K).replace("//","/")),Z={name:i(K),type:2},I.FileIndex.push(Z),I.FullPaths.push(de),Y||it.utils.cfb_gc(I)}return Z.content=W,Z.size=W?W.length:0,G&&(G.CLSID&&(Z.clsid=G.CLSID),G.mt&&(Z.mt=G.mt),G.ct&&(Z.ct=G.ct)),Z}function tt(I,K){D(I);var W=it.find(I,K);if(W){for(var G=0;G<I.FileIndex.length;++G)if(I.FileIndex[G]==W)return I.FileIndex.splice(G,1),I.FullPaths.splice(G,1),!0}return!1}function ft(I,K,W){D(I);var G=it.find(I,K);if(G){for(var Y=0;Y<I.FileIndex.length;++Y)if(I.FileIndex[Y]==G)return I.FileIndex[Y].name=i(W),I.FullPaths[Y]=W,!0}return!1}function zr(I){N(I,!0)}return t.find=H,t.read=k,t.parse=h,t.write=R,t.writeFile=ce,t.utils={cfb_new:Ue,cfb_add:et,cfb_del:tt,cfb_mov:ft,cfb_gc:zr,ReadShift:ep,CheckField:oH,prep_blob:ni,bconcat:$n,use_zlib:F,_deflateRaw:je,_inflateRaw:Xi,consts:ee},t}();function kye(e){return typeof e=="string"?dy(e):Array.isArray(e)?tye(e):e}function Em(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=dy(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?fo(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([kye(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 a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var o=File(e);return o.open("w"),o.encoding="binary",Array.isArray(t)&&(t=Tc(t)),o.write(t),o.close(),t}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+e)}function Dye(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}function Kr(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 HN(e,t){for(var r=[],n=Kr(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function my(e){for(var t=[],r=Kr(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function gy(e){for(var t=[],r=Kr(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function Pye(e){for(var t=[],r=Kr(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 fx=new Date(1899,11,30,0,0,0);function Pn(e,t){var r=e.getTime(),n=fx.getTime()+(e.getTimezoneOffset()-fx.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var UV=new Date,Mye=fx.getTime()+(UV.getTimezoneOffset()-fx.getTimezoneOffset())*6e4,$N=UV.getTimezoneOffset();function vy(e){var t=new Date;return t.setTime(e*24*60*60*1e3+Mye),t.getTimezoneOffset()!==$N&&t.setTime(t.getTime()+(t.getTimezoneOffset()-$N)*6e4),t}function Rye(e){var t=0,r=0,n=!1,i=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var a=1;a!=i.length;++a)if(i[a]){switch(r=1,a>3&&(n=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(i[a],10)}return t}var WN=new Date("2017-02-19T19:06:09.000Z"),zV=isNaN(WN.getFullYear())?new Date("2/19/17"):WN,Nye=zV.getFullYear()==2017;function br(e,t){var r=new Date(e);if(Nye)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(zV.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"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function Vu(e,t){if(kt&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return fo(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return fo(OV(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return fo(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return fo(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(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function wr(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]=wr(e[r]));return t}function Wr(e,t){for(var r="";r.length<t;)r+=e;return r}function Ws(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,a){return r=-r,a}),!isNaN(t=Number(n)))?t/r:t}var Fye=["january","february","march","april","may","june","july","august","september","october","november","december"];function j0(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&Fye.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var Lye=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,i){if(e||typeof n=="string")return r.split(n);for(var a=r.split(n),s=[a[0]],o=1;o<a.length;++o)s.push(i),s.push(a[o]);return s}}();function VV(e){return e?e.content&&e.type?Vu(e.content,!0):e.data?Pd(e.data):e.asNodeBuffer&&kt?Pd(e.asNodeBuffer().toString("binary")):e.asBinary?Pd(e.asBinary()):e._data&&e._data.getContent?Pd(Vu(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function HV(e){if(!e)return null;if(e.data)return RN(e.data);if(e.asNodeBuffer&&kt)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return typeof t=="string"?RN(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function Iye(e){return e&&e.name.slice(-4)===".bin"?HV(e):VV(e)}function ds(e,t){for(var r=e.FullPaths||Kr(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),i=n.replace(/\\/g,"/"),a=0;a<r.length;++a){var s=r[a].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==s||i==s)return e.files?e.files[r[a]]:e.FileIndex[a]}return null}function N3(e,t){var r=ds(e,t);if(r==null)throw new Error("Cannot find file "+t+" in zip");return r}function pn(e,t,r){if(!r)return Iye(N3(e,t));if(!t)return null;try{return pn(e,t)}catch{return null}}function La(e,t,r){if(!r)return VV(N3(e,t));if(!t)return null;try{return La(e,t)}catch{return null}}function Bye(e,t,r){return HV(N3(e,t))}function qN(e){for(var t=e.FullPaths||Kr(e.files),r=[],n=0;n<t.length;++n)t[n].slice(-1)!="/"&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function Et(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return kt?n=_l(r):n=rye(r),it.utils.cfb_add(e,t,n)}it.utils.cfb_add(e,t,r)}else e.file(t,r)}function F3(){return it.utils.cfb_new()}function $V(e,t){switch(t.type){case"base64":return it.read(e,{type:"base64"});case"binary":return it.read(e,{type:"binary"});case"buffer":case"array":return it.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function Rd(e,t){if(e.charAt(0)=="/")return e.slice(1);var r=t.split("/");t.slice(-1)!="/"&&r.pop();for(var n=e.split("/");n.length!==0;){var i=n.shift();i===".."?r.pop():i!=="."&&r.push(i)}return r.join("/")}var ln=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,jye=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,GN=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,Uye=/<[^>]*>/g,Pi=ln.match(GN)?GN:Uye,zye=/<\w*:/,Vye=/<(\/?)\w+:/;function mt(e,t,r){for(var n={},i=0,a=0;i!==e.length&&!((a=e.charCodeAt(i))===32||a===10||a===13);++i);if(t||(n[0]=e.slice(0,i)),i===e.length)return n;var s=e.match(jye),o=0,c="",f=0,h="",p="",m=1;if(s)for(f=0;f!=s.length;++f){for(p=s[f],a=0;a!=p.length&&p.charCodeAt(a)!==61;++a);for(h=p.slice(0,a).trim();p.charCodeAt(a+1)==32;)++a;for(m=(i=p.charCodeAt(a+1))==34||i==39?1:0,c=p.slice(a+1+m,p.length-m),o=0;o!=h.length&&h.charCodeAt(o)!==58;++o);if(o===h.length)h.indexOf("_")>0&&(h=h.slice(0,h.indexOf("_"))),n[h]=c,n[h.toLowerCase()]=c;else{var g=(o===5&&h.slice(0,5)==="xmlns"?"xmlns":"")+h.slice(o+1);if(n[g]&&h.slice(o-3,o)=="ext")continue;n[g]=c,n[g.toLowerCase()]=c}}return n}function So(e){return e.replace(Vye,"<$1")}var WV={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},L3=my(WV),Ut=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var i=n+"",a=i.indexOf("<![CDATA[");if(a==-1)return i.replace(e,function(o,c){return WV[o]||String.fromCharCode(parseInt(c,o.indexOf("x")>-1?16:10))||o}).replace(t,function(o,c){return String.fromCharCode(parseInt(c,16))});var s=i.indexOf("]]>");return r(i.slice(0,a))+i.slice(a+9,s)+r(i.slice(s+3))}}(),I3=/[&<>'"]/g,Hye=/[\u0000-\u0008\u000b-\u001f]/g;function rr(e){var t=e+"";return t.replace(I3,function(r){return L3[r]}).replace(Hye,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function XN(e){return rr(e).replace(/ /g,"_x0020_")}var qV=/[\u0000-\u001f]/g;function B3(e){var t=e+"";return t.replace(I3,function(r){return L3[r]}).replace(/\n/g,"<br/>").replace(qV,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function $ye(e){var t=e+"";return t.replace(I3,function(r){return L3[r]}).replace(qV,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var YN=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function Wye(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function _r(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Kw(e){for(var t="",r=0,n=0,i=0,a=0,s=0,o=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){s=(n&31)<<6,s|=i&63,t+=String.fromCharCode(s);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(r++),o=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(o&1023))}return t}function KN(e){var t=mc(2*e.length),r,n,i=1,a=0,s=0,o;for(n=0;n<e.length;n+=i)i=1,(o=e.charCodeAt(n))<128?r=o:o<224?(r=(o&31)*64+(e.charCodeAt(n+1)&63),i=2):o<240?(r=(o&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,r=(o&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[a++]=s&255,t[a++]=s>>>8,s=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function ZN(e){return _l(e,"binary").toString("utf8")}var yg="foo bar bazâð£",lr=kt&&(ZN(yg)==Kw(yg)&&ZN||KN(yg)==Kw(yg)&&KN)||Kw,fo=kt?function(e){return _l(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("")},Up=function(){var e={};return function(r,n){var i=r+"|"+(n||"");return e[i]?e[i]:e[i]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}}(),GV=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}}(),qye=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),Gye=/<\/?(?:vt:)?variant>/g,Xye=/<(?:vt:)([^>]*)>([\s\S]*)</;function QN(e,t){var r=mt(e),n=e.match(qye(r.baseType))||[],i=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return i}return n.forEach(function(a){var s=a.replace(Gye,"").match(Xye);s&&i.push({v:lr(s[2]),t:s[1]})}),i}var XV=/(^\s|\s$|\n)/;function ii(e,t){return"<"+e+(t.match(XV)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function zp(e){return Kr(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function $e(e,t,r){return"<"+e+(r!=null?zp(r):"")+(t!=null?(t.match(XV)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function uT(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Yye(e,t){switch(typeof e){case"string":var r=$e("vt:lpwstr",rr(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return $e((e|0)==e?"vt:i4":"vt:r8",rr(String(e)));case"boolean":return $e("vt:bool",e?"true":"false")}if(e instanceof Date)return $e("vt:filetime",uT(e));throw new Error("Unable to serialize "+e)}function j3(e){if(kt&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return lr(Tc(P3(e)));throw new Error("Bad input format: expected Buffer or string")}var Vp=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,kn={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/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ju=["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"],Da={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 Kye(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,a=5;a>=0;--a)i=i*256+e[t+a];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 Zye(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,s=n?-t:t;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var o=0;o<=5;++o,a/=256)e[r+o]=a&255;e[r+6]=(i&15)<<4|a&15,e[r+7]=i>>4|n}var JN=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},eF=kt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:_l(t)})):JN(e)}:JN,tF=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Go(e,i)));return n.join("").replace(Gi,"")},U3=kt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Gi,""):tF(e,t,r)}:tF,rF=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("")},YV=kt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):rF(e,t,r)}:rF,nF=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(Kf(e,i)));return n.join("")},Tm=kt?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):nF(t,r,n)}:nF,KV=function(e,t){var r=Pa(e,t);return r>0?Tm(e,t+4,t+4+r-1):""},ZV=KV,QV=function(e,t){var r=Pa(e,t);return r>0?Tm(e,t+4,t+4+r-1):""},JV=QV,eH=function(e,t){var r=2*Pa(e,t);return r>0?Tm(e,t+4,t+4+r-1):""},tH=eH,rH=function(t,r){var n=Pa(t,r);return n>0?U3(t,r+4,r+4+n):""},nH=rH,iH=function(e,t){var r=Pa(e,t);return r>0?Tm(e,t+4,t+4+r):""},aH=iH,sH=function(e,t){return Kye(e,t)},hx=sH,z3=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};kt&&(ZV=function(t,r){if(!Buffer.isBuffer(t))return KV(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},JV=function(t,r){if(!Buffer.isBuffer(t))return QV(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},tH=function(t,r){if(!Buffer.isBuffer(t))return eH(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},nH=function(t,r){if(!Buffer.isBuffer(t))return rH(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},aH=function(t,r){if(!Buffer.isBuffer(t))return iH(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},hx=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):sH(t,r)},z3=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Kf=function(e,t){return e[t]},Go=function(e,t){return e[t+1]*256+e[t]},Qye=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Pa=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},tu=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Jye=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function ep(e,t){var r="",n,i,a=[],s,o,c,f;switch(t){case"dbcs":if(f=this.l,kt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c<e;++c)r+=String.fromCharCode(Go(this,f)),f+=2;e*=2;break;case"utf8":r=Tm(this,this.l,this.l+e);break;case"utf16le":e*=2,r=U3(this,this.l,this.l+e);break;case"wstr":return ep.call(this,e,"dbcs");case"lpstr-ansi":r=ZV(this,this.l),e=4+Pa(this,this.l);break;case"lpstr-cp":r=JV(this,this.l),e=4+Pa(this,this.l);break;case"lpwstr":r=tH(this,this.l),e=4+2*Pa(this,this.l);break;case"lpp4":e=4+Pa(this,this.l),r=nH(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Pa(this,this.l),r=aH(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(s=Kf(this,this.l+e++))!==0;)a.push(xg(s));r=a.join("");break;case"_wstr":for(e=0,r="";(s=Go(this,this.l+e))!==0;)a.push(xg(s)),e+=2;e+=2,r=a.join("");break;case"dbcs-cont":for(r="",f=this.l,c=0;c<e;++c){if(this.lens&&this.lens.indexOf(f)!==-1)return s=Kf(this,f),this.l=f+1,o=ep.call(this,e-c,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(xg(Go(this,f))),f+=2}r=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",f=this.l,c=0;c!=e;++c){if(this.lens&&this.lens.indexOf(f)!==-1)return s=Kf(this,f),this.l=f+1,o=ep.call(this,e-c,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(xg(Kf(this,f))),f+=1}r=a.join("");break;default:switch(e){case 1:return n=Kf(this,this.l),this.l++,n;case 2:return n=(t==="i"?Qye:Go)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?tu:Jye)(this,this.l),this.l+=4,n):(i=Pa(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=hx(this,this.l):i=hx([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=YV(this,this.l,e);break}}return this.l+=e,r}var e2e=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},t2e=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},r2e=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function n2e(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)r2e(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 a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var s=t.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)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,e2e(this,t,this.l);break;case 8:if(n=8,r==="f"){Zye(this,t,this.l);break}case 16:break;case-4:n=4,t2e(this,t,this.l);break}return this.l+=n,this}function oH(e,t){var r=YV(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function ni(e,t){e.l=t,e.read_shift=ep,e.chk=oH,e.write_shift=n2e}function ki(e,t){e.l+=t}function Ce(e){var t=mc(e);return ni(t,0),t}function bl(e,t,r){if(e){var n,i,a;ni(e,e.l||0);for(var s=e.length,o=0,c=0;e.l<s;){o=e.read_shift(1),o&128&&(o=(o&127)+((e.read_shift(1)&127)<<7));var f=Xp[o]||Xp[65535];for(n=e.read_shift(1),a=n&127,i=1;i<4&&n&128;++i)a+=((n=e.read_shift(1))&127)<<7*i;c=e.l+a;var h=f.f&&f.f(e,a,r);if(e.l=c,t(h,f,o))return}}}function fa(){var e=[],t=kt?256:2048,r=function(f){var h=Ce(f);return ni(h,0),h},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)},a=function(f){return n&&f<n.length-n.l?n:(i(),n=r(Math.max(f+1,t)))},s=function(){return i(),$n(e)},o=function(f){i(),n=f,n.l==null&&(n.l=n.length),a(t)};return{next:a,push:o,end:s,_bufs:e}}function Me(e,t,r,n){var i=+t,a;if(!isNaN(i)){n||(n=Xp[i].p||(r||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var o=0;o!=4;++o)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&z3(r)&&e.push(r)}}function tp(e,t,r){var n=wr(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 iF(e,t,r){var n=wr(e);return n.s=tp(n.s,t.s,r),n.e=tp(n.e,t.s,r),n}function rp(e,t){if(e.cRel&&e.c<0)for(e=wr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=wr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=ht(e);return!e.cRel&&e.cRel!=null&&(r=s2e(r)),!e.rRel&&e.rRel!=null&&(r=i2e(r)),r}function Zw(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?"":"$")+Lr(e.s.c)+":"+(e.e.cRel?"":"$")+Lr(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+sn(e.s.r)+":"+(e.e.rRel?"":"$")+sn(e.e.r):rp(e.s,t.biff)+":"+rp(e.e,t.biff)}function V3(e){return parseInt(a2e(e),10)-1}function sn(e){return""+(e+1)}function i2e(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function a2e(e){return e.replace(/\$(\d+)$/,"$1")}function H3(e){for(var t=o2e(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Lr(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 s2e(e){return e.replace(/^([A-Z])/,"$$$1")}function o2e(e){return e.replace(/^\$([A-Z])/,"$1")}function l2e(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ir(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 ht(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 pa(e){var t=e.indexOf(":");return t==-1?{s:Ir(e),e:Ir(e)}:{s:Ir(e.slice(0,t)),e:Ir(e.slice(t+1))}}function wt(e,t){return typeof t>"u"||typeof t=="number"?wt(e.s,e.e):(typeof e!="string"&&(e=ht(e)),typeof t!="string"&&(t=ht(t)),e==t?e:e+":"+t)}function zt(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=e.length;for(r=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===a||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function aF(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Os(e.z,r?Pn(t):t)}catch{}try{return e.w=Os((e.XF||{}).numFmtId||(r?14:0),r?Pn(t):t)}catch{return""+t}}function ul(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"?wl[e.v]||e.v:t==null?aF(e,e.v):aF(e,t))}function Ac(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function lH(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),s=0,o=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var c=typeof n.origin=="string"?Ir(n.origin):n.origin;s=c.r,o=c.c}a["!ref"]||(a["!ref"]="A1:A1")}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var h=zt(a["!ref"]);f.s.c=h.s.c,f.s.r=h.s.r,f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),s==-1&&(f.e.r=s=h.e.r+1)}for(var p=0;p!=t.length;++p)if(t[p]){if(!Array.isArray(t[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var m=0;m!=t[p].length;++m)if(!(typeof t[p][m]>"u")){var g={v:t[p][m]},y=s+p,x=o+m;if(f.s.r>y&&(f.s.r=y),f.s.c>x&&(f.s.c=x),f.e.r<y&&(f.e.r=y),f.e.c<x&&(f.e.c=x),t[p][m]&&typeof t[p][m]=="object"&&!Array.isArray(t[p][m])&&!(t[p][m]instanceof Date))g=t[p][m];else if(Array.isArray(g.v)&&(g.f=t[p][m][1],g.v=g.v[0]),g.v===null)if(g.f)g.t="n";else if(n.nullError)g.t="e",g.v=0;else if(n.sheetStubs)g.t="z";else continue;else typeof g.v=="number"?g.t="n":typeof g.v=="boolean"?g.t="b":g.v instanceof Date?(g.z=n.dateNF||ct[14],n.cellDates?(g.t="d",g.w=Os(g.z,Pn(g.v))):(g.t="n",g.v=Pn(g.v),g.w=Os(g.z,g.v))):g.t="s";if(i)a[y]||(a[y]=[]),a[y][x]&&a[y][x].z&&(g.z=a[y][x].z),a[y][x]=g;else{var _=ht({c:x,r:y});a[_]&&a[_].z&&(g.z=a[_].z),a[_]=g}}}return f.s.c<1e7&&(a["!ref"]=wt(f)),a}function oh(e,t){return lH(null,e,t)}function c2e(e){return e.read_shift(4,"i")}function qs(e,t){return t||(t=Ce(4)),t.write_shift(4,e),t}function Oi(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function Wn(e,t){var r=!1;return t==null&&(r=!0,t=Ce(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 u2e(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function f2e(e,t){return t||(t=Ce(4)),t.write_shift(2,0),t.write_shift(2,0),t}function $3(e,t){var r=e.l,n=e.read_shift(1),i=Oi(e),a=[],s={t:i,h:i};if((n&1)!==0){for(var o=e.read_shift(4),c=0;c!=o;++c)a.push(u2e(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function h2e(e,t){var r=!1;return t==null&&(r=!0,t=Ce(15+4*e.t.length)),t.write_shift(1,0),Wn(e.t,t),r?t.slice(0,t.l):t}var d2e=$3;function p2e(e,t){var r=!1;return t==null&&(r=!0,t=Ce(23+4*e.t.length)),t.write_shift(1,1),Wn(e.t,t),t.write_shift(4,1),f2e({},t),r?t.slice(0,t.l):t}function Ps(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 ef(e,t){return t==null&&(t=Ce(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function tf(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function rf(e,t){return t==null&&(t=Ce(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var m2e=Oi,cH=Wn;function W3(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function dx(e,t){var r=!1;return t==null&&(r=!0,t=Ce(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 g2e=Oi,fT=W3,q3=dx;function G3(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?hx([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):tu(t,0)>>2;return r?i/100:i}function uH(e,t){t==null&&(t=Ce(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:i==(i|0)&&i>=-536870912&&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 fH(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 v2e(e,t){return t||(t=Ce(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 nf=fH,lh=v2e;function Ei(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Hu(e,t){return(t||Ce(8)).write_shift(8,e,"f")}function x2e(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),o=e.read_shift(1),c=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var f=Au[i];f&&(t.rgb=$p(f));break;case 2:t.rgb=$p([s,o,c]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function px(e,t){if(t||(t=Ce(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 y2e(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 _2e(e,t){t||(t=Ce(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}function hH(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function b2e(e){return hH(e,1)}function w2e(e){return hH(e,2)}var X3=2,ra=3,_g=11,sF=12,mx=19,bg=64,S2e=65,E2e=71,T2e=4108,A2e=4126,Hn=80,dH=81,C2e=[Hn,dH],hT={1:{n:"CodePage",t:X3},2:{n:"Category",t:Hn},3:{n:"PresentationFormat",t:Hn},4:{n:"ByteCount",t:ra},5:{n:"LineCount",t:ra},6:{n:"ParagraphCount",t:ra},7:{n:"SlideCount",t:ra},8:{n:"NoteCount",t:ra},9:{n:"HiddenCount",t:ra},10:{n:"MultimediaClipCount",t:ra},11:{n:"ScaleCrop",t:_g},12:{n:"HeadingPairs",t:T2e},13:{n:"TitlesOfParts",t:A2e},14:{n:"Manager",t:Hn},15:{n:"Company",t:Hn},16:{n:"LinksUpToDate",t:_g},17:{n:"CharacterCount",t:ra},19:{n:"SharedDoc",t:_g},22:{n:"HyperlinksChanged",t:_g},23:{n:"AppVersion",t:ra,p:"version"},24:{n:"DigSig",t:S2e},26:{n:"ContentType",t:Hn},27:{n:"ContentStatus",t:Hn},28:{n:"Language",t:Hn},29:{n:"Version",t:Hn},255:{},2147483648:{n:"Locale",t:mx},2147483651:{n:"Behavior",t:mx},1919054434:{}},dT={1:{n:"CodePage",t:X3},2:{n:"Title",t:Hn},3:{n:"Subject",t:Hn},4:{n:"Author",t:Hn},5:{n:"Keywords",t:Hn},6:{n:"Comments",t:Hn},7:{n:"Template",t:Hn},8:{n:"LastAuthor",t:Hn},9:{n:"RevNumber",t:Hn},10:{n:"EditTime",t:bg},11:{n:"LastPrinted",t:bg},12:{n:"CreatedDate",t:bg},13:{n:"ModifiedDate",t:bg},14:{n:"PageCount",t:ra},15:{n:"WordCount",t:ra},16:{n:"CharCount",t:ra},17:{n:"Thumbnail",t:E2e},18:{n:"Application",t:Hn},19:{n:"DocSecurity",t:ra},255:{},2147483648:{n:"Locale",t:mx},2147483651:{n:"Behavior",t:mx},1919054434:{}},oF={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},O2e=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function k2e(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var D2e=k2e([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]),Au=wr(D2e),wl={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},pH={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},pT={"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"},wg={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 Y3(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function P2e(e){var t=Y3();if(!e||!e.match)return t;var r={};if((e.match(Pi)||[]).forEach(function(n){var i=mt(n);switch(i[0].replace(zye,"<")){case"<?xml":break;case"<Types":t.xmlns=i["xmlns"+(i[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[i.Extension]=i.ContentType;break;case"<Override":t[pT[i.ContentType]]!==void 0&&t[pT[i.ContentType]].push(i.PartName);break}}),t.xmlns!==kn.CT)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function mH(e,t){var r=Pye(pT),n=[],i;n[n.length]=ln,n[n.length]=$e("Types",null,{xmlns:kn.CT,"xmlns:xsd":kn.xsd,"xmlns:xsi":kn.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(c){return $e("Default",null,{Extension:c[0],ContentType:c[1]})}));var a=function(c){e[c]&&e[c].length>0&&(i=e[c][0],n[n.length]=$e("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:wg[c][t.bookType]||wg[c].xlsx}))},s=function(c){(e[c]||[]).forEach(function(f){n[n.length]=$e("Override",null,{PartName:(f[0]=="/"?"":"/")+f,ContentType:wg[c][t.bookType]||wg[c].xlsx})})},o=function(c){(e[c]||[]).forEach(function(f){n[n.length]=$e("Override",null,{PartName:(f[0]=="/"?"":"/")+f,ContentType:r[c][0]})})};return a("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Rt={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 Hp(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function np(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(Pi)||[]).forEach(function(i){var a=mt(i);if(a[0]==="<Relationship"){var s={};s.Type=a.Type,s.Target=a.Target,s.Id=a.Id,a.TargetMode&&(s.TargetMode=a.TargetMode);var o=a.TargetMode==="External"?a.Target:Rd(a.Target,t);r[o]=s,n[a.Id]=s}}),r["!id"]=n,r}function v0(e){var t=[ln,$e("Relationships",null,{xmlns:kn.RELS})];return Kr(e["!id"]).forEach(function(r){t[t.length]=$e("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function er(e,t,r,n,i,a){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,[Rt.HLINK,Rt.XPATH,Rt.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}var M2e="application/vnd.oasis.opendocument.spreadsheet";function R2e(e,t){for(var r=j3(e),n,i;n=Vp.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(i=mt(n[0],!1),i.path=="/"&&i.type!==M2e)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}function N2e(e){var t=[ln];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 lF(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 F2e(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 L2e(e){var t=[ln];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(lF(e[r][0],e[r][1])),t.push(F2e("",e[r][0]));return t.push(lF("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function gH(){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 '+ox.version+"</meta:generator></office:meta></office:document-meta>"}var Es=[["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"]],I2e=function(){for(var e=new Array(Es.length),t=0;t<Es.length;++t){var r=Es[t],n="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function vH(e){var t={};e=lr(e);for(var r=0;r<Es.length;++r){var n=Es[r],i=e.match(I2e[r]);i!=null&&i.length>0&&(t[n[1]]=Ut(i[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=br(t[n[1]]))}return t}function Qw(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=rr(t),n[n.length]=r?$e(e,t,r):ii(e,t))}function xH(e,t){var r=t||{},n=[ln,$e("cp:coreProperties",null,{"xmlns:cp":kn.CORE_PROPS,"xmlns:dc":kn.dc,"xmlns:dcterms":kn.dcterms,"xmlns:dcmitype":kn.dcmitype,"xmlns:xsi":kn.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&Qw("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:uT(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&Qw("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:uT(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=Es.length;++a){var s=Es[a],o=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&Qw(s[0],o,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Cu=[["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"]],yH=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function _H(e,t,r,n){var i=[];if(typeof e=="string")i=QN(e,n);else for(var a=0;a<e.length;++a)i=i.concat(e[a].map(function(h){return{v:h}}));var s=typeof t=="string"?QN(t,n).map(function(h){return h.v}):t,o=0,c=0;if(s.length>0)for(var f=0;f!==i.length;f+=2){switch(c=+i[f+1].v,i[f].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=c,r.SheetNames=s.slice(o,o+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=c,r.DefinedNames=s.slice(o,o+c);break;case"Charts":case"Diagramme":r.Chartsheets=c,r.ChartNames=s.slice(o,o+c);break}o+=c}}function B2e(e,t,r){var n={};return t||(t={}),e=lr(e),Cu.forEach(function(i){var a=(e.match(Up(i[0]))||[])[1];switch(i[2]){case"string":a&&(t[i[1]]=Ut(a));break;case"bool":t[i[1]]=a==="true";break;case"raw":var s=e.match(new RegExp("<"+i[0]+"[^>]*>([\\s\\S]*?)</"+i[0]+">"));s&&s.length>0&&(n[i[1]]=s[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&_H(n.HeadingPairs,n.TitlesOfParts,t,r),t}function bH(e){var t=[],r=$e;return e||(e={}),e.Application="SheetJS",t[t.length]=ln,t[t.length]=$e("Properties",null,{xmlns:kn.EXT_PROPS,"xmlns:vt":kn.vt}),Cu.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=rr(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>"+rr(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var j2e=/<[^>]+>[^<]*/g;function U2e(e,t){var r={},n="",i=e.match(j2e);if(i)for(var a=0;a!=i.length;++a){var s=i[a],o=mt(s);switch(o[0]){case"<?xml":break;case"<Properties":break;case"<property":n=Ut(o.name);break;case"</property>":n=null;break;default:if(s.indexOf("<vt:")===0){var c=s.split(">"),f=c[0].slice(4),h=c[1];switch(f){case"lpstr":case"bstr":case"lpwstr":r[n]=Ut(h);break;case"bool":r[n]=_r(h);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(h,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(h);break;case"filetime":case"date":r[n]=br(h);break;case"cy":case"error":r[n]=Ut(h);break;default:if(f.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",s,f,c)}}else if(s.slice(0,2)!=="</"){if(t.WTF)throw new Error(s)}}}return r}function wH(e){var t=[ln,$e("Properties",null,{xmlns:kn.CUST_PROPS,"xmlns:vt":kn.vt})];if(!e)return t.join("");var r=1;return Kr(e).forEach(function(i){++r,t[t.length]=$e("property",Yye(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:rr(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var mT={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"},Jw;function z2e(e,t,r){Jw||(Jw=my(mT)),t=Jw[t]||t,e[t]=r}function V2e(e,t){var r=[];return Kr(mT).map(function(n){for(var i=0;i<Es.length;++i)if(Es[i][1]==n)return Es[i];for(i=0;i<Cu.length;++i)if(Cu[i][1]==n)return Cu[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(ii(mT[n[1]]||n[1],i))}}),$e("DocumentProperties",r.join(""),{xmlns:Da.o})}function H2e(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Kr(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var s=0;s<Es.length;++s)if(a==Es[s][1])return;for(s=0;s<Cu.length;++s)if(a==Cu[s][1])return;for(s=0;s<r.length;++s)if(a==r[s])return;var o=e[a],c="string";typeof o=="number"?(c="float",o=String(o)):o===!0||o===!1?(c="boolean",o=o?"1":"0"):o=String(o),i.push($e(XN(a),o,{"dt:dt":c}))}}),t&&Kr(t).forEach(function(a){if(Object.prototype.hasOwnProperty.call(t,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var s=t[a],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s instanceof Date?(o="dateTime.tz",s=s.toISOString()):s=String(s),i.push($e(XN(a),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+Da.o+'">'+i.join("")+"</"+n+">"}function K3(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function $2e(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 a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var s=Ce(8);return s.write_shift(4,n),s.write_shift(4,i),s}function SH(e,t,r){var n=e.l,i=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return i}function EH(e,t,r){var n=e.read_shift(0,"lpwstr");return n}function TH(e,t,r){return t===31?EH(e):SH(e,t,r)}function gT(e,t,r){return TH(e,t,r===!1?0:4)}function W2e(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return TH(e,t,0)}function q2e(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var i=e.l;r[n]=e.read_shift(0,"lpwstr").replace(Gi,""),e.l-i&2&&(e.l+=2)}return r}function G2e(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(Gi,"");return r}function X2e(e){var t=e.l,r=gx(e,dH);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=gx(e,ra);return[r,n]}function Y2e(e){for(var t=e.read_shift(4),r=[],n=0;n<t/2;++n)r.push(X2e(e));return r}function cF(e,t){for(var r=e.read_shift(4),n={},i=0;i!=r;++i){var a=e.read_shift(4),s=e.read_shift(4);n[a]=e.read_shift(s,t===1200?"utf16le":"utf8").replace(Gi,"").replace(Md,"!"),t===1200&&s%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>3<<2),n}function AH(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function K2e(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function gx(e,t,r){var n=e.read_shift(2),i,a=r||{};if(e.l+=2,t!==sF&&n!==t&&C2e.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===sF?n:t){case 2:return i=e.read_shift(2,"i"),a.raw||(e.l+=2),i;case 3:return i=e.read_shift(4,"i"),i;case 11:return e.read_shift(4)!==0;case 19:return i=e.read_shift(4),i;case 30:return SH(e,n,4).replace(Gi,"");case 31:return EH(e);case 64:return K3(e);case 65:return AH(e);case 71:return K2e(e);case 80:return gT(e,n,!a.raw).replace(Gi,"");case 81:return W2e(e,n).replace(Gi,"");case 4108:return Y2e(e);case 4126:case 4127:return n==4127?q2e(e):G2e(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function uF(e,t){var r=Ce(4),n=Ce(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Ce(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=$2e(t);break;case 31:case 80:for(n=Ce(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 $n([r,n])}function fF(e,t){var r=e.l,n=e.read_shift(4),i=e.read_shift(4),a=[],s=0,o=0,c=-1,f={};for(s=0;s!=i;++s){var h=e.read_shift(4),p=e.read_shift(4);a[s]=[h,p+r]}a.sort(function(T,S){return T[1]-S[1]});var m={};for(s=0;s!=i;++s){if(e.l!==a[s][1]){var g=!0;if(s>0&&t)switch(t[a[s-1][0]].t){case 2:e.l+2===a[s][1]&&(e.l+=2,g=!1);break;case 80:e.l<=a[s][1]&&(e.l=a[s][1],g=!1);break;case 4108:e.l<=a[s][1]&&(e.l=a[s][1],g=!1);break}if((!t||s==0)&&e.l<=a[s][1]&&(g=!1,e.l=a[s][1]),g)throw new Error("Read Error: Expected address "+a[s][1]+" at "+e.l+" :"+s)}if(t){var y=t[a[s][0]];if(m[y.n]=gx(e,y.t,{raw:!0}),y.p==="version"&&(m[y.n]=String(m[y.n]>>16)+"."+("0000"+String(m[y.n]&65535)).slice(-4)),y.n=="CodePage")switch(m[y.n]){case 0:m[y.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Hs(o=m[y.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+m[y.n])}}else if(a[s][0]===1){if(o=m.CodePage=gx(e,X3),Hs(o),c!==-1){var x=e.l;e.l=a[c][1],f=cF(e,o),e.l=x}}else if(a[s][0]===0){if(o===0){c=s,e.l=a[s+1][1];continue}f=cF(e,o)}else{var _=f[a[s][0]],w;switch(e[e.l]){case 65:e.l+=4,w=AH(e);break;case 30:e.l+=4,w=gT(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,w=gT(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,w=e.read_shift(4,"i");break;case 19:e.l+=4,w=e.read_shift(4);break;case 5:e.l+=4,w=e.read_shift(8,"f");break;case 11:e.l+=4,w=en(e,4);break;case 64:e.l+=4,w=br(K3(e));break;default:throw new Error("unparsed value: "+e[e.l])}m[_]=w}}return e.l=r+n,m}var CH=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Z2e(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 hF(e,t,r){var n=Ce(8),i=[],a=[],s=8,o=0,c=Ce(8),f=Ce(8);if(c.write_shift(4,2),c.write_shift(4,1200),f.write_shift(4,1),a.push(c),i.push(f),s+=8+c.length,!t){f=Ce(8),f.write_shift(4,0),i.unshift(f);var h=[Ce(4)];for(h[0].write_shift(4,e.length),o=0;o<e.length;++o){var p=e[o][0];for(c=Ce(8+2*(p.length+1)+(p.length%2?0:2)),c.write_shift(4,o+2),c.write_shift(4,p.length+1),c.write_shift(0,p,"dbcs");c.l!=c.length;)c.write_shift(1,0);h.push(c)}c=$n(h),a.unshift(c),s+=8+c.length}for(o=0;o<e.length;++o)if(!(t&&!t[e[o][0]])&&!(CH.indexOf(e[o][0])>-1||yH.indexOf(e[o][0])>-1)&&e[o][1]!=null){var m=e[o][1],g=0;if(t){g=+t[e[o][0]];var y=r[g];if(y.p=="version"&&typeof m=="string"){var x=m.split(".");m=(+x[0]<<16)+(+x[1]||0)}c=uF(y.t,m)}else{var _=Z2e(m);_==-1&&(_=31,m=String(m)),c=uF(_,m)}a.push(c),f=Ce(8),f.write_shift(4,t?g:2+o),i.push(f),s+=8+c.length}var w=8*(a.length+1);for(o=0;o<a.length;++o)i[o].write_shift(4,w),w+=a[o].length;return n.write_shift(4,s),n.write_shift(4,a.length),$n([n].concat(i).concat(a))}function dF(e,t,r){var n=e.content;if(!n)return{};ni(n,0);var i,a,s,o,c=0;n.chk("feff","Byte Order: "),n.read_shift(2);var f=n.read_shift(4),h=n.read_shift(16);if(h!==it.utils.consts.HEADER_CLSID&&h!==r)throw new Error("Bad PropertySet CLSID "+h);if(i=n.read_shift(4),i!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(a=n.read_shift(16),o=n.read_shift(4),i===1&&o!==n.l)throw new Error("Length mismatch: "+o+" !== "+n.l);i===2&&(s=n.read_shift(16),c=n.read_shift(4));var p=fF(n,t),m={SystemIdentifier:f};for(var g in p)m[g]=p[g];if(m.FMTID=a,i===1)return m;if(c-n.l==2&&(n.l+=2),n.l!==c)throw new Error("Length mismatch 2: "+n.l+" !== "+c);var y;try{y=fF(n,null)}catch{}for(g in y)m[g]=y[g];return m.FMTID=[a,s],m}function pF(e,t,r,n,i,a){var s=Ce(i?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,it.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,i?68:48);var c=hF(e,r,n);if(o.push(c),i){var f=hF(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+c.length),o.push(f)}return $n(o)}function Wl(e,t){return e.read_shift(t),null}function Q2e(e,t){t||(t=Ce(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function J2e(e,t,r){for(var n=[],i=e.l+t;e.l<i;)n.push(r(e,i-e.l));if(i!==e.l)throw new Error("Slurp error");return n}function en(e,t){return e.read_shift(t)===1}function Vi(e,t){return t||(t=Ce(2)),t.write_shift(2,+!!e),t}function mn(e){return e.read_shift(2,"u")}function ps(e,t){return t||(t=Ce(2)),t.write_shift(2,e),t}function OH(e,t){return J2e(e,t,mn)}function e_e(e){var t=e.read_shift(1),r=e.read_shift(1);return r===1?t:t===1}function kH(e,t,r){return r||(r=Ce(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function Am(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 a=e.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return s}function t_e(e){var t=e.read_shift(2),r=e.read_shift(1),n=r&4,i=r&8,a=1+(r&1),s=0,o,c={};i&&(s=e.read_shift(2)),n&&(o=e.read_shift(4));var f=a==2?"dbcs-cont":"sbcs-cont",h=t===0?"":e.read_shift(t,f);return i&&(e.l+=4*s),n&&(e.l+=o),c.t=h,i||(c.raw="<t>"+c.t+"</t>",c.r=c.t),c}function r_e(e){var t=e.t||"",r=Ce(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Ce(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return $n(i)}function $u(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 Cm(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):$u(e,n,r)}function af(e,t,r){if(r.biff>5)return Cm(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 DH(e,t,r){return r||(r=Ce(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function n_e(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function i_e(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var i=e.read_shift((n?t-24:t)>>1,"utf16le").replace(Gi,"");return n&&(e.l+=24),i}function a_e(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(i===0)return r+n.replace(/\\/g,"/");var a=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var s=e.read_shift(a>>1,"utf16le").replace(Gi,"");return r+s}function s_e(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return i_e(e);case"0303000000000000c000000000000046":return a_e(e);default:throw new Error("Unsupported Moniker "+r)}}function Sg(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(Gi,""):"";return r}function mF(e,t){t||(t=Ce(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 o_e(e,t){var r=e.l+t,n=e.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var i=e.read_shift(2);e.l+=2;var a,s,o,c,f="",h,p;i&16&&(a=Sg(e,r-e.l)),i&128&&(s=Sg(e,r-e.l)),(i&257)===257&&(o=Sg(e,r-e.l)),(i&257)===1&&(c=s_e(e,r-e.l)),i&8&&(f=Sg(e,r-e.l)),i&32&&(h=e.read_shift(16)),i&64&&(p=K3(e)),e.l=r;var m=s||o||c||"";m&&f&&(m+="#"+f),m||(m="#"+f),i&2&&m.charAt(0)=="/"&&m.charAt(1)!="/"&&(m="file://"+m);var g={Target:m};return h&&(g.guid=h),p&&(g.time=p),a&&(g.Tooltip=a),g}function l_e(e){var t=Ce(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)t.write_shift(4,s[r]);if(a==28)n=n.slice(1),mF(n,t);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));var o=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(o.length+1)),r=0;r<o.length;++r)t.write_shift(2,o.charCodeAt(r));t.write_shift(2,0),a&8&&mF(i>-1?n.slice(i+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));for(var c=0;n.slice(c*3,c*3+3)=="../"||n.slice(c*3,c*3+3)=="..\\";)++c;for(t.write_shift(2,c),t.write_shift(4,n.length-3*c+1),r=0;r<n.length-3*c;++r)t.write_shift(1,n.charCodeAt(r+3*c)&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 PH(e){var t=e.read_shift(1),r=e.read_shift(1),n=e.read_shift(1),i=e.read_shift(1);return[t,r,n,i]}function MH(e,t){var r=PH(e);return r[3]=0,r}function Eo(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return{r:t,c:r,ixfe:n}}function Wu(e,t,r,n){return n||(n=Ce(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function c_e(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}function u_e(e,t,r){return t===0?"":af(e,t,r)}function f_e(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function RH(e){var t=e.read_shift(2),r=G3(e);return[t,r]}function h_e(e,t,r){e.l+=4,t-=4;var n=e.l+t,i=Am(e,t,r),a=e.read_shift(2);if(n-=e.l,a!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+a);return e.l+=a,i}function xy(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 NH(e,t){return t||(t=Ce(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 FH(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),i=e.read_shift(1);return{s:{c:n,r:t},e:{c:i,r}}}var d_e=FH;function LH(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function p_e(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function m_e(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function hi(e){e.l+=2,e.l+=e.read_shift(2)}var g_e={0:hi,4:hi,5:hi,6:hi,7:m_e,8:hi,9:hi,10:hi,11:hi,12:hi,13:p_e,14:hi,15:hi,16:hi,17:hi,18:hi,19:hi,20:hi,21:LH};function v_e(e,t){for(var r=e.l+t,n=[];e.l<r;){var i=e.read_shift(2);e.l-=2;try{n.push(g_e[i](e,r-e.l))}catch{return e.l=r,n}}return e.l!=r&&(e.l=r),n}function Eg(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),t-=2,t>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function Z3(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 a=Ce(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function x_e(e,t){return t===0||e.read_shift(2),1200}function y_e(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,i=af(e,0,r);return e.read_shift(t+n-e.l),i}function __e(e,t){var r=!t||t.biff==8,n=Ce(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 b_e(e,t,r){var n=r&&r.biff==8||t==2?e.read_shift(2):(e.l+=t,0);return{fDialog:n&16,fBelow:n&64,fRight:n&128}}function w_e(e,t,r){var n=e.read_shift(4),i=e.read_shift(1)&3,a=e.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule";break}var s=Am(e,0,r);return s.length===0&&(s="Sheet1"),{pos:n,hs:i,dt:a,name:s}}function S_e(e,t){var r=!t||t.biff>=8?2:1,n=Ce(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 E_e(e,t){for(var r=e.l+t,n=e.read_shift(4),i=e.read_shift(4),a=[],s=0;s!=i&&e.l<r;++s)a.push(t_e(e));return a.Count=n,a.Unique=i,a}function T_e(e,t){var r=Ce(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=r_e(e[i]);var a=$n([r].concat(n));return a.parts=[r.length].concat(n.map(function(s){return s.length})),a}function A_e(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}function C_e(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var n=e.read_shift(1);return e.l+=3,n&7&&(t.level=n&7),n&32&&(t.hidden=!0),n&64&&(t.hpt=r/20),t}function O_e(e){var t=c_e(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var r=e.read_shift(4);return r!==0}function k_e(e){return e.read_shift(2),e.read_shift(4)}function gF(e,t,r){var n=0;r&&r.biff==2||(n=e.read_shift(2));var i=e.read_shift(2);r&&r.biff==2&&(n=1-(i>>15),i&=32767);var a={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[a,i]}function D_e(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),o=e.read_shift(2),c=e.read_shift(2),f=e.read_shift(2);return{Pos:[t,r],Dim:[n,i],Flags:a,CurTab:s,FirstTab:o,Selected:c,TabRatio:f}}function P_e(){var e=Ce(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 M_e(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function R_e(e){var t=Ce(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 N_e(){}function F_e(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=Am(e,0,r),n}function L_e(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,a=Ce(i);return a.write_shift(2,e.sz*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}function I_e(e){var t=Eo(e);return t.isst=e.read_shift(4),t}function B_e(e,t,r,n){var i=Ce(10);return Wu(e,t,n,i),i.write_shift(4,r),i}function j_e(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,i=Eo(e);r.biff==2&&e.l++;var a=Cm(e,n-e.l,r);return i.val=a,i}function U_e(e,t,r,n,i){var a=!i||i.biff==8,s=Ce(8+ +a+(1+a)*r.length);return Wu(e,t,n,s),s.write_shift(2,r.length),a&&s.write_shift(1,1),s.write_shift((1+a)*r.length,r,a?"utf16le":"sbcs"),s}function z_e(e,t,r){var n=e.read_shift(2),i=af(e,0,r);return[n,i]}function V_e(e,t,r,n){var i=r&&r.biff==5;n||(n=Ce(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 a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}var H_e=af;function vF(e,t,r){var n=e.l+t,i=r.biff==8||!r.biff?4:2,a=e.read_shift(i),s=e.read_shift(i),o=e.read_shift(2),c=e.read_shift(2);return e.l=n,{s:{r:a,c:o},e:{r:s,c}}}function $_e(e,t){var r=t.biff==8||!t.biff?4:2,n=Ce(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 W_e(e){var t=e.read_shift(2),r=e.read_shift(2),n=RH(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function q_e(e,t){for(var r=e.l+t-2,n=e.read_shift(2),i=e.read_shift(2),a=[];e.l<r;)a.push(RH(e));if(e.l!==r)throw new Error("MulRK read error");var s=e.read_shift(2);if(a.length!=s-i+1)throw new Error("MulRK length mismatch");return{r:n,c:i,C:s,rkrec:a}}function G_e(e,t){for(var r=e.l+t-2,n=e.read_shift(2),i=e.read_shift(2),a=[];e.l<r;)a.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var s=e.read_shift(2);if(a.length!=s-i+1)throw new Error("MulBlank length mismatch");return{r:n,c:i,C:s,ixfe:a}}function X_e(e,t,r,n){var i={},a=e.read_shift(4),s=e.read_shift(4),o=e.read_shift(4),c=e.read_shift(2);return i.patternType=O2e[o>>26],n.cellStyles&&(i.alc=a&7,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=s&15,i.dgRight=s>>4&15,i.dgTop=s>>8&15,i.dgBottom=s>>12&15,i.icvLeft=s>>16&127,i.icvRight=s>>23&127,i.grbitDiag=s>>30&3,i.icvTop=o&127,i.icvBottom=o>>7&127,i.icvDiag=o>>14&127,i.dgDiag=o>>21&15,i.icvFore=c&127,i.icvBack=c>>7&127,i.fsxButton=c>>14&1),i}function Y_e(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,t-=6,n.data=X_e(e,t,n.fStyle,r),n}function xF(e,t,r,n){var i=r&&r.biff==5;n||(n=Ce(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 a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function K_e(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function Z_e(e){var t=Ce(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function yF(e,t,r){var n=Eo(e);(r.biff==2||t==9)&&++e.l;var i=e_e(e);return n.val=i,n.t=i===!0||i===!1?"b":"e",n}function Q_e(e,t,r,n,i,a){var s=Ce(8);return Wu(e,t,n,s),kH(r,a,s),s}function J_e(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=Eo(e),i=Ei(e);return n.val=i,n}function ebe(e,t,r,n){var i=Ce(14);return Wu(e,t,n,i),Hu(r,i),i}var _F=u_e;function tbe(e,t,r){var n=e.l+t,i=e.read_shift(2),a=e.read_shift(2);if(r.sbcch=a,a==1025||a==14849)return[a,i];if(a<1||a>255)throw new Error("Unexpected SupBook type: "+a);for(var s=$u(e,a),o=[];n>e.l;)o.push(Cm(e));return[a,i,s,o]}function bF(e,t,r){var n=e.read_shift(2),i,a={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(i=h_e(e,t-2,r)),a.body=i||e.read_shift(t-2),typeof i=="string"&&(a.Name=i),a}var rbe=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function wF(e,t,r){var n=e.l+t,i=e.read_shift(2),a=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(r&&r.biff==2?1:2),c=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),c=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var f=$u(e,s,r);i&32&&(f=rbe[f.charCodeAt(0)]);var h=n-e.l;r&&r.biff==2&&--h;var p=n==e.l||o===0||!(h>0)?[]:vTe(e,h,r,o);return{chKey:a,Name:f,itab:c,rgce:p}}function IH(e,t,r){if(r.biff<8)return nbe(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(f_e(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function nbe(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=Am(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function ibe(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),i=e.read_shift(2),a=$u(e,n,r),s=$u(e,i,r);return[a,s]}function abe(e,t,r){var n=FH(e);e.l++;var i=e.read_shift(1);return t-=8,[xTe(e,t,r),i,n]}function SF(e,t,r){var n=d_e(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,mTe(e,t,r)]}function sbe(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function obe(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),o=af(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:i},o,s,a]}}function lbe(e,t,r){return obe(e,t,r)}function cbe(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(xy(e));return r}function ube(e){var t=Ce(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)NH(e[r],t);return t}function fbe(e,t,r){if(r&&r.biff<8)return dbe(e,t,r);var n=LH(e),i=v_e(e,t-22,n[1]);return{cmo:n,ft:i}}var hbe={8:function(e,t){var r=e.l+t;e.l+=10;var n=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=r,{fmt:n}}};function dbe(e,t,r){e.l+=4;var n=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var s=[];return s.push((hbe[n]||ki)(e,t,r)),{cmo:[i,n,a],ft:s}}function pbe(e,t,r){var n=e.l,i="";try{e.l+=4;var a=(r.lastobj||{cmo:[0,0]}).cmo[1],s;[0,5,7,11,12,14].indexOf(a)==-1?e.l+=6:s=n_e(e,6,r);var o=e.read_shift(2);e.read_shift(2),mn(e,2);var c=e.read_shift(2);e.l+=c;for(var f=1;f<e.lens.length-1;++f){if(e.l-n!=e.lens[f])throw new Error("TxO: bad continue record");var h=e[e.l],p=$u(e,e.lens[f+1]-e.lens[f]-1);if(i+=p,i.length>=(h?o:2*o))break}if(i.length!==o&&i.length!==o*2)throw new Error("cchText: "+o+" != "+i.length);return e.l=n+t,{t:i}}catch{return e.l=n+t,{t:i}}}function mbe(e,t){var r=xy(e);e.l+=16;var n=o_e(e,t-24);return[r,n]}function gbe(e){var t=Ce(24),r=Ir(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 $n([t,l_e(e[1])])}function vbe(e,t){e.read_shift(2);var r=xy(e),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(Gi,""),[r,n]}function xbe(e){var t=e[1].Tooltip,r=Ce(10+2*(t.length+1));r.write_shift(2,2048);var n=Ir(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 ybe(e){var t=[0,0],r;return r=e.read_shift(2),t[0]=oF[r]||r,r=e.read_shift(2),t[1]=oF[r]||r,t}function _be(e){return e||(e=Ce(4)),e.write_shift(2,1),e.write_shift(2,1),e}function bbe(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(MH(e));return r}function wbe(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(MH(e));return r}function Sbe(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function BH(e,t,r){if(!r.cellStyles)return ki(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),c=e.read_shift(2);n==2&&(e.l+=2);var f={s:i,e:a,w:s,ixfe:o,flags:c};return(r.biff>=5||!r.biff)&&(f.level=c>>8&7),f}function Ebe(e,t){var r=Ce(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 Tbe(e,t){var r={};return t<32||(e.l+=16,r.header=Ei(e),r.footer=Ei(e),e.l+=2),r}function Abe(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var i=e.read_shift(1);return e.l+=3,i&16&&(n.area=!0),n}function Cbe(e){for(var t=Ce(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}var Obe=Eo,kbe=OH,Dbe=Cm;function Pbe(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,i}function Mbe(e,t,r){r.biffguess&&r.biff==5&&(r.biff=2);var n=Eo(e);++e.l;var i=af(e,t-7,r);return n.t="str",n.val=i,n}function Rbe(e){var t=Eo(e);++e.l;var r=Ei(e);return t.t="n",t.val=r,t}function Nbe(e,t,r){var n=Ce(15);return Pm(n,e,t),n.write_shift(8,r,"f"),n}function Fbe(e){var t=Eo(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}function Lbe(e,t,r){var n=Ce(9);return Pm(n,e,t),n.write_shift(2,r),n}function Ibe(e){var t=e.read_shift(1);return t===0?(e.l++,""):e.read_shift(t,"sbcs-cont")}function Bbe(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function jbe(e,t,r){var n=e.l+t,i=Eo(e),a=e.read_shift(2),s=$u(e,a,r);return e.l=n,i.t="str",i.val=s,i}var Ube=[2,3,48,49,131,139,140,245],vT=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=my({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(o,c){var f=[],h=mc(1);switch(c.type){case"base64":h=Fa(Wa(o));break;case"binary":h=Fa(o);break;case"buffer":case"array":h=o;break}ni(h,0);var p=h.read_shift(1),m=!!(p&136),g=!1,y=!1;switch(p){case 2:break;case 3:break;case 48:g=!0,m=!0;break;case 49:g=!0,m=!0;break;case 131:break;case 139:break;case 140:y=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+p.toString(16))}var x=0,_=521;p==2&&(x=h.read_shift(2)),h.l+=3,p!=2&&(x=h.read_shift(4)),x>1048576&&(x=1e6),p!=2&&(_=h.read_shift(2));var w=h.read_shift(2),T=c.codepage||1252;p!=2&&(h.l+=16,h.read_shift(1),h[h.l]!==0&&(T=e[h[h.l]]),h.l+=1,h.l+=2),y&&(h.l+=36);for(var S=[],O={},C=Math.min(h.length,p==2?521:_-10-(g?264:0)),k=y?32:11;h.l<C&&h[h.l]!=13;)switch(O={},O.name=Ip.utils.decode(T,h.slice(h.l,h.l+k)).replace(/[\u0000\r\n].*$/g,""),h.l+=k,O.type=String.fromCharCode(h.read_shift(1)),p!=2&&!y&&(O.offset=h.read_shift(4)),O.len=h.read_shift(1),p==2&&(O.offset=h.read_shift(2)),O.dec=h.read_shift(1),O.name.length&&S.push(O),p!=2&&(h.l+=y?13:14),O.type){case"B":(!g||O.len!=8)&&c.WTF&&console.log("Skipping "+O.name+":"+O.type);break;case"G":case"P":c.WTF&&console.log("Skipping "+O.name+":"+O.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: "+O.type)}if(h[h.l]!==13&&(h.l=_-1),h.read_shift(1)!==13)throw new Error("DBF Terminator not found "+h.l+" "+h[h.l]);h.l=_;var D=0,M=0;for(f[0]=[],M=0;M!=S.length;++M)f[0][M]=S[M].name;for(;x-- >0;){if(h[h.l]===42){h.l+=w;continue}for(++h.l,f[++D]=[],M=0,M=0;M!=S.length;++M){var N=h.slice(h.l,h.l+S[M].len);h.l+=S[M].len,ni(N,0);var z=Ip.utils.decode(T,N);switch(S[M].type){case"C":z.trim().length&&(f[D][M]=z.replace(/\s+$/,""));break;case"D":z.length===8?f[D][M]=new Date(+z.slice(0,4),+z.slice(4,6)-1,+z.slice(6,8)):f[D][M]=z;break;case"F":f[D][M]=parseFloat(z.trim());break;case"+":case"I":f[D][M]=y?N.read_shift(-4,"i")^2147483648:N.read_shift(4,"i");break;case"L":switch(z.trim().toUpperCase()){case"Y":case"T":f[D][M]=!0;break;case"N":case"F":f[D][M]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+z+"|")}break;case"M":if(!m)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));f[D][M]="##MEMO##"+(y?parseInt(z.trim(),10):N.read_shift(4));break;case"N":z=z.replace(/\u0000/g,"").trim(),z&&z!="."&&(f[D][M]=+z||0);break;case"@":f[D][M]=new Date(N.read_shift(-8,"f")-621356832e5);break;case"T":f[D][M]=new Date((N.read_shift(4)-2440588)*864e5+N.read_shift(4));break;case"Y":f[D][M]=N.read_shift(4,"i")/1e4+N.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":f[D][M]=-N.read_shift(-8,"f");break;case"B":if(g&&S[M].len==8){f[D][M]=N.read_shift(8,"f");break}case"G":case"P":N.l+=S[M].len;break;case"0":if(S[M].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+S[M].type)}}}if(p!=2&&h.l<h.length&&h[h.l++]!=26)throw new Error("DBF EOF Marker missing "+(h.l-1)+" of "+h.length+" "+h[h.l-1].toString(16));return c&&c.sheetRows&&(f=f.slice(0,c.sheetRows)),c.DBF=S,f}function n(o,c){var f=c||{};f.dateNF||(f.dateNF="yyyymmdd");var h=oh(r(o,f),f);return h["!cols"]=f.DBF.map(function(p){return{wch:p.len,DBF:p}}),delete f.DBF,h}function i(o,c){try{return Ac(n(o,c),c)}catch(f){if(c&&c.WTF)throw f}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,c){var f=c||{};if(+f.codepage>=0&&Hs(+f.codepage),f.type=="string")throw new Error("Cannot write DBF to JS string");var h=fa(),p=yx(o,{header:1,raw:!0,cellDates:!0}),m=p[0],g=p.slice(1),y=o["!cols"]||[],x=0,_=0,w=0,T=1;for(x=0;x<m.length;++x){if(((y[x]||{}).DBF||{}).name){m[x]=y[x].DBF.name,++w;continue}if(m[x]!=null){if(++w,typeof m[x]=="number"&&(m[x]=m[x].toString(10)),typeof m[x]!="string")throw new Error("DBF Invalid column name "+m[x]+" |"+typeof m[x]+"|");if(m.indexOf(m[x])!==x){for(_=0;_<1024;++_)if(m.indexOf(m[x]+"_"+_)==-1){m[x]+="_"+_;break}}}}var S=zt(o["!ref"]),O=[],C=[],k=[];for(x=0;x<=S.e.c-S.s.c;++x){var D="",M="",N=0,z=[];for(_=0;_<g.length;++_)g[_][x]!=null&&z.push(g[_][x]);if(z.length==0||m[x]==null){O[x]="?";continue}for(_=0;_<z.length;++_){switch(typeof z[_]){case"number":M="B";break;case"string":M="C";break;case"boolean":M="L";break;case"object":M=z[_]instanceof Date?"D":"C";break;default:M="C"}N=Math.max(N,String(z[_]).length),D=D&&D!=M?"C":M}N>250&&(N=250),M=((y[x]||{}).DBF||{}).type,M=="C"&&y[x].DBF.len>N&&(N=y[x].DBF.len),D=="B"&&M=="N"&&(D="N",k[x]=y[x].DBF.dec,N=y[x].DBF.len),C[x]=D=="C"||M=="N"?N:a[D]||0,T+=C[x],O[x]=D}var H=h.next(32);for(H.write_shift(4,318902576),H.write_shift(4,g.length),H.write_shift(2,296+32*w),H.write_shift(2,T),x=0;x<4;++x)H.write_shift(4,0);for(H.write_shift(4,0|(+t[CV]||3)<<8),x=0,_=0;x<m.length;++x)if(m[x]!=null){var B=h.next(32),te=(m[x].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);B.write_shift(1,te,"sbcs"),B.write_shift(1,O[x]=="?"?"C":O[x],"sbcs"),B.write_shift(4,_),B.write_shift(1,C[x]||a[O[x]]||0),B.write_shift(1,k[x]||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),_+=C[x]||a[O[x]]||0}var ne=h.next(264);for(ne.write_shift(4,13),x=0;x<65;++x)ne.write_shift(4,0);for(x=0;x<g.length;++x){var le=h.next(T);for(le.write_shift(1,0),_=0;_<m.length;++_)if(m[_]!=null)switch(O[_]){case"L":le.write_shift(1,g[x][_]==null?63:g[x][_]?84:70);break;case"B":le.write_shift(8,g[x][_]||0,"f");break;case"N":var Q="0";for(typeof g[x][_]=="number"&&(Q=g[x][_].toFixed(k[_]||0)),w=0;w<C[_]-Q.length;++w)le.write_shift(1,32);le.write_shift(1,Q,"sbcs");break;case"D":g[x][_]?(le.write_shift(4,("0000"+g[x][_].getFullYear()).slice(-4),"sbcs"),le.write_shift(2,("00"+(g[x][_].getMonth()+1)).slice(-2),"sbcs"),le.write_shift(2,("00"+g[x][_].getDate()).slice(-2),"sbcs")):le.write_shift(8,"00000000","sbcs");break;case"C":var ee=String(g[x][_]!=null?g[x][_]:"").slice(0,C[_]);for(le.write_shift(1,ee,"sbcs"),w=0;w<C[_]-ee.length;++w)le.write_shift(1,32);break}}return h.next(1).write_shift(1,26),h.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}}(),jH=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("+Kr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(m,g){var y=e[g];return typeof y=="number"?NN(y):y},n=function(m,g,y){var x=g.charCodeAt(0)-32<<4|y.charCodeAt(0)-48;return x==59?m:NN(x)};e["|"]=254;function i(m,g){switch(g.type){case"base64":return a(Wa(m),g);case"binary":return a(m,g);case"buffer":return a(kt&&Buffer.isBuffer(m)?m.toString("binary"):Tc(m),g);case"array":return a(Vu(m),g)}throw new Error("Unrecognized type "+g.type)}function a(m,g){var y=m.split(/[\n\r]+/),x=-1,_=-1,w=0,T=0,S=[],O=[],C=null,k={},D=[],M=[],N=[],z=0,H;for(+g.codepage>=0&&Hs(+g.codepage);w!==y.length;++w){z=0;var B=y[w].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),te=B.replace(/;;/g,"\0").split(";").map(function(X){return X.replace(/\u0000/g,";")}),ne=te[0],le;if(B.length>0)switch(ne){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":te[1].charAt(0)=="P"&&O.push(B.slice(3).replace(/;;/g,";"));break;case"C":var Q=!1,ee=!1,ce=!1,J=!1,R=-1,se=-1;for(T=1;T<te.length;++T)switch(te[T].charAt(0)){case"A":break;case"X":_=parseInt(te[T].slice(1))-1,ee=!0;break;case"Y":for(x=parseInt(te[T].slice(1))-1,ee||(_=0),H=S.length;H<=x;++H)S[H]=[];break;case"K":le=te[T].slice(1),le.charAt(0)==='"'?le=le.slice(1,le.length-1):le==="TRUE"?le=!0:le==="FALSE"?le=!1:isNaN(Ws(le))?isNaN(j0(le).getDate())||(le=br(le)):(le=Ws(le),C!==null&&ah(C)&&(le=vy(le))),Q=!0;break;case"E":J=!0;var F=x0(te[T].slice(1),{r:x,c:_});S[x][_]=[S[x][_],F];break;case"S":ce=!0,S[x][_]=[S[x][_],"S5S"];break;case"G":break;case"R":R=parseInt(te[T].slice(1))-1;break;case"C":se=parseInt(te[T].slice(1))-1;break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+B)}if(Q&&(S[x][_]&&S[x][_].length==2?S[x][_][0]=le:S[x][_]=le,C=null),ce){if(J)throw new Error("SYLK shared formula cannot have own formula");var V=R>-1&&S[R][se];if(!V||!V[1])throw new Error("SYLK shared formula cannot find base");S[x][_][1]=n$(V[1],{r:x-R,c:_-se})}break;case"F":var q=0;for(T=1;T<te.length;++T)switch(te[T].charAt(0)){case"X":_=parseInt(te[T].slice(1))-1,++q;break;case"Y":for(x=parseInt(te[T].slice(1))-1,H=S.length;H<=x;++H)S[H]=[];break;case"M":z=parseInt(te[T].slice(1))/20;break;case"F":break;case"G":break;case"P":C=O[parseInt(te[T].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(N=te[T].slice(1).split(" "),H=parseInt(N[0],10);H<=parseInt(N[1],10);++H)z=parseInt(N[2],10),M[H-1]=z===0?{hidden:!0}:{wch:z},gc(M[H-1]);break;case"C":_=parseInt(te[T].slice(1))-1,M[_]||(M[_]={});break;case"R":x=parseInt(te[T].slice(1))-1,D[x]||(D[x]={}),z>0?(D[x].hpt=z,D[x].hpx=z0(z)):z===0&&(D[x].hidden=!0);break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+B)}q<1&&(C=null);break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+B)}}return D.length>0&&(k["!rows"]=D),M.length>0&&(k["!cols"]=M),g&&g.sheetRows&&(S=S.slice(0,g.sheetRows)),[S,k]}function s(m,g){var y=i(m,g),x=y[0],_=y[1],w=oh(x,g);return Kr(_).forEach(function(T){w[T]=_[T]}),w}function o(m,g){return Ac(s(m,g),g)}function c(m,g,y,x){var _="C;Y"+(y+1)+";X"+(x+1)+";K";switch(m.t){case"n":_+=m.v||0,m.f&&!m.F&&(_+=";E"+nC(m.f,{r:y,c:x}));break;case"b":_+=m.v?"TRUE":"FALSE";break;case"e":_+=m.w||m.v;break;case"d":_+='"'+(m.w||m.v)+'"';break;case"s":_+='"'+m.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return _}function f(m,g){g.forEach(function(y,x){var _="F;W"+(x+1)+" "+(x+1)+" ";y.hidden?_+="0":(typeof y.width=="number"&&!y.wpx&&(y.wpx=Wp(y.width)),typeof y.wpx=="number"&&!y.wch&&(y.wch=qp(y.wpx)),typeof y.wch=="number"&&(_+=Math.round(y.wch))),_.charAt(_.length-1)!=" "&&m.push(_)})}function h(m,g){g.forEach(function(y,x){var _="F;";y.hidden?_+="M0;":y.hpt?_+="M"+20*y.hpt+";":y.hpx&&(_+="M"+20*Gp(y.hpx)+";"),_.length>2&&m.push(_+"R"+(x+1))})}function p(m,g){var y=["ID;PWXL;N;E"],x=[],_=zt(m["!ref"]),w,T=Array.isArray(m),S=`\r
`;y.push("P;PGeneral"),y.push("F;P0;DG0G8;M255"),m["!cols"]&&f(y,m["!cols"]),m["!rows"]&&h(y,m["!rows"]),y.push("B;Y"+(_.e.r-_.s.r+1)+";X"+(_.e.c-_.s.c+1)+";D"+[_.s.c,_.s.r,_.e.c,_.e.r].join(" "));for(var O=_.s.r;O<=_.e.r;++O)for(var C=_.s.c;C<=_.e.c;++C){var k=ht({r:O,c:C});w=T?(m[O]||[])[C]:m[k],!(!w||w.v==null&&(!w.f||w.F))&&x.push(c(w,m,O,C))}return y.join(S)+S+x.join(S)+S+"E"+S}return{to_workbook:o,to_sheet:s,from_sheet:p}}(),UH=function(){function e(a,s){switch(s.type){case"base64":return t(Wa(a),s);case"binary":return t(a,s);case"buffer":return t(kt&&Buffer.isBuffer(a)?a.toString("binary"):Tc(a),s);case"array":return t(Vu(a),s)}throw new Error("Unrecognized type "+s.type)}function t(a,s){for(var o=a.split(`
`),c=-1,f=-1,h=0,p=[];h!==o.length;++h){if(o[h].trim()==="BOT"){p[++c]=[],f=0;continue}if(!(c<0)){var m=o[h].trim().split(","),g=m[0],y=m[1];++h;for(var x=o[h]||"";(x.match(/["]/g)||[]).length&1&&h<o.length-1;)x+=`
`+o[++h];switch(x=x.trim(),+g){case-1:if(x==="BOT"){p[++c]=[],f=0;continue}else if(x!=="EOD")throw new Error("Unrecognized DIF special command "+x);break;case 0:x==="TRUE"?p[c][f]=!0:x==="FALSE"?p[c][f]=!1:isNaN(Ws(y))?isNaN(j0(y).getDate())?p[c][f]=y:p[c][f]=br(y):p[c][f]=Ws(y),++f;break;case 1:x=x.slice(1,x.length-1),x=x.replace(/""/g,'"'),x&&x.match(/^=".*"$/)&&(x=x.slice(2,-1)),p[c][f++]=x!==""?x:null;break}if(x==="EOD")break}}return s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),p}function r(a,s){return oh(e(a,s),s)}function n(a,s){return Ac(r(a,s),s)}var i=function(){var a=function(c,f,h,p,m){c.push(f),c.push(h+","+p),c.push('"'+m.replace(/"/g,'""')+'"')},s=function(c,f,h,p){c.push(f+","+h),c.push(f==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(c){var f=[],h=zt(c["!ref"]),p,m=Array.isArray(c);a(f,"TABLE",0,1,"sheetjs"),a(f,"VECTORS",0,h.e.r-h.s.r+1,""),a(f,"TUPLES",0,h.e.c-h.s.c+1,""),a(f,"DATA",0,0,"");for(var g=h.s.r;g<=h.e.r;++g){s(f,-1,0,"BOT");for(var y=h.s.c;y<=h.e.c;++y){var x=ht({r:g,c:y});if(p=m?(c[g]||[])[y]:c[x],!p){s(f,1,0,"");continue}switch(p.t){case"n":var _=p.w;!_&&p.v!=null&&(_=p.v),_==null?p.f&&!p.F?s(f,1,0,"="+p.f):s(f,1,0,""):s(f,0,_,"V");break;case"b":s(f,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":s(f,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=Os(p.z||ct[14],Pn(br(p.v)))),s(f,0,p.w,"V");break;default:s(f,1,0,"")}}}s(f,-1,0,"EOD");var w=`\r
`,T=f.join(w);return T}}();return{to_workbook:n,to_sheet:r,from_sheet:i}}(),zH=function(){function e(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(p,m){for(var g=p.split(`
`),y=-1,x=-1,_=0,w=[];_!==g.length;++_){var T=g[_].trim().split(":");if(T[0]==="cell"){var S=Ir(T[1]);if(w.length<=S.r)for(y=w.length;y<=S.r;++y)w[y]||(w[y]=[]);switch(y=S.r,x=S.c,T[2]){case"t":w[y][x]=e(T[3]);break;case"v":w[y][x]=+T[3];break;case"vtf":var O=T[T.length-1];case"vtc":switch(T[3]){case"nl":w[y][x]=!!+T[4];break;default:w[y][x]=+T[4];break}T[2]=="vtf"&&(w[y][x]=[w[y][x],O])}}}return m&&m.sheetRows&&(w=w.slice(0,m.sheetRows)),w}function n(p,m){return oh(r(p,m),m)}function i(p,m){return Ac(n(p,m),m)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),c="--SocialCalcSpreadsheetControlSave--";function f(p){if(!p||!p["!ref"])return"";for(var m=[],g=[],y,x="",_=pa(p["!ref"]),w=Array.isArray(p),T=_.s.r;T<=_.e.r;++T)for(var S=_.s.c;S<=_.e.c;++S)if(x=ht({r:T,c:S}),y=w?(p[T]||[])[S]:p[x],!(!y||y.v==null||y.t==="z")){switch(g=["cell",x,"t"],y.t){case"s":case"str":g.push(t(y.v));break;case"n":y.f?(g[2]="vtf",g[3]="n",g[4]=y.v,g[5]=t(y.f)):(g[2]="v",g[3]=y.v);break;case"b":g[2]="vt"+(y.f?"f":"c"),g[3]="nl",g[4]=y.v?"1":"0",g[5]=t(y.f||(y.v?"TRUE":"FALSE"));break;case"d":var O=Pn(br(y.v));g[2]="vtc",g[3]="nd",g[4]=""+O,g[5]=y.w||Os(y.z||ct[14],O);break;case"e":continue}m.push(g.join(":"))}return m.push("sheet:c:"+(_.e.c-_.s.c+1)+":r:"+(_.e.r-_.s.r+1)+":tvf:1"),m.push("valueformat:1:text-wiki"),m.join(`
`)}function h(p){return[a,s,o,s,f(p),c].join(`
`)}return{to_workbook:i,to_sheet:n,from_sheet:h}}(),U0=function(){function e(h,p,m,g,y){y.raw?p[m][g]=h:h===""||(h==="TRUE"?p[m][g]=!0:h==="FALSE"?p[m][g]=!1:isNaN(Ws(h))?isNaN(j0(h).getDate())?p[m][g]=h:p[m][g]=br(h):p[m][g]=Ws(h))}function t(h,p){var m=p||{},g=[];if(!h||h.length===0)return g;for(var y=h.split(/[\r\n]/),x=y.length-1;x>=0&&y[x].length===0;)--x;for(var _=10,w=0,T=0;T<=x;++T)w=y[T].indexOf(" "),w==-1?w=y[T].length:w++,_=Math.max(_,w);for(T=0;T<=x;++T){g[T]=[];var S=0;for(e(y[T].slice(0,_).trim(),g,T,S,m),S=1;S<=(y[T].length-_)/10+1;++S)e(y[T].slice(_+(S-1)*10,_+S*10).trim(),g,T,S,m)}return m.sheetRows&&(g=g.slice(0,m.sheetRows)),g}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(h){for(var p={},m=!1,g=0,y=0;g<h.length;++g)(y=h.charCodeAt(g))==34?m=!m:!m&&y in r&&(p[y]=(p[y]||0)+1);y=[];for(g in p)Object.prototype.hasOwnProperty.call(p,g)&&y.push([p[g],g]);if(!y.length){p=n;for(g in p)Object.prototype.hasOwnProperty.call(p,g)&&y.push([p[g],g])}return y.sort(function(x,_){return x[0]-_[0]||n[x[1]]-n[_[1]]}),r[y.pop()[1]]||44}function a(h,p){var m=p||{},g="",y=m.dense?[]:{},x={s:{c:0,r:0},e:{c:0,r:0}};h.slice(0,4)=="sep="?h.charCodeAt(5)==13&&h.charCodeAt(6)==10?(g=h.charAt(4),h=h.slice(7)):h.charCodeAt(5)==13||h.charCodeAt(5)==10?(g=h.charAt(4),h=h.slice(6)):g=i(h.slice(0,1024)):m&&m.FS?g=m.FS:g=i(h.slice(0,1024));var _=0,w=0,T=0,S=0,O=0,C=g.charCodeAt(0),k=!1,D=0,M=h.charCodeAt(0);h=h.replace(/\r\n/mg,`
`);var N=m.dateNF!=null?Aye(m.dateNF):null;function z(){var H=h.slice(S,O),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(m.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,'"')):tEe(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(T=Ws(H)))B.t="n",m.cellText!==!1&&(B.w=H),B.v=T;else if(!isNaN(j0(H).getDate())||N&&H.match(N)){B.z=m.dateNF||ct[14];var te=0;N&&H.match(N)&&(H=Cye(H,m.dateNF,H.match(N)||[]),te=1),m.cellDates?(B.t="d",B.v=br(H,te)):(B.t="n",B.v=Pn(br(H,te))),m.cellText!==!1&&(B.w=Os(B.z,B.v instanceof Date?Pn(B.v):B.v)),m.cellNF||delete B.z}else B.t="s",B.v=H;if(B.t=="z"||(m.dense?(y[_]||(y[_]=[]),y[_][w]=B):y[ht({c:w,r:_})]=B),S=O+1,M=h.charCodeAt(S),x.e.c<w&&(x.e.c=w),x.e.r<_&&(x.e.r=_),D==C)++w;else if(w=0,++_,m.sheetRows&&m.sheetRows<=_)return!0}e:for(;O<h.length;++O)switch(D=h.charCodeAt(O)){case 34:M===34&&(k=!k);break;case C:case 10:case 13:if(!k&&z())break e;break}return O-S>0&&z(),y["!ref"]=wt(x),y}function s(h,p){return!(p&&p.PRN)||p.FS||h.slice(0,4)=="sep="||h.indexOf("	")>=0||h.indexOf(",")>=0||h.indexOf(";")>=0?a(h,p):oh(t(h,p),p)}function o(h,p){var m="",g=p.type=="string"?[0,0,0,0]:fC(h,p);switch(p.type){case"base64":m=Wa(h);break;case"binary":m=h;break;case"buffer":p.codepage==65001?m=h.toString("utf8"):p.codepage&&typeof Ip<"u"||(m=kt&&Buffer.isBuffer(h)?h.toString("binary"):Tc(h));break;case"array":m=Vu(h);break;case"string":m=h;break;default:throw new Error("Unrecognized type "+p.type)}return g[0]==239&&g[1]==187&&g[2]==191?m=lr(m.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?m=lr(m):p.type=="binary"&&typeof Ip<"u",m.slice(0,19)=="socialcalc:version:"?zH.to_sheet(p.type=="string"?m:lr(m),p):s(m,p)}function c(h,p){return Ac(o(h,p),p)}function f(h){for(var p=[],m=zt(h["!ref"]),g,y=Array.isArray(h),x=m.s.r;x<=m.e.r;++x){for(var _=[],w=m.s.c;w<=m.e.c;++w){var T=ht({r:x,c:w});if(g=y?(h[x]||[])[w]:h[T],!g||g.v==null){_.push("          ");continue}for(var S=(g.w||(ul(g),g.w)||"").slice(0,10);S.length<10;)S+=" ";_.push(S+(w===0?" ":""))}p.push(_.join(""))}return p.join(`
`)}return{to_workbook:c,to_sheet:o,from_sheet:f}}();function zbe(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var i=jH.to_workbook(e,r);return r.WTF=n,i}catch(a){if(r.WTF=n,!a.message.match(/SYLK bad record ID/)&&n)throw a;return U0.to_workbook(e,t)}}var Ou=function(){function e(F,V,q){if(F){ni(F,F.l||0);for(var X=q.Enum||R;F.l<F.length;){var ae=F.read_shift(2),Se=X[ae]||X[65535],Te=F.read_shift(2),ue=F.l+Te,xe=Se.f&&Se.f(F,Te,q);if(F.l=ue,V(xe,Se,ae))return}}}function t(F,V){switch(V.type){case"base64":return r(Fa(Wa(F)),V);case"binary":return r(Fa(F),V);case"buffer":case"array":return r(F,V)}throw"Unsupported type "+V.type}function r(F,V){if(!F)return F;var q=V||{},X=q.dense?[]:{},ae="Sheet1",Se="",Te=0,ue={},xe=[],Ne=[],j={s:{r:0,c:0},e:{r:0,c:0}},ze=q.sheetRows||0;if(F[2]==0&&(F[3]==8||F[3]==9)&&F.length>=16&&F[14]==5&&F[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(F[2]==2)q.Enum=R,e(F,function(ie,yt,Yt){switch(Yt){case 0:q.vers=ie,ie>=4096&&(q.qpro=!0);break;case 6:j=ie;break;case 204:ie&&(Se=ie);break;case 222:Se=ie;break;case 15:case 51:q.qpro||(ie[1].v=ie[1].v.slice(1));case 13:case 14:case 16:Yt==14&&(ie[2]&112)==112&&(ie[2]&15)>1&&(ie[2]&15)<15&&(ie[1].z=q.dateNF||ct[14],q.cellDates&&(ie[1].t="d",ie[1].v=vy(ie[1].v))),q.qpro&&ie[3]>Te&&(X["!ref"]=wt(j),ue[ae]=X,xe.push(ae),X=q.dense?[]:{},j={s:{r:0,c:0},e:{r:0,c:0}},Te=ie[3],ae=Se||"Sheet"+(Te+1),Se="");var Sr=q.dense?(X[ie[0].r]||[])[ie[0].c]:X[ht(ie[0])];if(Sr){Sr.t=ie[1].t,Sr.v=ie[1].v,ie[1].z!=null&&(Sr.z=ie[1].z),ie[1].f!=null&&(Sr.f=ie[1].f);break}q.dense?(X[ie[0].r]||(X[ie[0].r]=[]),X[ie[0].r][ie[0].c]=ie[1]):X[ht(ie[0])]=ie[1];break}},q);else if(F[2]==26||F[2]==14)q.Enum=se,F[2]==14&&(q.qpro=!0,F.l=0),e(F,function(ie,yt,Yt){switch(Yt){case 204:ae=ie;break;case 22:ie[1].v=ie[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ie[3]>Te&&(X["!ref"]=wt(j),ue[ae]=X,xe.push(ae),X=q.dense?[]:{},j={s:{r:0,c:0},e:{r:0,c:0}},Te=ie[3],ae="Sheet"+(Te+1)),ze>0&&ie[0].r>=ze)break;q.dense?(X[ie[0].r]||(X[ie[0].r]=[]),X[ie[0].r][ie[0].c]=ie[1]):X[ht(ie[0])]=ie[1],j.e.c<ie[0].c&&(j.e.c=ie[0].c),j.e.r<ie[0].r&&(j.e.r=ie[0].r);break;case 27:ie[14e3]&&(Ne[ie[14e3][0]]=ie[14e3][1]);break;case 1537:Ne[ie[0]]=ie[1],ie[0]==Te&&(ae=ie[1]);break}},q);else throw new Error("Unrecognized LOTUS BOF "+F[2]);if(X["!ref"]=wt(j),ue[Se||ae]=X,xe.push(Se||ae),!Ne.length)return{SheetNames:xe,Sheets:ue};for(var Le={},He=[],Xe=0;Xe<Ne.length;++Xe)ue[xe[Xe]]?(He.push(Ne[Xe]||xe[Xe]),Le[Ne[Xe]]=ue[Ne[Xe]]||ue[xe[Xe]]):(He.push(Ne[Xe]),Le[Ne[Xe]]={"!ref":"A1"});return{SheetNames:He,Sheets:Le}}function n(F,V){var q=V||{};if(+q.codepage>=0&&Hs(+q.codepage),q.type=="string")throw new Error("Cannot write WK1 to JS string");var X=fa(),ae=zt(F["!ref"]),Se=Array.isArray(F),Te=[];We(X,0,a(1030)),We(X,6,c(ae));for(var ue=Math.min(ae.e.r,8191),xe=ae.s.r;xe<=ue;++xe)for(var Ne=sn(xe),j=ae.s.c;j<=ae.e.c;++j){xe===ae.s.r&&(Te[j]=Lr(j));var ze=Te[j]+Ne,Le=Se?(F[xe]||[])[j]:F[ze];if(!(!Le||Le.t=="z"))if(Le.t=="n")(Le.v|0)==Le.v&&Le.v>=-32768&&Le.v<=32767?We(X,13,g(xe,j,Le.v)):We(X,14,x(xe,j,Le.v));else{var He=ul(Le);We(X,15,p(xe,j,He.slice(0,239)))}}return We(X,1),X.end()}function i(F,V){var q=V||{};if(+q.codepage>=0&&Hs(+q.codepage),q.type=="string")throw new Error("Cannot write WK3 to JS string");var X=fa();We(X,0,s(F));for(var ae=0,Se=0;ae<F.SheetNames.length;++ae)(F.Sheets[F.SheetNames[ae]]||{})["!ref"]&&We(X,27,J(F.SheetNames[ae],Se++));var Te=0;for(ae=0;ae<F.SheetNames.length;++ae){var ue=F.Sheets[F.SheetNames[ae]];if(!(!ue||!ue["!ref"])){for(var xe=zt(ue["!ref"]),Ne=Array.isArray(ue),j=[],ze=Math.min(xe.e.r,8191),Le=xe.s.r;Le<=ze;++Le)for(var He=sn(Le),Xe=xe.s.c;Xe<=xe.e.c;++Xe){Le===xe.s.r&&(j[Xe]=Lr(Xe));var ie=j[Xe]+He,yt=Ne?(ue[Le]||[])[Xe]:ue[ie];if(!(!yt||yt.t=="z"))if(yt.t=="n")We(X,23,z(Le,Xe,Te,yt.v));else{var Yt=ul(yt);We(X,22,D(Le,Xe,Te,Yt.slice(0,239)))}}++Te}}return We(X,1),X.end()}function a(F){var V=Ce(2);return V.write_shift(2,F),V}function s(F){var V=Ce(26);V.write_shift(2,4096),V.write_shift(2,4),V.write_shift(4,0);for(var q=0,X=0,ae=0,Se=0;Se<F.SheetNames.length;++Se){var Te=F.SheetNames[Se],ue=F.Sheets[Te];if(!(!ue||!ue["!ref"])){++ae;var xe=pa(ue["!ref"]);q<xe.e.r&&(q=xe.e.r),X<xe.e.c&&(X=xe.e.c)}}return q>8191&&(q=8191),V.write_shift(2,q),V.write_shift(1,ae),V.write_shift(1,X),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(1,1),V.write_shift(1,2),V.write_shift(4,0),V.write_shift(4,0),V}function o(F,V,q){var X={s:{c:0,r:0},e:{c:0,r:0}};return V==8&&q.qpro?(X.s.c=F.read_shift(1),F.l++,X.s.r=F.read_shift(2),X.e.c=F.read_shift(1),F.l++,X.e.r=F.read_shift(2),X):(X.s.c=F.read_shift(2),X.s.r=F.read_shift(2),V==12&&q.qpro&&(F.l+=2),X.e.c=F.read_shift(2),X.e.r=F.read_shift(2),V==12&&q.qpro&&(F.l+=2),X.s.c==65535&&(X.s.c=X.e.c=X.s.r=X.e.r=0),X)}function c(F){var V=Ce(8);return V.write_shift(2,F.s.c),V.write_shift(2,F.s.r),V.write_shift(2,F.e.c),V.write_shift(2,F.e.r),V}function f(F,V,q){var X=[{c:0,r:0},{t:"n",v:0},0,0];return q.qpro&&q.vers!=20768?(X[0].c=F.read_shift(1),X[3]=F.read_shift(1),X[0].r=F.read_shift(2),F.l+=2):(X[2]=F.read_shift(1),X[0].c=F.read_shift(2),X[0].r=F.read_shift(2)),X}function h(F,V,q){var X=F.l+V,ae=f(F,V,q);if(ae[1].t="s",q.vers==20768){F.l++;var Se=F.read_shift(1);return ae[1].v=F.read_shift(Se,"utf8"),ae}return q.qpro&&F.l++,ae[1].v=F.read_shift(X-F.l,"cstr"),ae}function p(F,V,q){var X=Ce(7+q.length);X.write_shift(1,255),X.write_shift(2,V),X.write_shift(2,F),X.write_shift(1,39);for(var ae=0;ae<X.length;++ae){var Se=q.charCodeAt(ae);X.write_shift(1,Se>=128?95:Se)}return X.write_shift(1,0),X}function m(F,V,q){var X=f(F,V,q);return X[1].v=F.read_shift(2,"i"),X}function g(F,V,q){var X=Ce(7);return X.write_shift(1,255),X.write_shift(2,V),X.write_shift(2,F),X.write_shift(2,q,"i"),X}function y(F,V,q){var X=f(F,V,q);return X[1].v=F.read_shift(8,"f"),X}function x(F,V,q){var X=Ce(13);return X.write_shift(1,255),X.write_shift(2,V),X.write_shift(2,F),X.write_shift(8,q,"f"),X}function _(F,V,q){var X=F.l+V,ae=f(F,V,q);if(ae[1].v=F.read_shift(8,"f"),q.qpro)F.l=X;else{var Se=F.read_shift(2);O(F.slice(F.l,F.l+Se),ae),F.l+=Se}return ae}function w(F,V,q){var X=V&32768;return V&=-32769,V=(X?F:0)+(V>=8192?V-16384:V),(X?"":"$")+(q?Lr(V):sn(V))}var T={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]},S=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function O(F,V){ni(F,0);for(var q=[],X=0,ae="",Se="",Te="",ue="";F.l<F.length;){var xe=F[F.l++];switch(xe){case 0:q.push(F.read_shift(8,"f"));break;case 1:Se=w(V[0].c,F.read_shift(2),!0),ae=w(V[0].r,F.read_shift(2),!1),q.push(Se+ae);break;case 2:{var Ne=w(V[0].c,F.read_shift(2),!0),j=w(V[0].r,F.read_shift(2),!1);Se=w(V[0].c,F.read_shift(2),!0),ae=w(V[0].r,F.read_shift(2),!1),q.push(Ne+j+":"+Se+ae)}break;case 3:if(F.l<F.length){console.error("WK1 premature formula end");return}break;case 4:q.push("("+q.pop()+")");break;case 5:q.push(F.read_shift(2));break;case 6:{for(var ze="";xe=F[F.l++];)ze+=String.fromCharCode(xe);q.push('"'+ze.replace(/"/g,'""')+'"')}break;case 8:q.push("-"+q.pop());break;case 23:q.push("+"+q.pop());break;case 22:q.push("NOT("+q.pop()+")");break;case 20:case 21:ue=q.pop(),Te=q.pop(),q.push(["AND","OR"][xe-20]+"("+Te+","+ue+")");break;default:if(xe<32&&S[xe])ue=q.pop(),Te=q.pop(),q.push(Te+S[xe]+ue);else if(T[xe]){if(X=T[xe][1],X==69&&(X=F[F.l++]),X>q.length){console.error("WK1 bad formula parse 0x"+xe.toString(16)+":|"+q.join("|")+"|");return}var Le=q.slice(-X);q.length-=X,q.push(T[xe][0]+"("+Le.join(",")+")")}else return xe<=7?console.error("WK1 invalid opcode "+xe.toString(16)):xe<=24?console.error("WK1 unsupported op "+xe.toString(16)):xe<=30?console.error("WK1 invalid opcode "+xe.toString(16)):xe<=115?console.error("WK1 unsupported function opcode "+xe.toString(16)):console.error("WK1 unrecognized opcode "+xe.toString(16))}}q.length==1?V[1].f=""+q[0]:console.error("WK1 bad formula parse |"+q.join("|")+"|")}function C(F){var V=[{c:0,r:0},{t:"n",v:0},0];return V[0].r=F.read_shift(2),V[3]=F[F.l++],V[0].c=F[F.l++],V}function k(F,V){var q=C(F);return q[1].t="s",q[1].v=F.read_shift(V-4,"cstr"),q}function D(F,V,q,X){var ae=Ce(6+X.length);ae.write_shift(2,F),ae.write_shift(1,q),ae.write_shift(1,V),ae.write_shift(1,39);for(var Se=0;Se<X.length;++Se){var Te=X.charCodeAt(Se);ae.write_shift(1,Te>=128?95:Te)}return ae.write_shift(1,0),ae}function M(F,V){var q=C(F);q[1].v=F.read_shift(2);var X=q[1].v>>1;if(q[1].v&1)switch(X&7){case 0:X=(X>>3)*5e3;break;case 1:X=(X>>3)*500;break;case 2:X=(X>>3)/20;break;case 3:X=(X>>3)/200;break;case 4:X=(X>>3)/2e3;break;case 5:X=(X>>3)/2e4;break;case 6:X=(X>>3)/16;break;case 7:X=(X>>3)/64;break}return q[1].v=X,q}function N(F,V){var q=C(F),X=F.read_shift(4),ae=F.read_shift(4),Se=F.read_shift(2);if(Se==65535)return X===0&&ae===3221225472?(q[1].t="e",q[1].v=15):X===0&&ae===3489660928?(q[1].t="e",q[1].v=42):q[1].v=0,q;var Te=Se&32768;return Se=(Se&32767)-16446,q[1].v=(1-Te*2)*(ae*Math.pow(2,Se+32)+X*Math.pow(2,Se)),q}function z(F,V,q,X){var ae=Ce(14);if(ae.write_shift(2,F),ae.write_shift(1,q),ae.write_shift(1,V),X==0)return ae.write_shift(4,0),ae.write_shift(4,0),ae.write_shift(2,65535),ae;var Se=0,Te=0,ue=0,xe=0;return X<0&&(Se=1,X=-X),Te=Math.log2(X)|0,X/=Math.pow(2,Te-31),xe=X>>>0,(xe&2147483648)==0&&(X/=2,++Te,xe=X>>>0),X-=xe,xe|=2147483648,xe>>>=0,X*=Math.pow(2,32),ue=X>>>0,ae.write_shift(4,ue),ae.write_shift(4,xe),Te+=16383+(Se?32768:0),ae.write_shift(2,Te),ae}function H(F,V){var q=N(F);return F.l+=V-14,q}function B(F,V){var q=C(F),X=F.read_shift(4);return q[1].v=X>>6,q}function te(F,V){var q=C(F),X=F.read_shift(8,"f");return q[1].v=X,q}function ne(F,V){var q=te(F);return F.l+=V-10,q}function le(F,V){return F[F.l+V-1]==0?F.read_shift(V,"cstr"):""}function Q(F,V){var q=F[F.l++];q>V-1&&(q=V-1);for(var X="";X.length<q;)X+=String.fromCharCode(F[F.l++]);return X}function ee(F,V,q){if(!(!q.qpro||V<21)){var X=F.read_shift(1);F.l+=17,F.l+=1,F.l+=2;var ae=F.read_shift(V-21,"cstr");return[X,ae]}}function ce(F,V){for(var q={},X=F.l+V;F.l<X;){var ae=F.read_shift(2);if(ae==14e3){for(q[ae]=[0,""],q[ae][0]=F.read_shift(2);F[F.l];)q[ae][1]+=String.fromCharCode(F[F.l]),F.l++;F.l++}}return q}function J(F,V){var q=Ce(5+F.length);q.write_shift(2,14e3),q.write_shift(2,V);for(var X=0;X<F.length;++X){var ae=F.charCodeAt(X);q[q.l++]=ae>127?95:ae}return q[q.l++]=0,q}var R={0:{n:"BOF",f:mn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:m},14:{n:"NUMBER",f:y},15:{n:"LABEL",f:h},16:{n:"FORMULA",f:_},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:h},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:le},222:{n:"SHEETNAMELP",f:Q},65535:{n:""}},se={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:k},23:{n:"NUMBER17",f:N},24:{n:"NUMBER18",f:M},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:te},40:{n:"FORMULA28",f:ne},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:le},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:ee},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}}();function Vbe(e){var t={},r=e.match(Pi),n=0,i=!1;if(r)for(;n!=r.length;++n){var a=mt(r[n]);switch(a[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!a.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if(a.val=="1")break;t.cp=O3[parseInt(a.val,10)];break;case"<outline":if(!a.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=a.val;break;case"<sz":t.sz=a.val;break;case"<strike":if(!a.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!a.val)break;switch(a.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting";break}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if(a.val=="0")break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if(a.val=="0")break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":a.rgb&&(t.color=a.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=a.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=a.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a[0].charCodeAt(1)!==47&&!i)throw new Error("Unrecognized rich format "+a[0])}}return t}var Hbe=function(){var e=Up("t"),t=Up("rPr");function r(a){var s=a.match(e);if(!s)return{t:"s",v:""};var o={t:"s",v:Ut(s[1])},c=a.match(t);return c&&(o.s=Vbe(c[1])),o}var n=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(s){return s.replace(n,"").split(i).map(r).filter(function(o){return o.v})}}(),$be=function(){var t=/(\r\n|\n)/g;function r(i,a,s){var o=[];i.u&&o.push("text-decoration: underline;"),i.uval&&o.push("text-underline-style:"+i.uval+";"),i.sz&&o.push("font-size:"+i.sz+"pt;"),i.outline&&o.push("text-effect: outline;"),i.shadow&&o.push("text-shadow: auto;"),a.push('<span style="'+o.join("")+'">'),i.b&&(a.push("<b>"),s.push("</b>")),i.i&&(a.push("<i>"),s.push("</i>")),i.strike&&(a.push("<s>"),s.push("</s>"));var c=i.valign||"";return c=="superscript"||c=="super"?c="sup":c=="subscript"&&(c="sub"),c!=""&&(a.push("<"+c+">"),s.push("</"+c+">")),s.push("</span>"),i}function n(i){var a=[[],i.v,[]];return i.v?(i.s&&r(i.s,a[0],a[2]),a[0].join("")+a[1].replace(t,"<br/>")+a[2].join("")):""}return function(a){return a.map(n).join("")}}(),Wbe=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,qbe=/<(?:\w+:)?r>/,Gbe=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Q3(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Ut(lr(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=lr(e),r&&(n.h=B3(n.t))):e.match(qbe)&&(n.r=lr(e),n.t=Ut(lr((e.replace(Gbe,"").match(Wbe)||[]).join("").replace(Pi,""))),r&&(n.h=$be(Hbe(n.r)))),n):{t:""}}var Xbe=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Ybe=/<(?:\w+:)?(?:si|sstItem)>/g,Kbe=/<\/(?:\w+:)?(?:si|sstItem)>/;function Zbe(e,t){var r=[],n="";if(!e)return r;var i=e.match(Xbe);if(i){n=i[2].replace(Ybe,"").split(Kbe);for(var a=0;a!=n.length;++a){var s=Q3(n[a].trim(),t);s!=null&&(r[r.length]=s)}i=mt(i[1]),r.Count=i.count,r.Unique=i.uniqueCount}return r}var Qbe=/^\s|\s$|[\t\n\r]/;function VH(e,t){if(!t.bookSST)return"";var r=[ln];r[r.length]=$e("sst",null,{xmlns:Ju[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(Qbe)&&(a+=' xml:space="preserve"'),a+=">"+rr(i.t)+"</t>"),a+="</si>",r[r.length]=a}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function Jbe(e){return[e.read_shift(4),e.read_shift(4)]}function ewe(e,t){var r=[],n=!1;return bl(e,function(a,s,o){switch(o){case 159:r.Count=a[0],r.Unique=a[1];break;case 19:r.push(a);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(s.T,!n||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),r}function twe(e,t){return t||(t=Ce(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var rwe=h2e;function nwe(e){var t=fa();Me(t,159,twe(e));for(var r=0;r<e.length;++r)Me(t,19,rwe(e[r]));return Me(t,160),t.end()}function HH(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function el(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function iwe(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=el(e,4),t.U=el(e,4),t.W=el(e,4),t}function awe(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},i=e.read_shift(4),a=[];i-- >0;)a.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=a,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function swe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(awe(e));return t}function owe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function lwe(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=el(e,4),t.U=el(e,4),t.W=el(e,4),t}function cwe(e){var t=lwe(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function $H(e,t){var r=e.l+t,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var i=!1;switch(n.AlgID){case 26126:case 26127:case 26128:i=n.Flags==36;break;case 26625:i=n.Flags==4;break;case 0:i=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function WH(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function uwe(e){var t=el(e);switch(t.Minor){case 2:return[t.Minor,fwe(e)];case 3:return[t.Minor,hwe()];case 4:return[t.Minor,dwe(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function fwe(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=$H(e,r),i=WH(e,e.length-e.l);return{t:"Std",h:n,v:i}}function hwe(){throw new Error("File is password-protected: ECMA-376 Extensible")}function dwe(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(Pi,function(a){var s=mt(a);switch(So(s[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach(function(o){n[o]=s[o]});break;case"<dataIntegrity":n.encryptedHmacKey=s.encryptedHmacKey,n.encryptedHmacValue=s.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=s.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(s);break;default:throw s[0]}}),n}function pwe(e,t){var r={},n=r.EncryptionVersionInfo=el(e,4);if(t-=4,n.Minor!=2)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,r.EncryptionHeader=$H(e,i),t-=i,r.EncryptionVerifier=WH(e,t),r}function mwe(e){var t={},r=t.EncryptionVersionInfo=el(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function J3(e){var t=0,r,n=HH(e),i=n.length+1,a,s,o,c,f;for(r=mc(i),r[0]=n.length,a=1;a!=i;++a)r[a]=n[a-1];for(a=i-1;a>=0;--a)s=r[a],o=(t&16384)===0?0:1,c=t<<1&32767,f=o|c,t=f^s;return t^52811}var qH=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(s){return(s/2|s*128)&255},i=function(s,o){return n(s^o)},a=function(s){for(var o=t[s.length-1],c=104,f=s.length-1;f>=0;--f)for(var h=s[f],p=0;p!=7;++p)h&64&&(o^=r[c]),h*=2,--c;return o};return function(s){for(var o=HH(s),c=a(o),f=o.length,h=mc(16),p=0;p!=16;++p)h[p]=0;var m,g,y;for((f&1)===1&&(m=c>>8,h[f]=i(e[0],m),--f,m=c&255,g=o[o.length-1],h[f]=i(g,m));f>0;)--f,m=c>>8,h[f]=i(o[f],m),--f,m=c&255,h[f]=i(o[f],m);for(f=15,y=15-o.length;y>0;)m=c>>8,h[f]=i(e[y],m),--f,--y,m=c&255,h[f]=i(o[f],m),--f,--y;return h}}(),gwe=function(e,t,r,n,i){i||(i=t),n||(n=qH(e));var a,s;for(a=0;a!=t.length;++a)s=t[a],s^=n[r],s=(s>>5|s<<3)&255,i[a]=s,++r;return[i,r,n]},vwe=function(e){var t=0,r=qH(e);return function(n){var i=gwe("",n,t,r);return t=i[1],i[0]}};function xwe(e,t,r,n){var i={key:mn(e),verificationBytes:mn(e)};return r.password&&(i.verifier=J3(r.password)),n.valid=i.verificationBytes===i.verifier,n.valid&&(n.insitu=vwe(r.password)),i}function ywe(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=mwe(e):n.Data=pwe(e,t),n}function _we(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?ywe(e,t-2,n):xwe(e,r.biff>=8?t:t-2,r,n),n}var GH=function(){function e(i,a){switch(a.type){case"base64":return t(Wa(i),a);case"binary":return t(i,a);case"buffer":return t(kt&&Buffer.isBuffer(i)?i.toString("binary"):Tc(i),a);case"array":return t(Vu(i),a)}throw new Error("Unrecognized type "+a.type)}function t(i,a){var s=a||{},o=s.dense?[]:{},c=i.match(/\\trowd.*?\\row\b/g);if(!c.length)throw new Error("RTF missing table");var f={s:{c:0,r:0},e:{c:0,r:c.length-1}};return c.forEach(function(h,p){Array.isArray(o)&&(o[p]=[]);for(var m=/\\\w+\b/g,g=0,y,x=-1;y=m.exec(h);){switch(y[0]){case"\\cell":var _=h.slice(g,m.lastIndex-y[0].length);if(_[0]==" "&&(_=_.slice(1)),++x,_.length){var w={v:_,t:"s"};Array.isArray(o)?o[p][x]=w:o[ht({r:p,c:x})]=w}break}g=m.lastIndex}x>f.e.c&&(f.e.c=x)}),o["!ref"]=wt(f),o}function r(i,a){return Ac(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=zt(i["!ref"]),o,c=Array.isArray(i),f=s.s.r;f<=s.e.r;++f){a.push("\\trowd\\trautofit1");for(var h=s.s.c;h<=s.e.c;++h)a.push("\\cellx"+(h+1));for(a.push("\\pard\\intbl"),h=s.s.c;h<=s.e.c;++h){var p=ht({r:f,c:h});o=c?(i[f]||[])[h]:i[p],!(!o||o.v==null&&(!o.f||o.F))&&(a.push(" "+(o.w||(ul(o),o.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function bwe(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function $p(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)}function wwe(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(t,r,n),a=Math.min(t,r,n),s=i-a;if(s===0)return[0,0,t];var o=0,c=0,f=i+a;switch(c=s/(f>1?2-f:f),i){case t:o=((r-n)/s+6)%6;break;case r:o=(n-t)/s+2;break;case n:o=(t-r)/s+4;break}return[o/6,c,f/2]}function Swe(e){var t=e[0],r=e[1],n=e[2],i=r*2*(n<.5?n:1-n),a=n-i/2,s=[a,a,a],o=6*t,c;if(r!==0)switch(o|0){case 0:case 6:c=i*o,s[0]+=i,s[1]+=c;break;case 1:c=i*(2-o),s[0]+=c,s[1]+=i;break;case 2:c=i*(o-2),s[1]+=i,s[2]+=c;break;case 3:c=i*(4-o),s[1]+=c,s[2]+=i;break;case 4:c=i*(o-4),s[2]+=i,s[0]+=c;break;case 5:c=i*(6-o),s[2]+=c,s[0]+=i;break}for(var f=0;f!=3;++f)s[f]=Math.round(s[f]*255);return s}function vx(e,t){if(t===0)return e;var r=wwe(bwe(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),$p(Swe(r))}var XH=6,Ewe=15,Twe=1,yi=XH;function Wp(e){return Math.floor((e+Math.round(128/yi)/256)*yi)}function qp(e){return Math.floor((e-5)/yi*100+.5)/100}function xx(e){return Math.round((e*yi+5)/yi*256)/256}function eS(e){return xx(qp(Wp(e)))}function eC(e){var t=Math.abs(e-eS(e)),r=yi;if(t>.005)for(yi=Twe;yi<Ewe;++yi)Math.abs(e-eS(e))<=t&&(t=Math.abs(e-eS(e)),r=yi);yi=r}function gc(e){e.width?(e.wpx=Wp(e.width),e.wch=qp(e.wpx),e.MDW=yi):e.wpx?(e.wch=qp(e.wpx),e.width=xx(e.wch),e.MDW=yi):typeof e.wch=="number"&&(e.width=xx(e.wch),e.wpx=Wp(e.width),e.MDW=yi),e.customWidth&&delete e.customWidth}var Awe=96,YH=Awe;function Gp(e){return e*96/YH}function z0(e){return e*YH/96}var Cwe={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function Owe(e,t,r,n){t.Borders=[];var i={},a=!1;(e[0].match(Pi)||[]).forEach(function(s){var o=mt(s);switch(So(o[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},o.diagonalUp&&(i.diagonalUp=_r(o.diagonalUp)),o.diagonalDown&&(i.diagonalDown=_r(o.diagonalDown)),t.Borders.push(i);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+o[0]+" in borders")}})}function kwe(e,t,r,n){t.Fills=[];var i={},a=!1;(e[0].match(Pi)||[]).forEach(function(s){var o=mt(s);switch(So(o[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":i={},t.Fills.push(i);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":o.patternType&&(i.patternType=o.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":i.bgColor||(i.bgColor={}),o.indexed&&(i.bgColor.indexed=parseInt(o.indexed,10)),o.theme&&(i.bgColor.theme=parseInt(o.theme,10)),o.tint&&(i.bgColor.tint=parseFloat(o.tint)),o.rgb&&(i.bgColor.rgb=o.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":i.fgColor||(i.fgColor={}),o.theme&&(i.fgColor.theme=parseInt(o.theme,10)),o.tint&&(i.fgColor.tint=parseFloat(o.tint)),o.rgb!=null&&(i.fgColor.rgb=o.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+o[0]+" in fills")}})}function Dwe(e,t,r,n){t.Fonts=[];var i={},a=!1;(e[0].match(Pi)||[]).forEach(function(s){var o=mt(s);switch(So(o[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(i),i={};break;case"<name":o.val&&(i.name=lr(o.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=o.val?_r(o.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=o.val?_r(o.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(o.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34;break}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=o.val?_r(o.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=o.val?_r(o.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=o.val?_r(o.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=o.val?_r(o.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=o.val?_r(o.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":o.val&&(i.sz=+o.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":o.val&&(i.vertAlign=o.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":o.val&&(i.family=parseInt(o.val,10));break;case"<family/>":case"</family>":break;case"<scheme":o.val&&(i.scheme=o.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(o.val=="1")break;o.codepage=O3[parseInt(o.val,10)];break;case"<color":if(i.color||(i.color={}),o.auto&&(i.color.auto=_r(o.auto)),o.rgb)i.color.rgb=o.rgb.slice(-6);else if(o.indexed){i.color.index=parseInt(o.indexed,10);var c=Au[i.color.index];i.color.index==81&&(c=Au[1]),c||(c=Au[1]),i.color.rgb=c[0].toString(16)+c[1].toString(16)+c[2].toString(16)}else o.theme&&(i.color.theme=parseInt(o.theme,10),o.tint&&(i.color.tint=parseFloat(o.tint)),o.theme&&r.themeElements&&r.themeElements.clrScheme&&(i.color.rgb=vx(r.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":a=!0;break;case"</AlternateContent>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+o[0]+" in fonts")}})}function Pwe(e,t,r){t.NumberFmt=[];for(var n=Kr(ct),i=0;i<n.length;++i)t.NumberFmt[n[i]]=ct[n[i]];var a=e[0].match(Pi);if(a)for(i=0;i<a.length;++i){var s=mt(a[i]);switch(So(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var o=Ut(lr(s.formatCode)),c=parseInt(s.numFmtId,10);if(t.NumberFmt[c]=o,c>0){if(c>392){for(c=392;c>60&&t.NumberFmt[c]!=null;--c);t.NumberFmt[c]=o}Jo(o,c)}}break;case"</numFmt>":break;default:if(r.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}function Mwe(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]=$e("numFmt",null,{numFmtId:n,formatCode:rr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=$e("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Tg=["numFmtId","fillId","fontId","borderId","xfId"],Ag=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Rwe(e,t,r){t.CellXf=[];var n,i=!1;(e[0].match(Pi)||[]).forEach(function(a){var s=mt(a),o=0;switch(So(s[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=s,delete n[0],o=0;o<Tg.length;++o)n[Tg[o]]&&(n[Tg[o]]=parseInt(n[Tg[o]],10));for(o=0;o<Ag.length;++o)n[Ag[o]]&&(n[Ag[o]]=_r(n[Ag[o]]));if(t.NumberFmt&&n.numFmtId>392){for(o=392;o>60;--o)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[o]){n.numFmtId=o;break}}t.CellXf.push(n);break;case"</xf>":break;case"<alignment":case"<alignment/>":var c={};s.vertical&&(c.vertical=s.vertical),s.horizontal&&(c.horizontal=s.horizontal),s.textRotation!=null&&(c.textRotation=s.textRotation),s.indent&&(c.indent=s.indent),s.wrapText&&(c.wrapText=_r(s.wrapText)),n.alignment=c;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(r&&r.WTF&&!i)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}function Nwe(e){var t=[];return t[t.length]=$e("cellXfs",null),e.forEach(function(r){t[t.length]=$e("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=$e("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Fwe=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,i=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,a=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,c,f){var h={};if(!o)return h;o=o.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var p;return(p=o.match(t))&&Pwe(p,h,f),(p=o.match(i))&&Dwe(p,h,c,f),(p=o.match(n))&&kwe(p,h,c,f),(p=o.match(a))&&Owe(p,h,c,f),(p=o.match(r))&&Rwe(p,h,f),h}}();function KH(e,t){var r=[ln,$e("styleSheet",null,{xmlns:Ju[0],"xmlns:vt":kn.vt})],n;return e.SSF&&(n=Mwe(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=Nwe(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 Lwe(e,t){var r=e.read_shift(2),n=Oi(e);return[r,n]}function Iwe(e,t,r){r||(r=Ce(6+4*t.length)),r.write_shift(2,e),Wn(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Bwe(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=y2e(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 a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var o=e.read_shift(1);o>0&&(n.family=o);var c=e.read_shift(1);switch(c>0&&(n.charset=c),e.l++,n.color=x2e(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Oi(e),n}function jwe(e,t){t||(t=Ce(153)),t.write_shift(2,e.sz*20),_2e(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),px(e.color,t);var n=0;return n=2,t.write_shift(1,n),Wn(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Uwe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],tS,zwe=ki;function EF(e,t){t||(t=Ce(84)),tS||(tS=my(Uwe));var r=tS[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(px({auto:1},t),px({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 Vwe(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 ZH(e,t,r){r||(r=Ce(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 _d(e,t){return t||(t=Ce(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Hwe=ki;function $we(e,t){return t||(t=Ce(51)),t.write_shift(1,0),_d(null,t),_d(null,t),_d(null,t),_d(null,t),_d(null,t),t.length>t.l?t.slice(0,t.l):t}function Wwe(e,t){return t||(t=Ce(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),dx(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function qwe(e,t,r){var n=Ce(2052);return n.write_shift(4,e),dx(t,n),dx(r,n),n.length>n.l?n.slice(0,n.l):n}function Gwe(e,t,r){var n={};n.NumberFmt=[];for(var i in ct)n.NumberFmt[i]=ct[i];n.CellXf=[],n.Fonts=[];var a=[],s=!1;return bl(e,function(c,f,h){switch(h){case 44:n.NumberFmt[c[0]]=c[1],Jo(c[1],c[0]);break;case 43:n.Fonts.push(c),c.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(c.color.rgb=vx(t.themeElements.clrScheme[c.color.theme].rgb,c.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:a[a.length-1]==617&&n.CellXf.push(c);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(h),s=!0;break;case 38:a.pop(),s=!1;break;default:if(f.T>0)a.push(h);else if(f.T<0)a.pop();else if(!s||r.WTF&&a[a.length-1]!=37)throw new Error("Unexpected record 0x"+h.toString(16))}}),n}function Xwe(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&&(Me(e,615,qs(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&Me(e,44,Iwe(i,t[i]))}),Me(e,616))}}function Ywe(e){var t=1;Me(e,611,qs(t)),Me(e,43,jwe({sz:12,color:{theme:1},name:"Calibri",family:2})),Me(e,612)}function Kwe(e){var t=2;Me(e,603,qs(t)),Me(e,45,EF({patternType:"none"})),Me(e,45,EF({patternType:"gray125"})),Me(e,604)}function Zwe(e){var t=1;Me(e,613,qs(t)),Me(e,46,$we()),Me(e,614)}function Qwe(e){var t=1;Me(e,626,qs(t)),Me(e,47,ZH({numFmtId:0},65535)),Me(e,627)}function Jwe(e,t){Me(e,617,qs(t.length)),t.forEach(function(r){Me(e,47,ZH(r,0))}),Me(e,618)}function eSe(e){var t=1;Me(e,619,qs(t)),Me(e,48,Wwe({xfId:0,name:"Normal"})),Me(e,620)}function tSe(e){var t=0;Me(e,505,qs(t)),Me(e,506)}function rSe(e){var t=0;Me(e,508,qwe(t,"TableStyleMedium9","PivotStyleMedium4")),Me(e,509)}function nSe(e,t){var r=fa();return Me(r,278),Xwe(r,e.SSF),Ywe(r),Kwe(r),Zwe(r),Qwe(r),Jwe(r,t.cellXfs),eSe(r),tSe(r),rSe(r),Me(r,279),r.end()}var iSe=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function aSe(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(Pi)||[]).forEach(function(i){var a=mt(i);switch(a[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=a.val;break;case"<a:sysClr":n.rgb=a.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":a[0].charAt(1)==="/"?(t.themeElements.clrScheme[iSe.indexOf(a[0])]=n,n={}):n.name=a[0].slice(3,a[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+a[0]+" in clrScheme")}})}function sSe(){}function oSe(){}var lSe=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,cSe=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,uSe=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function fSe(e,t,r){t.themeElements={};var n;[["clrScheme",lSe,aSe],["fontScheme",cSe,sSe],["fmtScheme",uSe,oSe]].forEach(function(i){if(!(n=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](n,t,r)})}var hSe=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function QH(e,t){(!e||e.length===0)&&(e=tC());var r,n={};if(!(r=e.match(hSe)))throw new Error("themeElements not found in theme");return fSe(r[0],n,t),n.raw=e,n}function tC(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[ln];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="ＭＳ Ｐゴシック"/>',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="ＭＳ Ｐゴシック"/>',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 dSe(e,t,r){var n=e.l+t,i=e.read_shift(4);if(i!==124226){if(!r.cellStyles){e.l=n;return}var a=e.slice(e.l);e.l=n;var s;try{s=$V(a,{type:"array"})}catch{return}var o=La(s,"theme/theme/theme1.xml",!0);if(o)return QH(o,r)}}function pSe(e){return e.read_shift(4)}function mSe(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=gSe(e,4);break;case 2:t.xclrValue=PH(e);break;case 3:t.xclrValue=pSe(e);break;case 4:e.l+=4;break}return e.l+=8,t}function gSe(e,t){return ki(e,t)}function vSe(e,t){return ki(e,t)}function xSe(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=mSe(e);break;case 6:n[1]=vSe(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function ySe(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var i=e.read_shift(2),a=[];i-- >0;)a.push(xSe(e,r-e.l));return{ixfe:n,ext:a}}function _Se(e,t){t.forEach(function(r){r[0]})}function bSe(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Oi(e)}}function wSe(e){var t=Ce(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Wn(e.name,t),t.slice(0,t.l)}function SSe(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function ESe(e){var t=Ce(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 TSe(e,t){var r=Ce(8+2*t.length);return r.write_shift(4,e),Wn(t,r),r.slice(0,r.l)}function ASe(e){return e.l+=4,e.read_shift(4)!=0}function CSe(e,t){var r=Ce(8);return r.write_shift(4,e),r.write_shift(4,1),r}function OSe(e,t,r){var n={Types:[],Cell:[],Value:[]},i=r||{},a=[],s=!1,o=2;return bl(e,function(c,f,h){switch(h){case 335:n.Types.push({name:c.name});break;case 51:c.forEach(function(p){o==1?n.Cell.push({type:n.Types[p[0]-1].name,index:p[1]}):o==0&&n.Value.push({type:n.Types[p[0]-1].name,index:p[1]})});break;case 337:o=c?1:0;break;case 338:o=2;break;case 35:a.push(h),s=!0;break;case 36:a.pop(),s=!1;break;default:if(!f.T){if(!s||i.WTF&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+h.toString(16))}}}),n}function kSe(){var e=fa();return Me(e,332),Me(e,334,qs(1)),Me(e,335,wSe({name:"XLDAPR",version:12e4,flags:3496657072})),Me(e,336),Me(e,339,TSe(1,"XLDAPR")),Me(e,52),Me(e,35,qs(514)),Me(e,4096,qs(0)),Me(e,4097,ps(1)),Me(e,36),Me(e,53),Me(e,340),Me(e,337,CSe(1)),Me(e,51,ESe([[1,0]])),Me(e,338),Me(e,333),e.end()}function DSe(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var i=!1,a=2,s;return e.replace(Pi,function(o){var c=mt(o);switch(So(c[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:c.name});break;case"</metadataType>":break;case"<futureMetadata":for(var f=0;f<n.Types.length;++f)n.Types[f].name==c.name&&(s=n.Types[f]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":a==1?n.Cell.push({type:n.Types[c.t-1].name,index:+c.v}):a==0&&n.Value.push({type:n.Types[c.t-1].name,index:+c.v});break;case"</rc>":break;case"<cellMetadata":a=1;break;case"</cellMetadata>":a=2;break;case"<valueMetadata":a=0;break;case"</valueMetadata>":a=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!s)break;s.offsets||(s.offsets=[]),s.offsets.push(+c.i);break;default:if(!i&&r.WTF)throw new Error("unrecognized "+c[0]+" in metadata")}return o}),n}function JH(){var e=[ln];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 PSe(e){var t=[];if(!e)return t;var r=1;return(e.match(Pi)||[]).forEach(function(n){var i=mt(n);switch(i[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete i[0],i.i?r=i.i:i.i=r,t.push(i);break}}),t}function MSe(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=ht(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}function RSe(e,t,r){var n=[];return bl(e,function(a,s,o){switch(o){case 63:n.push(a);break;default:if(!s.T)throw new Error("Unexpected record 0x"+o.toString(16))}}),n}function NSe(e,t,r,n){if(!e)return e;var i=n||{},a=!1;bl(e,function(o,c,f){switch(f){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:a=!0;break;case 36:a=!1;break;default:if(!c.T){if(!a||i.WTF)throw new Error("Unexpected record 0x"+f.toString(16))}}},i)}function FSe(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var s0=1024;function e$(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[$e("xml",null,{"xmlns:v":Da.v,"xmlns:o":Da.o,"xmlns:x":Da.x,"xmlns:mv":Da.mv}).replace(/\/>/,">"),$e("o:shapelayout",$e("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),$e("v:shapetype",[$e("v:stroke",null,{joinstyle:"miter"}),$e("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];s0<e*1e3;)s0+=1e3;return t.forEach(function(a){var s=Ir(a[0]),o={color2:"#BEFF82",type:"gradient"};o.type=="gradient"&&(o.angle="-180");var c=o.type=="gradient"?$e("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,f=$e("v:fill",c,o),h={on:"t",obscured:"t"};++s0,i=i.concat(["<v:shape"+zp({id:"_x0000_s"+s0,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",f,$e("v:shadow",null,h),$e("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",ii("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),ii("x:AutoFill","False"),ii("x:Row",String(s.r)),ii("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function TF(e,t,r,n){var i=Array.isArray(e),a;t.forEach(function(s){var o=Ir(s.ref);if(i?(e[o.r]||(e[o.r]=[]),a=e[o.r][o.c]):a=e[s.ref],!a){a={t:"z"},i?e[o.r][o.c]=a:e[s.ref]=a;var c=zt(e["!ref"]||"BDWGO1000001:A1");c.s.r>o.r&&(c.s.r=o.r),c.e.r<o.r&&(c.e.r=o.r),c.s.c>o.c&&(c.s.c=o.c),c.e.c<o.c&&(c.e.c=o.c);var f=wt(c);f!==e["!ref"]&&(e["!ref"]=f)}a.c||(a.c=[]);var h={a:s.author,t:s.t,r:s.r,T:r};s.h&&(h.h=s.h);for(var p=a.c.length-1;p>=0;--p){if(!r&&a.c[p].T)return;r&&!a.c[p].T&&a.c.splice(p,1)}if(r&&n){for(p=0;p<n.length;++p)if(h.a==n[p].id){h.a=n[p].name||h.a;break}}a.c.push(h)})}function LSe(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?author[^>]*>(.*)/);o&&r.push(o[1])}});var a=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?comment[^>]*>/);if(o){var c=mt(o[0]),f={author:c.authorId&&r[c.authorId]||"sheetjsghost",ref:c.ref,guid:c.guid},h=Ir(c.ref);if(!(t.sheetRows&&t.sheetRows<=h.r)){var p=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),m=!!p&&!!p[1]&&Q3(p[1])||{r:"",t:"",h:""};f.r=m.r,m.r=="<t></t>"&&(m.t=m.h=""),f.t=(m.t||"").replace(/\r\n/g,`
`).replace(/\r/g,`
`),t.cellHTML&&(f.h=m.h),n.push(f)}}}}),n}function t$(e){var t=[ln,$e("comments",null,{xmlns:Ju[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=rr(i.a);r.indexOf(a)==-1&&(r.push(a),t.push("<author>"+a+"</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,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(c){c.a&&(i=r.indexOf(rr(c.a))),a.push(c.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)t.push(ii("t",rr(a[0]||"")));else{for(var s=`Comment:
    `+a[0]+`
`,o=1;o<a.length;++o)s+=`Reply:
    `+a[o]+`
`;t.push(ii("t",rr(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function ISe(e,t){var r=[],n=!1,i={},a=0;return e.replace(Pi,function(o,c){var f=mt(o);switch(So(f[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":i={author:f.personId,guid:f.id,ref:f.ref,T:1};break;case"</threadedComment>":i.t!=null&&r.push(i);break;case"<text>":case"<text":a=c+o.length;break;case"</text>":i.t=e.slice(a,c).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+f[0]+" in threaded comments")}return o}),r}function BSe(e,t,r){var n=[ln,$e("ThreadedComments",null,{xmlns:kn.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var c={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};o==0?a=c.id:c.parentId=a,s.ID=c.id,s.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push($e("threadedComment",ii("text",s.t||""),c))})}),n.push("</ThreadedComments>"),n.join("")}function jSe(e,t){var r=[],n=!1;return e.replace(Pi,function(a){var s=mt(a);switch(So(s[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:s.displayname,id:s.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return a}),r}function USe(e){var t=[ln,$e("personList",null,{xmlns:kn.TCMNT,"xmlns:x":Ju[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push($e("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function zSe(e){var t={};t.iauthor=e.read_shift(4);var r=nf(e);return t.rfx=r.s,t.ref=ht(r.s),e.l+=16,t}function VSe(e,t){return t==null&&(t=Ce(36)),t.write_shift(4,e[1].iauthor),lh(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 HSe=Oi;function $Se(e){return Wn(e.slice(0,54))}function WSe(e,t){var r=[],n=[],i={},a=!1;return bl(e,function(o,c,f){switch(f){case 632:n.push(o);break;case 635:i=o;break;case 637:i.t=o.t,i.h=o.h,i.r=o.r;break;case 636:if(i.author=n[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,r.push(i);break;case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:break;case 38:break;default:if(!c.T){if(!a||t.WTF)throw new Error("Unexpected record 0x"+f.toString(16))}}}),r}function qSe(e){var t=fa(),r=[];return Me(t,628),Me(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),Me(t,632,$Se(i.a)))})}),Me(t,631),Me(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:Ir(n[0]),e:Ir(n[0])};Me(t,635,VSe([a,i])),i.t&&i.t.length>0&&Me(t,637,p2e(i)),Me(t,636),delete i.iauthor})}),Me(t,634),Me(t,629),t.end()}var GSe="application/vnd.ms-office.vbaProject";function XSe(e){var t=it.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var i=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");it.utils.cfb_add(t,i,e.FileIndex[n].content)}}),it.write(t)}function YSe(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&it.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var r$=["xlsb","xlsm","xlam","biff8","xla"];function KSe(){return{"!type":"dialog"}}function ZSe(){return{"!type":"dialog"}}function QSe(){return{"!type":"macro"}}function JSe(){return{"!type":"macro"}}var x0=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,a,s){var o=!1,c=!1;a.length==0?c=!0:a.charAt(0)=="["&&(c=!0,a=a.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var f=a.length>0?parseInt(a,10)|0:0,h=s.length>0?parseInt(s,10)|0:0;return o?h+=t.c:--h,c?f+=t.r:--f,i+(o?"":"$")+Lr(h)+(c?"":"$")+sn(f)}return function(i,a){return t=a,i.replace(e,r)}}(),rC=/(^|[^._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,nC=function(){return function(t,r){return t.replace(rC,function(n,i,a,s,o,c){var f=H3(s)-(a?0:r.c),h=V3(c)-(o?0:r.r),p=h==0?"":o?h+1:"["+h+"]",m=f==0?"":a?f+1:"["+f+"]";return i+"R"+p+"C"+m})}}();function n$(e,t){return e.replace(rC,function(r,n,i,a,s,o){return n+(i=="$"?i+a:Lr(H3(a)+t.c))+(s=="$"?s+o:sn(V3(o)+t.r))})}function eEe(e,t,r){var n=pa(t),i=n.s,a=Ir(r),s={r:a.r-i.r,c:a.c-i.c};return n$(e,s)}function tEe(e){return e.length!=1}function AF(e){return e.replace(/_xlfn\./g,"")}function dn(e){e.l+=1}function vc(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function i$(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return a$(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=vc(e),o=vc(e);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function a$(e){var t=vc(e),r=vc(e),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 rEe(e,t,r){if(r.biff<8)return a$(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=vc(e),s=vc(e);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function s$(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return nEe(e);var n=e.read_shift(r&&r.biff==12?4:2),i=vc(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function nEe(e){var t=vc(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function iEe(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 aEe(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return sEe(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,o=(a&32768)>>15;if(a&=16383,o==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:o}}function sEe(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 oEe(e,t,r){var n=(e[e.l++]&96)>>5,i=i$(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function lEe(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=i$(e,a,r);return[n,i,s]}function cEe(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 uEe(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function fEe(e,t,r){var n=(e[e.l++]&96)>>5,i=rEe(e,t-1,r);return[n,i]}function hEe(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function CF(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function dEe(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function pEe(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 mEe(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 gEe(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function vEe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function o$(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function xEe(e){return e.read_shift(2),o$(e)}function yEe(e){return e.read_shift(2),o$(e)}function _Ee(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=s$(e,0,r);return[n,i]}function bEe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=aEe(e,0,r);return[n,i]}function wEe(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 a=s$(e,0,r);return[n,i,a]}function SEe(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[ATe[i],u$[i],n]}function EEe(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:TEe(e);return[i,(a[0]===0?u$:TTe)[a[1]]]}function TEe(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function AEe(e,t,r){e.l+=r&&r.biff==2?3:4}function CEe(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 OEe(e){return e.l++,wl[e.read_shift(1)]}function kEe(e){return e.l++,e.read_shift(2)}function DEe(e){return e.l++,e.read_shift(1)!==0}function PEe(e){return e.l++,Ei(e)}function MEe(e,t,r){return e.l++,Am(e,t-1,r)}function REe(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]=en(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=wl[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Ei(e);break;case 2:r[1]=af(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function NEe(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?nf:xy)(e));return i}function FEe(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 a=0,s=[];a!=n&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=REe(e,r.biff);return s}function LEe(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=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,a]}function IEe(e,t,r){if(r.biff==5)return BEe(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function BEe(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 jEe(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 UEe(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 zEe(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 VEe(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var HEe=ki,$Ee=ki,WEe=ki;function Om(e,t,r){return e.l+=2,[iEe(e)]}function iC(e){return e.l+=6,[]}var qEe=Om,GEe=iC,XEe=iC,YEe=Om;function l$(e){return e.l+=2,[mn(e),e.read_shift(2)&1]}var KEe=Om,ZEe=l$,QEe=iC,JEe=Om,eTe=Om,tTe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function rTe(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),a=e.read_shift(2),s=tTe[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:i,C:a}}function nTe(e){return e.l+=2,[e.read_shift(4)]}function iTe(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function aTe(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function sTe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function oTe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function lTe(e){return e.l+=4,[0,0]}var OF={1:{n:"PtgExp",f:CEe},2:{n:"PtgTbl",f:WEe},3:{n:"PtgAdd",f:dn},4:{n:"PtgSub",f:dn},5:{n:"PtgMul",f:dn},6:{n:"PtgDiv",f:dn},7:{n:"PtgPower",f:dn},8:{n:"PtgConcat",f:dn},9:{n:"PtgLt",f:dn},10:{n:"PtgLe",f:dn},11:{n:"PtgEq",f:dn},12:{n:"PtgGe",f:dn},13:{n:"PtgGt",f:dn},14:{n:"PtgNe",f:dn},15:{n:"PtgIsect",f:dn},16:{n:"PtgUnion",f:dn},17:{n:"PtgRange",f:dn},18:{n:"PtgUplus",f:dn},19:{n:"PtgUminus",f:dn},20:{n:"PtgPercent",f:dn},21:{n:"PtgParen",f:dn},22:{n:"PtgMissArg",f:dn},23:{n:"PtgStr",f:MEe},26:{n:"PtgSheet",f:iTe},27:{n:"PtgEndSheet",f:aTe},28:{n:"PtgErr",f:OEe},29:{n:"PtgBool",f:DEe},30:{n:"PtgInt",f:kEe},31:{n:"PtgNum",f:PEe},32:{n:"PtgArray",f:hEe},33:{n:"PtgFunc",f:SEe},34:{n:"PtgFuncVar",f:EEe},35:{n:"PtgName",f:LEe},36:{n:"PtgRef",f:_Ee},37:{n:"PtgArea",f:oEe},38:{n:"PtgMemArea",f:jEe},39:{n:"PtgMemErr",f:HEe},40:{n:"PtgMemNoMem",f:$Ee},41:{n:"PtgMemFunc",f:UEe},42:{n:"PtgRefErr",f:zEe},43:{n:"PtgAreaErr",f:cEe},44:{n:"PtgRefN",f:bEe},45:{n:"PtgAreaN",f:fEe},46:{n:"PtgMemAreaN",f:sTe},47:{n:"PtgMemNoMemN",f:oTe},57:{n:"PtgNameX",f:IEe},58:{n:"PtgRef3d",f:wEe},59:{n:"PtgArea3d",f:lEe},60:{n:"PtgRefErr3d",f:VEe},61:{n:"PtgAreaErr3d",f:uEe},255:{}},cTe={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},uTe={1:{n:"PtgElfLel",f:l$},2:{n:"PtgElfRw",f:JEe},3:{n:"PtgElfCol",f:qEe},6:{n:"PtgElfRwV",f:eTe},7:{n:"PtgElfColV",f:YEe},10:{n:"PtgElfRadical",f:KEe},11:{n:"PtgElfRadicalS",f:QEe},13:{n:"PtgElfColS",f:GEe},15:{n:"PtgElfColSV",f:XEe},16:{n:"PtgElfRadicalLel",f:ZEe},25:{n:"PtgList",f:rTe},29:{n:"PtgSxName",f:nTe},255:{}},fTe={0:{n:"PtgAttrNoop",f:lTe},1:{n:"PtgAttrSemi",f:vEe},2:{n:"PtgAttrIf",f:mEe},4:{n:"PtgAttrChoose",f:dEe},8:{n:"PtgAttrGoto",f:pEe},16:{n:"PtgAttrSum",f:AEe},32:{n:"PtgAttrBaxcel",f:CF},33:{n:"PtgAttrBaxcel",f:CF},64:{n:"PtgAttrSpace",f:xEe},65:{n:"PtgAttrSpaceSemi",f:yEe},128:{n:"PtgAttrIfError",f:gEe},255:{}};function km(e,t,r,n){if(n.biff<8)return ki(e,t);for(var i=e.l+t,a=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=FEe(e,0,n),a.push(r[s][1]);break;case"PtgMemArea":r[s][2]=NEe(e,r[s][1],n),a.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),a.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=i-e.l,t!==0&&a.push(ki(e,t)),a}function Dm(e,t,r){for(var n=e.l+t,i,a,s=[];n!=e.l;)t=n-e.l,a=e[e.l],i=OF[a]||OF[cTe[a]],(a===24||a===25)&&(i=(a===24?uTe:fTe)[e[e.l+1]]),!i||!i.f?ki(e,t):s.push([i.n,i.f(e,t,r)]);return s}function hTe(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],a=0;a<n.length;++a){var s=n[a];if(s)switch(s[0]){case 2:i.push('"'+s[1].replace(/"/g,'""')+'"');break;default:i.push(s[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var dTe={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function pTe(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 c$(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(a){return a.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 kF(e,t,r){var n=c$(e,t,r);return n=="#REF"?n:pTe(n,r)}function vi(e,t,r,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0}},o=[],c,f,h,p=0,m=0,g,y="";if(!e[0]||!e[0][0])return"";for(var x=-1,_="",w=0,T=e[0].length;w<T;++w){var S=e[0][w];switch(S[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.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(c=o.pop(),f=o.pop(),x>=0){switch(e[0][x][1][0]){case 0:_=Wr(" ",e[0][x][1][1]);break;case 1:_=Wr("\r",e[0][x][1][1]);break;default:if(_="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][x][1][0])}f=f+_,x=-1}o.push(f+dTe[S[0]]+c);break;case"PtgIsect":c=o.pop(),f=o.pop(),o.push(f+" "+c);break;case"PtgUnion":c=o.pop(),f=o.pop(),o.push(f+","+c);break;case"PtgRange":c=o.pop(),f=o.pop(),o.push(f+":"+c);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":h=tp(S[1][1],s,i),o.push(rp(h,a));break;case"PtgRefN":h=r?tp(S[1][1],r,i):S[1][1],o.push(rp(h,a));break;case"PtgRef3d":p=S[1][1],h=tp(S[1][2],s,i),y=kF(n,p,i),o.push(y+"!"+rp(h,a));break;case"PtgFunc":case"PtgFuncVar":var O=S[1][0],C=S[1][1];O||(O=0),O&=127;var k=O==0?[]:o.slice(-O);o.length-=O,C==="User"&&(C=k.shift()),o.push(C+"("+k.join(",")+")");break;case"PtgBool":o.push(S[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(S[1]);break;case"PtgNum":o.push(String(S[1]));break;case"PtgStr":o.push('"'+S[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(S[1]);break;case"PtgAreaN":g=iF(S[1][1],r?{s:r}:s,i),o.push(Zw(g,i));break;case"PtgArea":g=iF(S[1][1],s,i),o.push(Zw(g,i));break;case"PtgArea3d":p=S[1][1],g=S[1][2],y=kF(n,p,i),o.push(y+"!"+Zw(g,i));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":m=S[1][2];var D=(n.names||[])[m-1]||(n[0]||[])[m],M=D?D.Name:"SH33TJSNAME"+String(m);M&&M.slice(0,6)=="_xlfn."&&!i.xlfn&&(M=M.slice(6)),o.push(M);break;case"PtgNameX":var N=S[1][1];m=S[1][2];var z;if(i.biff<=5)N<0&&(N=-N),n[N]&&(z=n[N][m]);else{var H="";if(((n[N]||[])[0]||[])[0]==14849||(((n[N]||[])[0]||[])[0]==1025?n[N][m]&&n[N][m].itab>0&&(H=n.SheetNames[n[N][m].itab-1]+"!"):H=n.SheetNames[m-1]+"!"),n[N]&&n[N][m])H+=n[N][m].Name;else if(n[0]&&n[0][m])H+=n[0][m].Name;else{var B=(c$(n,N,i)||"").split(";;");B[m-1]?H=B[m-1]:H+="SH33TJSERRX"}o.push(H);break}z||(z={Name:"SH33TJSERRY"}),o.push(z.Name);break;case"PtgParen":var te="(",ne=")";if(x>=0){switch(_="",e[0][x][1][0]){case 2:te=Wr(" ",e[0][x][1][1])+te;break;case 3:te=Wr("\r",e[0][x][1][1])+te;break;case 4:ne=Wr(" ",e[0][x][1][1])+ne;break;case 5:ne=Wr("\r",e[0][x][1][1])+ne;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][x][1][0])}x=-1}o.push(te+o.pop()+ne);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":h={c:S[1][1],r:S[1][0]};var le={c:r.c,r:r.r};if(n.sharedf[ht(h)]){var Q=n.sharedf[ht(h)];o.push(vi(Q,s,le,n,i))}else{var ee=!1;for(c=0;c!=n.arrayf.length;++c)if(f=n.arrayf[c],!(h.c<f[0].s.c||h.c>f[0].e.c)&&!(h.r<f[0].s.r||h.r>f[0].e.r)){o.push(vi(f[1],s,le,n,i)),ee=!0;break}ee||o.push(S[1])}break;case"PtgArray":o.push("{"+hTe(S[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":x=w;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+S[1].idx+"[#"+S[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(S));default:throw new Error("Unrecognized Formula Token: "+String(S))}var ce=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&x>=0&&ce.indexOf(e[0][w][0])==-1){S=e[0][x];var J=!0;switch(S[1][0]){case 4:J=!1;case 0:_=Wr(" ",S[1][1]);break;case 5:J=!1;case 1:_=Wr("\r",S[1][1]);break;default:if(_="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+S[1][0])}o.push((J?_:"")+o.pop()+(J?"":_)),x=-1}}if(o.length>1&&i.WTF)throw new Error("bad formula stack");return o[0]}function mTe(e,t,r){var n=e.l+t,i=r.biff==2?1:2,a,s=e.read_shift(i);if(s==65535)return[[],ki(e,t-2)];var o=Dm(e,s,r);return t!==s+i&&(a=km(e,t-s-i,o,r)),e.l=n,[o,a]}function gTe(e,t,r){var n=e.l+t,i=r.biff==2?1:2,a,s=e.read_shift(i);if(s==65535)return[[],ki(e,t-2)];var o=Dm(e,s,r);return t!==s+i&&(a=km(e,t-s-i,o,r)),e.l=n,[o,a]}function vTe(e,t,r,n){var i=e.l+t,a=Dm(e,n,r),s;return i!==e.l&&(s=km(e,i-e.l,a,r)),[a,s]}function xTe(e,t,r){var n=e.l+t,i,a=e.read_shift(2),s=Dm(e,a,r);return a==65535?[[],ki(e,t-2)]:(t!==a+2&&(i=km(e,n-a-2,s,r)),[s,i])}function yTe(e){var t;if(Go(e,e.l+6)!==65535)return[Ei(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function _Te(e){if(e==null){var t=Ce(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 Hu(e);return Hu(0)}function rS(e,t,r){var n=e.l+t,i=Eo(e);r.biff==2&&++e.l;var a=yTe(e),s=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=gTe(e,n-e.l,r);return{cell:i,val:a[0],formula:o,shared:s>>3&1,tt:a[1]}}function bTe(e,t,r,n,i){var a=Wu(t,r,i),s=_Te(e.v),o=Ce(6),c=33;o.write_shift(2,c),o.write_shift(4,0);for(var f=Ce(e.bf.length),h=0;h<e.bf.length;++h)f[h]=e.bf[h];var p=$n([a,s,o,f]);return p}function yy(e,t,r){var n=e.read_shift(4),i=Dm(e,n,r),a=e.read_shift(4),s=a>0?km(e,a,i,r):null;return[i,s]}var wTe=yy,_y=yy,STe=yy,ETe=yy,TTe={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"},u$={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"},ATe={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 DF(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function CTe(e){var t="of:="+e.replace(rC,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function nS(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function OTe(e){return e.replace(/\./,"!")}var ip={},y0={},ap=typeof Map<"u";function aC(e,t,r){var n=0,i=e.length;if(r){if(ap?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=ap?r.get(t):r[t];n<a.length;++n)if(e[a[n]].t===t)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(ap?(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 by(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(yi=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=qp(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=xx(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 ku(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 Cc(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,a=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){Jo(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function f$(e,t,r,n,i,a){try{n.cellNF&&(e.z=ct[t])}catch(o){if(n.WTF)throw o}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=br(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(ct[t]==null&&Jo(Tye[t]||"General",t),e.t==="e")e.w=e.w||wl[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=jp(e.v);else if(e.t==="d"){var s=Pn(e.v);(s|0)===s?e.w=s.toString(10):e.w=jp(s)}else{if(e.v===void 0)return"";e.w=zu(e.v,y0)}else e.t==="d"?e.w=Os(t,Pn(e.v),y0):e.w=Os(t,e.v,y0)}catch(o){if(n.WTF)throw o}if(n.cellStyles&&r!=null)try{e.s=a.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=vx(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=vx(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(o){if(n.WTF&&a.Fills)throw o}}}function kTe(e,t,r){if(e&&e["!ref"]){var n=zt(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function DTe(e,t){var r=zt(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=wt(r))}var PTe=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,MTe=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,RTe=/<(?:\w:)?hyperlink [^>]*>/mg,NTe=/"(\w*:\w*)"/,FTe=/<(?:\w:)?col\b[^>]*[\/]?>/g,LTe=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,ITe=/<(?:\w:)?pageMargins[^>]*\/>/g,h$=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,BTe=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,jTe=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function UTe(e,t,r,n,i,a,s){if(!e)return e;n||(n={"!id":{}});var o=t.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},f="",h="",p=e.match(MTe);p?(f=e.slice(0,p.index),h=e.slice(p.index+p[0].length)):f=h=e;var m=f.match(h$);m?sC(m[0],o,i,r):(m=f.match(BTe))&&VTe(m[0],m[1]||"",o,i,r);var g=(f.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(g>0){var y=f.slice(g,g+50).match(NTe);y&&DTe(o,y[1])}var x=f.match(jTe);x&&x[1]&&tAe(x[1],i);var _=[];if(t.cellStyles){var w=f.match(FTe);w&&KTe(_,w)}p&&iAe(p[1],o,t,c,a,s);var T=h.match(LTe);T&&(o["!autofilter"]=QTe(T[0]));var S=[],O=h.match(PTe);if(O)for(g=0;g!=O.length;++g)S[g]=zt(O[g].slice(O[g].indexOf('"')+1));var C=h.match(RTe);C&&GTe(o,C,n);var k=h.match(ITe);if(k&&(o["!margins"]=XTe(mt(k[0]))),!o["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(o["!ref"]=wt(c)),t.sheetRows>0&&o["!ref"]){var D=zt(o["!ref"]);t.sheetRows<=+D.e.r&&(D.e.r=t.sheetRows-1,D.e.r>c.e.r&&(D.e.r=c.e.r),D.e.r<D.s.r&&(D.s.r=D.e.r),D.e.c>c.e.c&&(D.e.c=c.e.c),D.e.c<D.s.c&&(D.s.c=D.e.c),o["!fullref"]=o["!ref"],o["!ref"]=wt(D))}return _.length>0&&(o["!cols"]=_),S.length>0&&(o["!merges"]=S),o}function zTe(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+wt(e[r])+'"/>';return t+"</mergeCells>"}function sC(e,t,r,n){var i=mt(e);r.Sheets[n]||(r.Sheets[n]={}),i.codeName&&(r.Sheets[n].CodeName=Ut(lr(i.codeName)))}function VTe(e,t,r,n,i){sC(e.slice(0,e.indexOf(">")),r,n,i)}function HTe(e,t,r,n,i){var a=!1,s={},o=null;if(n.bookType!=="xlsx"&&t.vbaraw){var c=t.SheetNames[r];try{t.Workbook&&(c=t.Workbook.Sheets[r].CodeName||c)}catch{}a=!0,s.codeName=fo(rr(c))}if(e&&e["!outline"]){var f={summaryBelow:1,summaryRight:1};e["!outline"].above&&(f.summaryBelow=0),e["!outline"].left&&(f.summaryRight=0),o=(o||"")+$e("outlinePr",null,f)}!a&&!o||(i[i.length]=$e("sheetPr",o,s))}var $Te=["objects","scenarios","selectLockedCells","selectUnlockedCells"],WTe=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function qTe(e){var t={sheet:1};return $Te.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),WTe.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=J3(e.password).toString(16).toUpperCase()),$e("sheetProtection",null,t)}function GTe(e,t,r){for(var n=Array.isArray(e),i=0;i!=t.length;++i){var a=mt(lr(t[i]),!0);if(!a.ref)return;var s=((r||{})["!id"]||[])[a.id];s?(a.Target=s.Target,a.location&&(a.Target+="#"+Ut(a.location))):(a.Target="#"+Ut(a.location),s={Target:a.Target,TargetMode:"Internal"}),a.Rel=s,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var o=zt(a.ref),c=o.s.r;c<=o.e.r;++c)for(var f=o.s.c;f<=o.e.c;++f){var h=ht({c:f,r:c});n?(e[c]||(e[c]=[]),e[c][f]||(e[c][f]={t:"z",v:void 0}),e[c][f].l=a):(e[h]||(e[h]={t:"z",v:void 0}),e[h].l=a)}}}function XTe(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function YTe(e){return ku(e),$e("pageMargins",null,e)}function KTe(e,t){for(var r=!1,n=0;n!=t.length;++n){var i=mt(t[n],!0);i.hidden&&(i.hidden=_r(i.hidden));var a=parseInt(i.min,10)-1,s=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!r&&i.width&&(r=!0,eC(i.width)),gc(i);a<=s;)e[a++]=wr(i)}}function ZTe(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=$e("col",null,by(i,n)));return r[r.length]="</cols>",r.join("")}function QTe(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function JTe(e,t,r,n){var i=typeof e.ref=="string"?e.ref:wt(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=pa(i);s.s.r==s.e.r&&(s.e.r=pa(t["!ref"]).e.r,i=wt(s));for(var o=0;o<a.length;++o){var c=a[o];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),$e("autoFilter",null,{ref:i})}var eAe=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function tAe(e,t){t.Views||(t.Views=[{}]),(e.match(eAe)||[]).forEach(function(r,n){var i=mt(r);t.Views[n]||(t.Views[n]={}),+i.zoomScale&&(t.Views[n].zoom=+i.zoomScale),_r(i.rightToLeft)&&(t.Views[n].RTL=!0)})}function rAe(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),$e("sheetViews",$e("sheetView",null,i),{})}function nAe(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="",a=e.t,s=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=wl[e.v];break;case"d":n&&n.cellDates?i=br(e.v,-1).toISOString():(e=wr(e),e.t="n",i=""+(e.v=Pn(br(e.v)))),typeof e.z>"u"&&(e.z=ct[14]);break;default:i=e.v;break}var o=ii("v",rr(i)),c={r:t},f=Cc(n.cellXfs,e,n);switch(f!==0&&(c.s=f),e.t){case"n":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.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){o=ii("v",""+aC(n.Strings,e.v,n.revStrings)),c.t="s";break}c.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var h=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=$e("f",rr(e.f),h)+(e.v!=null?o:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(c.cm=1),$e("c",o,c)}var iAe=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=Up("v"),s=Up("f");return function(c,f,h,p,m,g){for(var y=0,x="",_=[],w=[],T=0,S=0,O=0,C="",k,D,M=0,N=0,z,H,B=0,te=0,ne=Array.isArray(g.CellXf),le,Q=[],ee=[],ce=Array.isArray(f),J=[],R={},se=!1,F=!!h.sheetStubs,V=c.split(t),q=0,X=V.length;q!=X;++q){x=V[q].trim();var ae=x.length;if(ae!==0){var Se=0;e:for(y=0;y<ae;++y)switch(x[y]){case">":if(x[y-1]!="/"){++y;break e}if(h&&h.cellStyles){if(D=mt(x.slice(Se,y),!0),M=D.r!=null?parseInt(D.r,10):M+1,N=-1,h.sheetRows&&h.sheetRows<M)continue;R={},se=!1,D.ht&&(se=!0,R.hpt=parseFloat(D.ht),R.hpx=z0(R.hpt)),D.hidden=="1"&&(se=!0,R.hidden=!0),D.outlineLevel!=null&&(se=!0,R.level=+D.outlineLevel),se&&(J[M-1]=R)}break;case"<":Se=y;break}if(Se>=y)break;if(D=mt(x.slice(Se,y),!0),M=D.r!=null?parseInt(D.r,10):M+1,N=-1,!(h.sheetRows&&h.sheetRows<M)){p.s.r>M-1&&(p.s.r=M-1),p.e.r<M-1&&(p.e.r=M-1),h&&h.cellStyles&&(R={},se=!1,D.ht&&(se=!0,R.hpt=parseFloat(D.ht),R.hpx=z0(R.hpt)),D.hidden=="1"&&(se=!0,R.hidden=!0),D.outlineLevel!=null&&(se=!0,R.level=+D.outlineLevel),se&&(J[M-1]=R)),_=x.slice(y).split(e);for(var Te=0;Te!=_.length&&_[Te].trim().charAt(0)=="<";++Te);for(_=_.slice(Te),y=0;y!=_.length;++y)if(x=_[y].trim(),x.length!==0){if(w=x.match(r),T=y,S=0,O=0,x="<c "+(x.slice(0,1)=="<"?">":"")+x,w!=null&&w.length===2){for(T=0,C=w[1],S=0;S!=C.length&&!((O=C.charCodeAt(S)-64)<1||O>26);++S)T=26*T+O;--T,N=T}else++N;for(S=0;S!=x.length&&x.charCodeAt(S)!==62;++S);if(++S,D=mt(x.slice(0,S),!0),D.r||(D.r=ht({r:M-1,c:N})),C=x.slice(S),k={t:""},(w=C.match(a))!=null&&w[1]!==""&&(k.v=Ut(w[1])),h.cellFormula){if((w=C.match(s))!=null&&w[1]!==""){if(k.f=Ut(lr(w[1])).replace(/\r\n/g,`
`),h.xlfn||(k.f=AF(k.f)),w[0].indexOf('t="array"')>-1)k.F=(C.match(i)||[])[1],k.F.indexOf(":")>-1&&Q.push([zt(k.F),k.F]);else if(w[0].indexOf('t="shared"')>-1){H=mt(w[0]);var ue=Ut(lr(w[1]));h.xlfn||(ue=AF(ue)),ee[parseInt(H.si,10)]=[H,ue,D.r]}}else(w=C.match(/<f[^>]*\/>/))&&(H=mt(w[0]),ee[H.si]&&(k.f=eEe(ee[H.si][1],ee[H.si][2],D.r)));var xe=Ir(D.r);for(S=0;S<Q.length;++S)xe.r>=Q[S][0].s.r&&xe.r<=Q[S][0].e.r&&xe.c>=Q[S][0].s.c&&xe.c<=Q[S][0].e.c&&(k.F=Q[S][1])}if(D.t==null&&k.v===void 0)if(k.f||k.F)k.v=0,k.t="n";else if(F)k.t="z";else continue;else k.t=D.t||"n";switch(p.s.c>N&&(p.s.c=N),p.e.c<N&&(p.e.c=N),k.t){case"n":if(k.v==""||k.v==null){if(!F)continue;k.t="z"}else k.v=parseFloat(k.v);break;case"s":if(typeof k.v>"u"){if(!F)continue;k.t="z"}else z=ip[parseInt(k.v,10)],k.v=z.t,k.r=z.r,h.cellHTML&&(k.h=z.h);break;case"str":k.t="s",k.v=k.v!=null?lr(k.v):"",h.cellHTML&&(k.h=B3(k.v));break;case"inlineStr":w=C.match(n),k.t="s",w!=null&&(z=Q3(w[1]))?(k.v=z.t,h.cellHTML&&(k.h=z.h)):k.v="";break;case"b":k.v=_r(k.v);break;case"d":h.cellDates?k.v=br(k.v,1):(k.v=Pn(br(k.v,1)),k.t="n");break;case"e":(!h||h.cellText!==!1)&&(k.w=k.v),k.v=pH[k.v];break}if(B=te=0,le=null,ne&&D.s!==void 0&&(le=g.CellXf[D.s],le!=null&&(le.numFmtId!=null&&(B=le.numFmtId),h.cellStyles&&le.fillId!=null&&(te=le.fillId))),f$(k,B,te,h,m,g),h.cellDates&&ne&&k.t=="n"&&ah(ct[B])&&(k.t="d",k.v=vy(k.v)),D.cm&&h.xlmeta){var Ne=(h.xlmeta.Cell||[])[+D.cm-1];Ne&&Ne.type=="XLDAPR"&&(k.D=!0)}if(ce){var j=Ir(D.r);f[j.r]||(f[j.r]=[]),f[j.r][j.c]=k}else f[D.r]=k}}}}J.length>0&&(f["!rows"]=J)}}();function aAe(e,t,r,n){var i=[],a=[],s=zt(e["!ref"]),o="",c,f="",h=[],p=0,m=0,g=e["!rows"],y=Array.isArray(e),x={r:f},_,w=-1;for(m=s.s.c;m<=s.e.c;++m)h[m]=Lr(m);for(p=s.s.r;p<=s.e.r;++p){for(a=[],f=sn(p),m=s.s.c;m<=s.e.c;++m){c=h[m]+f;var T=y?(e[p]||[])[m]:e[c];T!==void 0&&(o=nAe(T,c,e,t))!=null&&a.push(o)}(a.length>0||g&&g[p])&&(x={r:f},g&&g[p]&&(_=g[p],_.hidden&&(x.hidden=1),w=-1,_.hpx?w=Gp(_.hpx):_.hpt&&(w=_.hpt),w>-1&&(x.ht=w,x.customHeight=1),_.level&&(x.outlineLevel=_.level)),i[i.length]=$e("row",a.join(""),x))}if(g)for(;p<g.length;++p)g&&g[p]&&(x={r:p+1},_=g[p],_.hidden&&(x.hidden=1),w=-1,_.hpx?w=Gp(_.hpx):_.hpt&&(w=_.hpt),w>-1&&(x.ht=w,x.customHeight=1),_.level&&(x.outlineLevel=_.level),i[i.length]=$e("row","",x));return i.join("")}function d$(e,t,r,n){var i=[ln,$e("worksheet",null,{xmlns:Ju[0],"xmlns:r":kn.r})],a=r.SheetNames[e],s=0,o="",c=r.Sheets[a];c==null&&(c={});var f=c["!ref"]||"A1",h=zt(f);if(h.e.c>16383||h.e.r>1048575){if(t.WTF)throw new Error("Range "+f+" exceeds format limit A1:XFD1048576");h.e.c=Math.min(h.e.c,16383),h.e.r=Math.min(h.e.c,1048575),f=wt(h)}n||(n={}),c["!comments"]=[];var p=[];HTe(c,r,e,t,i),i[i.length]=$e("dimension",null,{ref:f}),i[i.length]=rAe(c,t,e,r),t.sheetFormat&&(i[i.length]=$e("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),c["!cols"]!=null&&c["!cols"].length>0&&(i[i.length]=ZTe(c,c["!cols"])),i[s=i.length]="<sheetData/>",c["!links"]=[],c["!ref"]!=null&&(o=aAe(c,t),o.length>0&&(i[i.length]=o)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),c["!protect"]&&(i[i.length]=qTe(c["!protect"])),c["!autofilter"]!=null&&(i[i.length]=JTe(c["!autofilter"],c,r,e)),c["!merges"]!=null&&c["!merges"].length>0&&(i[i.length]=zTe(c["!merges"]));var m=-1,g,y=-1;return c["!links"].length>0&&(i[i.length]="<hyperlinks>",c["!links"].forEach(function(x){x[1].Target&&(g={ref:x[0]},x[1].Target.charAt(0)!="#"&&(y=er(n,-1,rr(x[1].Target).replace(/#.*$/,""),Rt.HLINK),g["r:id"]="rId"+y),(m=x[1].Target.indexOf("#"))>-1&&(g.location=rr(x[1].Target.slice(m+1))),x[1].Tooltip&&(g.tooltip=rr(x[1].Tooltip)),i[i.length]=$e("hyperlink",null,g))}),i[i.length]="</hyperlinks>"),delete c["!links"],c["!margins"]!=null&&(i[i.length]=YTe(c["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=ii("ignoredErrors",$e("ignoredError",null,{numberStoredAsText:1,sqref:f}))),p.length>0&&(y=er(n,-1,"../drawings/drawing"+(e+1)+".xml",Rt.DRAW),i[i.length]=$e("drawing",null,{"r:id":"rId"+y}),c["!drawing"]=p),c["!comments"].length>0&&(y=er(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Rt.VML),i[i.length]=$e("legacyDrawing",null,{"r:id":"rId"+y}),c["!legacy"]=y),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function sAe(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 a=e.read_shift(1);return e.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}function oAe(e,t,r){var n=Ce(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=Gp(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,c=n.l;n.l+=4;for(var f={r:e,c:0},h=0;h<16;++h)if(!(t.s.c>h+1<<10||t.e.c<h<<10)){for(var p=-1,m=-1,g=h<<10;g<h+1<<10;++g){f.c=g;var y=Array.isArray(r)?(r[f.r]||[])[f.c]:r[ht(f)];y&&(p<0&&(p=g),m=g)}p<0||(++o,n.write_shift(4,p),n.write_shift(4,m))}var x=n.l;return n.l=c,n.write_shift(4,o),n.l=x,n.length>n.l?n.slice(0,n.l):n}function lAe(e,t,r,n){var i=oAe(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&Me(e,0,i)}var cAe=nf,uAe=lh;function fAe(){}function hAe(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=m2e(e),r}function dAe(e,t,r){r==null&&(r=Ce(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 px({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),cH(e,r),r.slice(0,r.l)}function pAe(e){var t=Ps(e);return[t]}function mAe(e,t,r){return r==null&&(r=Ce(8)),ef(t,r)}function gAe(e){var t=tf(e);return[t]}function vAe(e,t,r){return r==null&&(r=Ce(4)),rf(t,r)}function xAe(e){var t=Ps(e),r=e.read_shift(1);return[t,r,"b"]}function yAe(e,t,r){return r==null&&(r=Ce(9)),ef(t,r),r.write_shift(1,e.v?1:0),r}function _Ae(e){var t=tf(e),r=e.read_shift(1);return[t,r,"b"]}function bAe(e,t,r){return r==null&&(r=Ce(5)),rf(t,r),r.write_shift(1,e.v?1:0),r}function wAe(e){var t=Ps(e),r=e.read_shift(1);return[t,r,"e"]}function SAe(e,t,r){return r==null&&(r=Ce(9)),ef(t,r),r.write_shift(1,e.v),r}function EAe(e){var t=tf(e),r=e.read_shift(1);return[t,r,"e"]}function TAe(e,t,r){return r==null&&(r=Ce(8)),rf(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function AAe(e){var t=Ps(e),r=e.read_shift(4);return[t,r,"s"]}function CAe(e,t,r){return r==null&&(r=Ce(12)),ef(t,r),r.write_shift(4,t.v),r}function OAe(e){var t=tf(e),r=e.read_shift(4);return[t,r,"s"]}function kAe(e,t,r){return r==null&&(r=Ce(8)),rf(t,r),r.write_shift(4,t.v),r}function DAe(e){var t=Ps(e),r=Ei(e);return[t,r,"n"]}function PAe(e,t,r){return r==null&&(r=Ce(16)),ef(t,r),Hu(e.v,r),r}function p$(e){var t=tf(e),r=Ei(e);return[t,r,"n"]}function MAe(e,t,r){return r==null&&(r=Ce(12)),rf(t,r),Hu(e.v,r),r}function RAe(e){var t=Ps(e),r=G3(e);return[t,r,"n"]}function NAe(e,t,r){return r==null&&(r=Ce(12)),ef(t,r),uH(e.v,r),r}function FAe(e){var t=tf(e),r=G3(e);return[t,r,"n"]}function LAe(e,t,r){return r==null&&(r=Ce(8)),rf(t,r),uH(e.v,r),r}function IAe(e){var t=Ps(e),r=$3(e);return[t,r,"is"]}function BAe(e){var t=Ps(e),r=Oi(e);return[t,r,"str"]}function jAe(e,t,r){return r==null&&(r=Ce(12+4*e.v.length)),ef(t,r),Wn(e.v,r),r.length>r.l?r.slice(0,r.l):r}function UAe(e){var t=tf(e),r=Oi(e);return[t,r,"str"]}function zAe(e,t,r){return r==null&&(r=Ce(8+4*e.v.length)),rf(t,r),Wn(e.v,r),r.length>r.l?r.slice(0,r.l):r}function VAe(e,t,r){var n=e.l+t,i=Ps(e);i.r=r["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(r.cellFormula){e.l+=2;var o=_y(e,n-e.l,r);s[3]=vi(o,null,i,r.supbooks,r)}else e.l=n;return s}function HAe(e,t,r){var n=e.l+t,i=Ps(e);i.r=r["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(r.cellFormula){e.l+=2;var o=_y(e,n-e.l,r);s[3]=vi(o,null,i,r.supbooks,r)}else e.l=n;return s}function $Ae(e,t,r){var n=e.l+t,i=Ps(e);i.r=r["!row"];var a=Ei(e),s=[i,a,"n"];if(r.cellFormula){e.l+=2;var o=_y(e,n-e.l,r);s[3]=vi(o,null,i,r.supbooks,r)}else e.l=n;return s}function WAe(e,t,r){var n=e.l+t,i=Ps(e);i.r=r["!row"];var a=Oi(e),s=[i,a,"str"];if(r.cellFormula){e.l+=2;var o=_y(e,n-e.l,r);s[3]=vi(o,null,i,r.supbooks,r)}else e.l=n;return s}var qAe=nf,GAe=lh;function XAe(e,t){return t==null&&(t=Ce(4)),t.write_shift(4,e),t}function YAe(e,t){var r=e.l+t,n=nf(e),i=W3(e),a=Oi(e),s=Oi(e),o=Oi(e);e.l=r;var c={rfx:n,relId:i,loc:a,display:o};return s&&(c.Tooltip=s),c}function KAe(e,t){var r=Ce(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));lh({s:Ir(e[0]),e:Ir(e[0])},r),q3("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return Wn(i||"",r),Wn(e[1].Tooltip||"",r),Wn("",r),r.slice(0,r.l)}function ZAe(){}function QAe(e,t,r){var n=e.l+t,i=fH(e),a=e.read_shift(1),s=[i];if(s[2]=a,r.cellFormula){var o=wTe(e,n-e.l,r);s[1]=o}else e.l=n;return s}function JAe(e,t,r){var n=e.l+t,i=nf(e),a=[i];if(r.cellFormula){var s=ETe(e,n-e.l,r);a[1]=s,e.l=n}else e.l=n;return a}function e4e(e,t,r){r==null&&(r=Ce(18));var n=by(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 m$=["left","right","top","bottom","header","footer"];function t4e(e){var t={};return m$.forEach(function(r){t[r]=Ei(e)}),t}function r4e(e,t){return t==null&&(t=Ce(48)),ku(e),m$.forEach(function(r){Hu(e[r],t)}),t}function n4e(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function i4e(e,t,r){r==null&&(r=Ce(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 a4e(e){var t=Ce(24);return t.write_shift(4,4),t.write_shift(4,1),lh(e,t),t}function s4e(e,t){return t==null&&(t=Ce(66)),t.write_shift(2,e.password?J3(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 o4e(){}function l4e(){}function c4e(e,t,r,n,i,a,s){if(!e)return e;var o=t||{};n||(n={"!id":{}});var c=o.dense?[]:{},f,h={s:{r:2e6,c:2e6},e:{r:0,c:0}},p=!1,m=!1,g,y,x,_,w,T,S,O,C,k=[];o.biff=12,o["!row"]=0;var D=0,M=!1,N=[],z={},H=o.supbooks||i.supbooks||[[]];if(H.sharedf=z,H.arrayf=N,H.SheetNames=i.SheetNames||i.Sheets.map(function(ce){return ce.name}),!o.supbooks&&(o.supbooks=H,i.Names))for(var B=0;B<i.Names.length;++B)H[0][B+1]=i.Names[B];var te=[],ne=[],le=!1;Xp[16]={n:"BrtShortReal",f:p$};var Q;if(bl(e,function(J,R,se){if(!m)switch(se){case 148:f=J;break;case 0:g=J,o.sheetRows&&o.sheetRows<=g.r&&(m=!0),O=sn(_=g.r),o["!row"]=g.r,(J.hidden||J.hpt||J.level!=null)&&(J.hpt&&(J.hpx=z0(J.hpt)),ne[J.r]=J);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(y={t:J[2]},J[2]){case"n":y.v=J[1];break;case"s":S=ip[J[1]],y.v=S.t,y.r=S.r;break;case"b":y.v=!!J[1];break;case"e":y.v=J[1],o.cellText!==!1&&(y.w=wl[y.v]);break;case"str":y.t="s",y.v=J[1];break;case"is":y.t="s",y.v=J[1].t;break}if((x=s.CellXf[J[0].iStyleRef])&&f$(y,x.numFmtId,null,o,a,s),w=J[0].c==-1?w+1:J[0].c,o.dense?(c[_]||(c[_]=[]),c[_][w]=y):c[Lr(w)+O]=y,o.cellFormula){for(M=!1,D=0;D<N.length;++D){var F=N[D];g.r>=F[0].s.r&&g.r<=F[0].e.r&&w>=F[0].s.c&&w<=F[0].e.c&&(y.F=wt(F[0]),M=!0)}!M&&J.length>3&&(y.f=J[3])}if(h.s.r>g.r&&(h.s.r=g.r),h.s.c>w&&(h.s.c=w),h.e.r<g.r&&(h.e.r=g.r),h.e.c<w&&(h.e.c=w),o.cellDates&&x&&y.t=="n"&&ah(ct[x.numFmtId])){var V=fu(y.v);V&&(y.t="d",y.v=new Date(V.y,V.m-1,V.d,V.H,V.M,V.S,V.u))}Q&&(Q.type=="XLDAPR"&&(y.D=!0),Q=void 0);break;case 1:case 12:if(!o.sheetStubs||p)break;y={t:"z",v:void 0},w=J[0].c==-1?w+1:J[0].c,o.dense?(c[_]||(c[_]=[]),c[_][w]=y):c[Lr(w)+O]=y,h.s.r>g.r&&(h.s.r=g.r),h.s.c>w&&(h.s.c=w),h.e.r<g.r&&(h.e.r=g.r),h.e.c<w&&(h.e.c=w),Q&&(Q.type=="XLDAPR"&&(y.D=!0),Q=void 0);break;case 176:k.push(J);break;case 49:Q=((o.xlmeta||{}).Cell||[])[J-1];break;case 494:var q=n["!id"][J.relId];for(q?(J.Target=q.Target,J.loc&&(J.Target+="#"+J.loc),J.Rel=q):J.relId==""&&(J.Target="#"+J.loc),_=J.rfx.s.r;_<=J.rfx.e.r;++_)for(w=J.rfx.s.c;w<=J.rfx.e.c;++w)o.dense?(c[_]||(c[_]=[]),c[_][w]||(c[_][w]={t:"z",v:void 0}),c[_][w].l=J):(T=ht({c:w,r:_}),c[T]||(c[T]={t:"z",v:void 0}),c[T].l=J);break;case 426:if(!o.cellFormula)break;N.push(J),C=o.dense?c[_][w]:c[Lr(w)+O],C.f=vi(J[1],h,{r:g.r,c:w},H,o),C.F=wt(J[0]);break;case 427:if(!o.cellFormula)break;z[ht(J[0].s)]=J[1],C=o.dense?c[_][w]:c[Lr(w)+O],C.f=vi(J[1],h,{r:g.r,c:w},H,o);break;case 60:if(!o.cellStyles)break;for(;J.e>=J.s;)te[J.e--]={width:J.w/256,hidden:!!(J.flags&1),level:J.level},le||(le=!0,eC(J.w/256)),gc(te[J.e+1]);break;case 161:c["!autofilter"]={ref:wt(J)};break;case 476:c["!margins"]=J;break;case 147:i.Sheets[r]||(i.Sheets[r]={}),J.name&&(i.Sheets[r].CodeName=J.name),(J.above||J.left)&&(c["!outline"]={above:J.above,left:J.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),J.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:p=!0;break;case 36:p=!1;break;case 37:p=!0;break;case 38:p=!1;break;default:if(!R.T){if(!p||o.WTF)throw new Error("Unexpected record 0x"+se.toString(16))}}},o),delete o.supbooks,delete o["!row"],!c["!ref"]&&(h.s.r<2e6||f&&(f.e.r>0||f.e.c>0||f.s.r>0||f.s.c>0))&&(c["!ref"]=wt(f||h)),o.sheetRows&&c["!ref"]){var ee=zt(c["!ref"]);o.sheetRows<=+ee.e.r&&(ee.e.r=o.sheetRows-1,ee.e.r>h.e.r&&(ee.e.r=h.e.r),ee.e.r<ee.s.r&&(ee.s.r=ee.e.r),ee.e.c>h.e.c&&(ee.e.c=h.e.c),ee.e.c<ee.s.c&&(ee.s.c=ee.e.c),c["!fullref"]=c["!ref"],c["!ref"]=wt(ee))}return k.length>0&&(c["!merges"]=k),te.length>0&&(c["!cols"]=te),ne.length>0&&(c["!rows"]=ne),c}function u4e(e,t,r,n,i,a,s){if(t.v===void 0)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":t=wr(t),t.z=t.z||ct[14],t.v=Pn(br(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v;break}var c={r,c:n};switch(c.s=Cc(i.cellXfs,t,i),t.l&&a["!links"].push([ht(c),t.l]),t.c&&a["!comments"].push([ht(c),t.c]),t.t){case"s":case"str":return i.bookSST?(o=aC(i.Strings,t.v,i.revStrings),c.t="s",c.v=o,s?Me(e,18,kAe(t,c)):Me(e,7,CAe(t,c))):(c.t="str",s?Me(e,17,zAe(t,c)):Me(e,6,jAe(t,c))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?Me(e,13,LAe(t,c)):Me(e,2,NAe(t,c)):s?Me(e,16,MAe(t,c)):Me(e,5,PAe(t,c)),!0;case"b":return c.t="b",s?Me(e,15,bAe(t,c)):Me(e,4,yAe(t,c)),!0;case"e":return c.t="e",s?Me(e,14,TAe(t,c)):Me(e,3,SAe(t,c)),!0}return s?Me(e,12,vAe(t,c)):Me(e,1,mAe(t,c)),!0}function f4e(e,t,r,n){var i=zt(t["!ref"]||"A1"),a,s="",o=[];Me(e,145);var c=Array.isArray(t),f=i.e.r;t["!rows"]&&(f=Math.max(i.e.r,t["!rows"].length-1));for(var h=i.s.r;h<=f;++h){s=sn(h),lAe(e,t,i,h);var p=!1;if(h<=i.e.r)for(var m=i.s.c;m<=i.e.c;++m){h===i.s.r&&(o[m]=Lr(m)),a=o[m]+s;var g=c?(t[h]||[])[m]:t[a];if(!g){p=!1;continue}p=u4e(e,g,h,m,n,t,p)}}Me(e,146)}function h4e(e,t){!t||!t["!merges"]||(Me(e,177,XAe(t["!merges"].length)),t["!merges"].forEach(function(r){Me(e,176,GAe(r))}),Me(e,178))}function d4e(e,t){!t||!t["!cols"]||(Me(e,390),t["!cols"].forEach(function(r,n){r&&Me(e,60,e4e(n,r))}),Me(e,391))}function p4e(e,t){!t||!t["!ref"]||(Me(e,648),Me(e,649,a4e(zt(t["!ref"]))),Me(e,650))}function m4e(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=er(r,-1,n[1].Target.replace(/#.*$/,""),Rt.HLINK);Me(e,494,KAe(n,i))}}),delete t["!links"]}function g4e(e,t,r,n){if(t["!comments"].length>0){var i=er(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Rt.VML);Me(e,551,q3("rId"+i)),t["!legacy"]=i}}function v4e(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a=typeof i.ref=="string"?i.ref:wt(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,o=pa(a);o.s.r==o.e.r&&(o.e.r=pa(t["!ref"]).e.r,a=wt(o));for(var c=0;c<s.length;++c){var f=s[c];if(f.Name=="_xlnm._FilterDatabase"&&f.Sheet==n){f.Ref="'"+r.SheetNames[n]+"'!"+a;break}}c==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),Me(e,161,lh(zt(a))),Me(e,162)}}function x4e(e,t,r){Me(e,133),Me(e,137,i4e(t,r)),Me(e,138),Me(e,134)}function y4e(e,t){t["!protect"]&&Me(e,535,s4e(t["!protect"]))}function _4e(e,t,r,n){var i=fa(),a=r.SheetNames[e],s=r.Sheets[a]||{},o=a;try{r&&r.Workbook&&(o=r.Workbook.Sheets[e].CodeName||o)}catch{}var c=zt(s["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Me(i,129),(r.vbaraw||s["!outline"])&&Me(i,147,dAe(o,s["!outline"])),Me(i,148,uAe(c)),x4e(i,s,r.Workbook),d4e(i,s),f4e(i,s,e,t),y4e(i,s),v4e(i,s,r,e),h4e(i,s),m4e(i,s,n),s["!margins"]&&Me(i,476,r4e(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&p4e(i,s),g4e(i,s,e,n),Me(i,130),i.end()}function b4e(e){var t=[],r=e.match(/^<c:numCache>/),n;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(a){var s=a.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);s&&(t[+s[1]]=r?+s[2]:s[2])});var i=Ut((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(a){n=a.replace(/<.*?>/g,"")}),[t,i,n]}function w4e(e,t,r,n,i,a){var s=a||{"!type":"chart"};if(!e)return a;var o=0,c=0,f="A",h={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(p){var m=b4e(p);h.s.r=h.s.c=0,h.e.c=o,f=Lr(o),m[0].forEach(function(g,y){s[f+sn(y)]={t:"n",v:g,z:m[1]},c=y}),h.e.r<c&&(h.e.r=c),++o}),o>0&&(s["!ref"]=wt(h)),s}function S4e(e,t,r,n,i){if(!e)return e;n||(n={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s,o=e.match(h$);return o&&sC(o[0],a,i,r),(s=e.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=s[1]),n["!id"][a["!rel"]]&&(a["!drawel"]=n["!id"][a["!rel"]]),a}function E4e(e,t){e.l+=10;var r=Oi(e);return{name:r}}function T4e(e,t,r,n,i){if(!e)return e;n||(n={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s=!1;return bl(e,function(c,f,h){switch(h){case 550:a["!rel"]=c;break;case 651:i.Sheets[r]||(i.Sheets[r]={}),c.name&&(i.Sheets[r].CodeName=c.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!(f.T>0)){if(!(f.T<0)){if(!s||t.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}}},t),n["!id"][a["!rel"]]&&(a["!drawel"]=n["!id"][a["!rel"]]),a}var oC=[["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"]],A4e=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],C4e=[],O4e=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function PF(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],i=0;i!=t.length;++i){var a=t[i];if(n[a[0]]==null)n[a[0]]=a[1];else switch(a[2]){case"bool":typeof n[a[0]]=="string"&&(n[a[0]]=_r(n[a[0]]));break;case"int":typeof n[a[0]]=="string"&&(n[a[0]]=parseInt(n[a[0]],10));break}}}function MF(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=_r(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function g$(e){MF(e.WBProps,oC),MF(e.CalcPr,O4e),PF(e.WBView,A4e),PF(e.Sheets,C4e),y0.date1904=_r(e.WBProps.date1904)}function k4e(e){return!e.Workbook||!e.Workbook.WBProps?"false":_r(e.Workbook.WBProps.date1904)?"true":"false"}var D4e="][*?/\\".split("");function v$(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return D4e.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function P4e(e,t,r){e.forEach(function(n,i){v$(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(r){var s=t&&t[i]&&t[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function M4e(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||[];P4e(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)kTe(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}var R4e=/<\w+:workbook/;function N4e(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,i="xmlns",a={},s=0;if(e.replace(Pi,function(c,f){var h=mt(c);switch(So(h[0])){case"<?xml":break;case"<workbook":c.match(R4e)&&(i="xmlns"+c.match(/<(\w+):/)[1]),r.xmlns=h[i];break;case"</workbook>":break;case"<fileVersion":delete h[0],r.AppVersion=h;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":oC.forEach(function(p){if(h[p[0]]!=null)switch(p[2]){case"bool":r.WBProps[p[0]]=_r(h[p[0]]);break;case"int":r.WBProps[p[0]]=parseInt(h[p[0]],10);break;default:r.WBProps[p[0]]=h[p[0]]}}),h.codeName&&(r.WBProps.CodeName=lr(h.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete h[0],r.WBView.push(h);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(h.state){case"hidden":h.Hidden=1;break;case"veryHidden":h.Hidden=2;break;default:h.Hidden=0}delete h.state,h.name=Ut(lr(h.name)),delete h[0],r.Sheets.push(h);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":n=!0;break;case"</definedNames>":n=!1;break;case"<definedName":a={},a.Name=lr(h.name),h.comment&&(a.Comment=h.comment),h.localSheetId&&(a.Sheet=+h.localSheetId),_r(h.hidden||"0")&&(a.Hidden=!0),s=f+c.length;break;case"</definedName>":a.Ref=Ut(lr(e.slice(s,f))),r.Names.push(a);break;case"<definedName/>":break;case"<calcPr":delete h[0],r.CalcPr=h;break;case"<calcPr/>":delete h[0],r.CalcPr=h;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</AlternateContent>":n=!1;break;case"<revisionPtr":break;default:if(!n&&t.WTF)throw new Error("unrecognized "+h[0]+" in workbook")}return c}),Ju.indexOf(r.xmlns)===-1)throw new Error("Unknown Namespace: "+r.xmlns);return g$(r),r}function x$(e){var t=[ln];t[t.length]=$e("workbook",null,{xmlns:Ju[0],"xmlns:r":kn.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(oC.forEach(function(o){e.Workbook.WBProps[o[0]]!=null&&e.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=e.Workbook.WBProps[o[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=$e("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:rr(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=$e("sheet",null,s)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(o){var c={name:o.Name};o.Comment&&(c.comment=o.Comment),o.Sheet!=null&&(c.localSheetId=""+o.Sheet),o.Hidden&&(c.hidden="1"),o.Ref&&(t[t.length]=$e("definedName",rr(o.Ref),c))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function F4e(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=fT(e),r.name=Oi(e),r}function L4e(e,t){return t||(t=Ce(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),q3(e.strRelID,t),Wn(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function I4e(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Oi(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 B4e(e,t){t||(t=Ce(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),cH(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function j4e(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function U4e(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=g2e(e),s=STe(e,0,r),o=W3(e);e.l=n;var c={Name:a,Ptg:s};return i<268435455&&(c.Sheet=i),o&&(c.Comment=o),c}function z4e(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],i=!1;t||(t={}),t.biff=12;var a=[],s=[[]];return s.SheetNames=[],s.XTI=[],Xp[16]={n:"BrtFRTArchID$",f:j4e},bl(e,function(c,f,h){switch(h){case 156:s.SheetNames.push(c.name),r.Sheets.push(c);break;case 153:r.WBProps=c;break;case 39:c.Sheet!=null&&(t.SID=c.Sheet),c.Ref=vi(c.Ptg,null,null,s,t),delete t.SID,delete c.Ptg,a.push(c);break;case 1036:break;case 357:case 358:case 355:case 667:s[0].length?s.push([h,c]):s[0]=[h,c],s[s.length-1].XTI=[];break;case 362:s.length===0&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(c),s.XTI=s.XTI.concat(c);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(h),i=!0;break;case 36:n.pop(),i=!1;break;case 37:n.push(h),i=!0;break;case 38:n.pop(),i=!1;break;case 16:break;default:if(!f.T){if(!i||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+h.toString(16))}}},t),g$(r),r.Names=a,r.supbooks=s,r}function V4e(e,t){Me(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]};Me(e,156,L4e(i))}Me(e,144)}function H4e(e,t){t||(t=Ce(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return Wn("SheetJS",t),Wn(ox.version,t),Wn(ox.version,t),Wn("7262",t),t.length>t.l?t.slice(0,t.l):t}function $4e(e,t){t||(t=Ce(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 W4e(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,a=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&a==-1&&(a=n);a>i||(Me(e,135),Me(e,158,$4e(i)),Me(e,136))}}function q4e(e,t){var r=fa();return Me(r,131),Me(r,128,H4e()),Me(r,153,B4e(e.Workbook&&e.Workbook.WBProps||null)),W4e(r,e),V4e(r,e),Me(r,132),r.end()}function G4e(e,t,r){return t.slice(-4)===".bin"?z4e(e,r):N4e(e,r)}function X4e(e,t,r,n,i,a,s,o){return t.slice(-4)===".bin"?c4e(e,n,r,i,a,s,o):UTe(e,n,r,i,a,s,o)}function Y4e(e,t,r,n,i,a,s,o){return t.slice(-4)===".bin"?T4e(e,n,r,i,a):S4e(e,n,r,i,a)}function K4e(e,t,r,n,i,a,s,o){return t.slice(-4)===".bin"?QSe():JSe()}function Z4e(e,t,r,n,i,a,s,o){return t.slice(-4)===".bin"?KSe():ZSe()}function Q4e(e,t,r,n){return t.slice(-4)===".bin"?Gwe(e,r,n):Fwe(e,r,n)}function J4e(e,t,r){return QH(e,r)}function e3e(e,t,r){return t.slice(-4)===".bin"?ewe(e,r):Zbe(e,r)}function t3e(e,t,r){return t.slice(-4)===".bin"?WSe(e,r):LSe(e,r)}function r3e(e,t,r){return t.slice(-4)===".bin"?RSe(e):PSe(e)}function n3e(e,t,r,n){return r.slice(-4)===".bin"?NSe(e,t,r,n):void 0}function i3e(e,t,r){return t.slice(-4)===".bin"?OSe(e,t,r):DSe(e,t,r)}function a3e(e,t,r){return(t.slice(-4)===".bin"?q4e:x$)(e)}function s3e(e,t,r,n,i){return(t.slice(-4)===".bin"?_4e:d$)(e,r,n,i)}function o3e(e,t,r){return(t.slice(-4)===".bin"?nSe:KH)(e,r)}function l3e(e,t,r){return(t.slice(-4)===".bin"?nwe:VH)(e,r)}function c3e(e,t,r){return(t.slice(-4)===".bin"?qSe:t$)(e)}function u3e(e){return(e.slice(-4)===".bin"?kSe:JH)()}var y$=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,_$=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Ls(e,t){var r=e.split(/\s+/),n=[];if(n[0]=r[0],r.length===1)return n;var i=e.match(y$),a,s,o,c;if(i)for(c=0;c!=i.length;++c)a=i[c].match(_$),(s=a[1].indexOf(":"))===-1?n[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?o="xmlns"+a[1].slice(6):o=a[1].slice(s+1),n[o]=a[2].slice(1,a[2].length-1));return n}function f3e(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(y$),i,a,s,o;if(n)for(o=0;o!=n.length;++o)i=n[o].match(_$),(a=i[1].indexOf(":"))===-1?r[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?s="xmlns"+i[1].slice(6):s=i[1].slice(a+1),r[s]=i[2].slice(1,i[2].length-1));return r}var sp;function h3e(e,t){var r=sp[e]||Ut(e);return r==="General"?zu(t):Os(r,t)}function d3e(e,t,r,n){var i=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=_r(n);break;case"i2":case"int":i=parseInt(n,10);break;case"r4":case"float":i=parseFloat(n);break;case"date":case"dateTime.tz":i=br(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Ut(t)]=i}function p3e(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||wl[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=jp(e.v):e.w=zu(e.v):e.w=h3e(t||"General",e.v)}catch(a){if(r.WTF)throw a}try{var n=sp[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&ah(n)){var i=fu(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(a){if(r.WTF)throw a}}}function m3e(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=Cwe[n.Pattern]||n.Pattern)}e[t.ID]=t}function g3e(e,t,r,n,i,a,s,o,c,f){var h="General",p=n.StyleID,m={};f=f||{};var g=[],y=0;for(p===void 0&&o&&(p=o.StyleID),p===void 0&&s&&(p=s.StyleID);a[p]!==void 0&&(a[p].nf&&(h=a[p].nf),a[p].Interior&&g.push(a[p].Interior),!!a[p].Parent);)p=a[p].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=_r(e);break;case"String":n.t="s",n.r=YN(Ut(e)),n.v=e.indexOf("<")>-1?Ut(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(br(e)-new Date(Date.UTC(1899,11,30)))/(1440*60*1e3),n.v!==n.v?n.v=Ut(e):n.v<60&&(n.v=n.v-1),(!h||h=="General")&&(h="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=pH[e],f.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=YN(t||e));break}if(p3e(n,h,f),f.cellFormula!==!1)if(n.Formula){var x=Ut(n.Formula);x.charCodeAt(0)==61&&(x=x.slice(1)),n.f=x0(x,i),delete n.Formula,n.ArrayRange=="RC"?n.F=x0("RC:RC",i):n.ArrayRange&&(n.F=x0(n.ArrayRange,i),c.push([zt(n.F),n.F]))}else for(y=0;y<c.length;++y)i.r>=c[y][0].s.r&&i.r<=c[y][0].e.r&&i.c>=c[y][0].s.c&&i.c<=c[y][0].e.c&&(n.F=c[y][1]);f.cellStyles&&(g.forEach(function(_){!m.patternType&&_.patternType&&(m.patternType=_.patternType)}),n.s=m),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function v3e(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,`
`).replace(/\r/g,`
`),e.v=e.w=e.ixfe=void 0}function iS(e,t){var r=t||{};sh();var n=Pd(j3(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=lr(n));var i=n.slice(0,1024).toLowerCase(),a=!1;if(i=i.replace(/".*?"/g,""),(i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var s=wr(r);return s.type="string",U0.to_workbook(n,s)}if(i.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(yt){i.indexOf("<"+yt)>=0&&(a=!0)}),a)return rCe(n,r);sp={"General Number":"General","General Date":ct[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":ct[15],"Short Date":ct[14],"Long Time":ct[19],"Medium Time":ct[18],"Short Time":ct[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:ct[2],Standard:ct[4],Percent:ct[10],Scientific:ct[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var o,c=[],f,h={},p=[],m=r.dense?[]:{},g="",y={},x={},_=Ls('<Data ss:Type="String">'),w=0,T=0,S=0,O={s:{r:2e6,c:2e6},e:{r:0,c:0}},C={},k={},D="",M=0,N=[],z={},H={},B=0,te=[],ne=[],le={},Q=[],ee,ce=!1,J=[],R=[],se={},F=0,V=0,q={Sheets:[],WBProps:{date1904:!1}},X={};Vp.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var ae="";o=Vp.exec(n);)switch(o[3]=(ae=o[3]).toLowerCase()){case"data":if(ae=="data"){if(o[1]==="/"){if((f=c.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&c.push([o[3],!0]);break}if(c[c.length-1][1])break;o[1]==="/"?g3e(n.slice(w,o.index),D,_,c[c.length-1][0]=="comment"?le:y,{c:T,r:S},C,Q[T],x,J,r):(D="",_=Ls(o[0]),w=o.index+o[0].length);break;case"cell":if(o[1]==="/")if(ne.length>0&&(y.c=ne),(!r.sheetRows||r.sheetRows>S)&&y.v!==void 0&&(r.dense?(m[S]||(m[S]=[]),m[S][T]=y):m[Lr(T)+sn(S)]=y),y.HRef&&(y.l={Target:Ut(y.HRef)},y.HRefScreenTip&&(y.l.Tooltip=y.HRefScreenTip),delete y.HRef,delete y.HRefScreenTip),(y.MergeAcross||y.MergeDown)&&(F=T+(parseInt(y.MergeAcross,10)|0),V=S+(parseInt(y.MergeDown,10)|0),N.push({s:{c:T,r:S},e:{c:F,r:V}})),!r.sheetStubs)y.MergeAcross?T=F+1:++T;else if(y.MergeAcross||y.MergeDown){for(var Se=T;Se<=F;++Se)for(var Te=S;Te<=V;++Te)(Se>T||Te>S)&&(r.dense?(m[Te]||(m[Te]=[]),m[Te][Se]={t:"z"}):m[Lr(Se)+sn(Te)]={t:"z"});T=F+1}else++T;else y=f3e(o[0]),y.Index&&(T=+y.Index-1),T<O.s.c&&(O.s.c=T),T>O.e.c&&(O.e.c=T),o[0].slice(-2)==="/>"&&++T,ne=[];break;case"row":o[1]==="/"||o[0].slice(-2)==="/>"?(S<O.s.r&&(O.s.r=S),S>O.e.r&&(O.e.r=S),o[0].slice(-2)==="/>"&&(x=Ls(o[0]),x.Index&&(S=+x.Index-1)),T=0,++S):(x=Ls(o[0]),x.Index&&(S=+x.Index-1),se={},(x.AutoFitHeight=="0"||x.Height)&&(se.hpx=parseInt(x.Height,10),se.hpt=Gp(se.hpx),R[S]=se),x.Hidden=="1"&&(se.hidden=!0,R[S]=se));break;case"worksheet":if(o[1]==="/"){if((f=c.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"));p.push(g),O.s.r<=O.e.r&&O.s.c<=O.e.c&&(m["!ref"]=wt(O),r.sheetRows&&r.sheetRows<=O.e.r&&(m["!fullref"]=m["!ref"],O.e.r=r.sheetRows-1,m["!ref"]=wt(O))),N.length&&(m["!merges"]=N),Q.length>0&&(m["!cols"]=Q),R.length>0&&(m["!rows"]=R),h[g]=m}else O={s:{r:2e6,c:2e6},e:{r:0,c:0}},S=T=0,c.push([o[3],!1]),f=Ls(o[0]),g=Ut(f.Name),m=r.dense?[]:{},N=[],J=[],R=[],X={name:g,Hidden:0},q.Sheets.push(X);break;case"table":if(o[1]==="/"){if((f=c.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else{if(o[0].slice(-2)=="/>")break;c.push([o[3],!1]),Q=[],ce=!1}break;case"style":o[1]==="/"?m3e(C,k,r):k=Ls(o[0]);break;case"numberformat":k.nf=Ut(Ls(o[0]).Format||"General"),sp[k.nf]&&(k.nf=sp[k.nf]);for(var ue=0;ue!=392&&ct[ue]!=k.nf;++ue);if(ue==392){for(ue=57;ue!=392;++ue)if(ct[ue]==null){Jo(k.nf,ue);break}}break;case"column":if(c[c.length-1][0]!=="table")break;if(ee=Ls(o[0]),ee.Hidden&&(ee.hidden=!0,delete ee.Hidden),ee.Width&&(ee.wpx=parseInt(ee.Width,10)),!ce&&ee.wpx>10){ce=!0,yi=XH;for(var xe=0;xe<Q.length;++xe)Q[xe]&&gc(Q[xe])}ce&&gc(ee),Q[ee.Index-1||Q.length]=ee;for(var Ne=0;Ne<+ee.Span;++Ne)Q[Q.length]=wr(ee);break;case"namedrange":if(o[1]==="/")break;q.Names||(q.Names=[]);var j=mt(o[0]),ze={Name:j.Name,Ref:x0(j.RefersTo.slice(1),{r:0,c:0})};q.Sheets.length>0&&(ze.Sheet=q.Sheets.length-1),q.Names.push(ze);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(o[0].slice(-2)==="/>")break;o[1]==="/"?D+=n.slice(M,o.index):M=o.index+o[0].length;break;case"interior":if(!r.cellStyles)break;k.Interior=Ls(o[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(o[0].slice(-2)==="/>")break;o[1]==="/"?z2e(z,ae,n.slice(B,o.index)):B=o.index+o[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(o[1]==="/"){if((f=c.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else c.push([o[3],!1]);break;case"comment":if(o[1]==="/"){if((f=c.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"));v3e(le),ne.push(le)}else c.push([o[3],!1]),f=Ls(o[0]),le={a:f.Author};break;case"autofilter":if(o[1]==="/"){if((f=c.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else if(o[0].charAt(o[0].length-2)!=="/"){var Le=Ls(o[0]);m["!autofilter"]={ref:x0(Le.Range).replace(/\$/g,"")},c.push([o[3],!0])}break;case"name":break;case"datavalidation":if(o[1]==="/"){if((f=c.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&c.push([o[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(o[1]==="/"){if((f=c.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&c.push([o[3],!0]);break;case"null":break;default:if(c.length==0&&o[3]=="document"||c.length==0&&o[3]=="uof")return IF(n,r);var He=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:He=!1}break;case"componentoptions":switch(o[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:He=!1}break;case"excelworkbook":switch(o[3]){case"date1904":q.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:He=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":break;case"height":break;case"width":break;default:He=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if(o[0].slice(-2)!=="/>")if(o[1]==="/")switch(n.slice(B,o.index)){case"SheetHidden":X.Hidden=1;break;case"SheetVeryHidden":X.Hidden=2;break}else B=o.index+o[0].length;break;case"header":m["!margins"]||ku(m["!margins"]={},"xlml"),isNaN(+mt(o[0]).Margin)||(m["!margins"].header=+mt(o[0]).Margin);break;case"footer":m["!margins"]||ku(m["!margins"]={},"xlml"),isNaN(+mt(o[0]).Margin)||(m["!margins"].footer=+mt(o[0]).Margin);break;case"pagemargins":var Xe=mt(o[0]);m["!margins"]||ku(m["!margins"]={},"xlml"),isNaN(+Xe.Top)||(m["!margins"].top=+Xe.Top),isNaN(+Xe.Left)||(m["!margins"].left=+Xe.Left),isNaN(+Xe.Right)||(m["!margins"].right=+Xe.Right),isNaN(+Xe.Bottom)||(m["!margins"].bottom=+Xe.Bottom);break;case"displayrighttoleft":q.Views||(q.Views=[]),q.Views[0]||(q.Views[0]={}),q.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:He=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:He=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:He=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:He=!1}break;case"querytable":switch(o[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:He=!1}break;case"datavalidation":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:He=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:He=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:He=!1}break;case"smarttags":break;default:He=!1;break}if(He||o[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+c.join("|");if(c[c.length-1][0]==="customdocumentproperties"){if(o[0].slice(-2)==="/>")break;o[1]==="/"?d3e(H,ae,te,n.slice(B,o.index)):(te=o,B=o.index+o[0].length);break}if(r.WTF)throw"Unrecognized tag: "+o[3]+"|"+c.join("|")}var ie={};return!r.bookSheets&&!r.bookProps&&(ie.Sheets=h),ie.SheetNames=p,ie.Workbook=q,ie.SSF=wr(ct),ie.Props=z,ie.Custprops=H,ie}function xT(e,t){switch(cC(t=t||{}),t.type||"base64"){case"base64":return iS(Wa(e),t);case"binary":case"buffer":case"file":return iS(e,t);case"array":return iS(Tc(e),t)}}function x3e(e,t){var r=[];return e.Props&&r.push(V2e(e.Props,t)),e.Custprops&&r.push(H2e(e.Props,e.Custprops)),r.join("")}function y3e(){return""}function _3e(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var a=[];a.push($e("NumberFormat",null,{"ss:Format":rr(ct[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};r.push($e("Style",a.join(""),s))}),$e("Styles",r.join(""))}function b$(e){return $e("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+nC(e.Ref,{r:0,c:0})})}function b3e(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(b$(i)))}return $e("Names",r.join(""))}function w3e(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var o=i[s];o.Sheet==r&&(o.Name.match(/^_xlfn\./)||a.push(b$(o)))}return a.join("")}function S3e(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push($e("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push($e("Footer",null,{"x:Margin":e["!margins"].footer})),i.push($e("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($e("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<r&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(ii("ProtectContents","True")),e["!protect"].objects&&i.push(ii("ProtectObjects","True")),e["!protect"].scenarios&&i.push(ii("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(ii("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(ii("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(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":$e("WorksheetOptions",i.join(""),{xmlns:Da.x})}function E3e(e){return e.map(function(t){var r=Wye(t.t||""),n=$e("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return $e("Comment",n,{"ss:Author":t.a})}).join("")}function T3e(e,t,r,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var o={};if(e.f&&(o["ss:Formula"]="="+rr(nC(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var c=Ir(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(c.r==s.r?"":"["+(c.r-s.r)+"]")+"C"+(c.c==s.c?"":"["+(c.c-s.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=rr(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=rr(e.l.Tooltip))),r["!merges"])for(var f=r["!merges"],h=0;h!=f.length;++h)f[h].s.c!=s.c||f[h].s.r!=s.r||(f[h].e.c>f[h].s.c&&(o["ss:MergeAcross"]=f[h].e.c-f[h].s.c),f[h].e.r>f[h].s.r&&(o["ss:MergeDown"]=f[h].e.r-f[h].s.r));var p="",m="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",m=String(e.v);break;case"b":p="Boolean",m=e.v?"1":"0";break;case"e":p="Error",m=wl[e.v];break;case"d":p="DateTime",m=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||ct[14]);break;case"s":p="String",m=$ye(e.v||"");break}var g=Cc(n.cellXfs,e,n);o["ss:StyleID"]="s"+(21+g),o["ss:Index"]=s.c+1;var y=e.v!=null?m:"",x=e.t=="z"?"":'<Data ss:Type="'+p+'">'+y+"</Data>";return(e.c||[]).length>0&&(x+=E3e(e.c)),$e("Cell",x,o)}function A3e(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=z0(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function C3e(e,t,r,n){if(!e["!ref"])return"";var i=zt(e["!ref"]),a=e["!merges"]||[],s=0,o=[];e["!cols"]&&e["!cols"].forEach(function(_,w){gc(_);var T=!!_.width,S=by(w,_),O={"ss:Index":w+1};T&&(O["ss:Width"]=Wp(S.width)),_.hidden&&(O["ss:Hidden"]="1"),o.push($e("Column",null,O))});for(var c=Array.isArray(e),f=i.s.r;f<=i.e.r;++f){for(var h=[A3e(f,(e["!rows"]||[])[f])],p=i.s.c;p<=i.e.c;++p){var m=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>p)&&!(a[s].s.r>f)&&!(a[s].e.c<p)&&!(a[s].e.r<f)){(a[s].s.c!=p||a[s].s.r!=f)&&(m=!0);break}if(!m){var g={r:f,c:p},y=ht(g),x=c?(e[f]||[])[p]:e[y];h.push(T3e(x,y,e,t,r,n,g))}}h.push("</Row>"),h.length>2&&o.push(h.join(""))}return o.join("")}function O3e(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],s=a?w3e(a,t,e,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?C3e(a,t,e,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(S3e(a,t,e,r)),n.join("")}function k3e(e,t){t||(t={}),e.SSF||(e.SSF=wr(ct)),e.SSF&&(sh(),py(e.SSF),t.revssf=gy(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Cc(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(x3e(e,t)),r.push(y3e()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push($e("Worksheet",O3e(n,t,e),{"ss:Name":rr(e.SheetNames[n])}));return r[2]=_3e(e,t),r[3]=b3e(e),ln+$e("Workbook",r.join(""),{xmlns:Da.ss,"xmlns:o":Da.o,"xmlns:x":Da.x,"xmlns:ss":Da.ss,"xmlns:dt":Da.dt,"xmlns:html":Da.html})}function D3e(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=b2e(r),r.length-r.l<=4)return t;var n=r.read_shift(4);if(n==0||n>40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(t.UnicodeClipboardFormat=w2e(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var P3e=[60,1084,2066,2165,2175];function M3e(e,t,r,n,i){var a=n,s=[],o=r.slice(r.l,r.l+a);if(i&&i.enc&&i.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(o)}s.push(o),r.l+=a;for(var c=Go(r,r.l),f=yT[c],h=0;f!=null&&P3e.indexOf(c)>-1;)a=Go(r,r.l+2),h=r.l+4,c==2066?h+=4:(c==2165||c==2175)&&(h+=12),o=r.slice(h,r.l+4+a),s.push(o),r.l+=4+a,f=yT[c=Go(r,r.l)];var p=$n(s);ni(p,0);var m=0;p.lens=[];for(var g=0;g<s.length;++g)p.lens.push(m),m+=s[g].length;if(p.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+p.length+" < "+n;return t.f(p,p.length,i)}function ro(e,t,r){if(e.t!=="z"&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=ct[n])}catch(a){if(t.WTF)throw a}if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||wl[e.v]:n===0||n=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=jp(e.v):e.w=zu(e.v):e.w=Os(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(a){if(t.WTF)throw a}if(t.cellDates&&n&&e.t=="n"&&ah(ct[n]||String(n))){var i=fu(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function Cg(e,t,r){return{v:e,ixfe:t,t:r}}function R3e(e,t){var r={opts:{}},n={},i=t.dense?[]:{},a={},s={},o=null,c=[],f="",h={},p,m="",g,y,x,_,w={},T=[],S,O,C=[],k=[],D={Sheets:[],WBProps:{date1904:!1},Views:[{}]},M={},N=function(je){return je<8?Au[je]:je<64&&k[je-8]||Au[je]},z=function(je,Ye,Ge){var at=Ye.XF.data;if(!(!at||!at.patternType||!Ge||!Ge.cellStyles)){Ye.s={},Ye.s.patternType=at.patternType;var vt;(vt=$p(N(at.icvFore)))&&(Ye.s.fgColor={rgb:vt}),(vt=$p(N(at.icvBack)))&&(Ye.s.bgColor={rgb:vt})}},H=function(je,Ye,Ge){if(!(se>1)&&!(Ge.sheetRows&&je.r>=Ge.sheetRows)){if(Ge.cellStyles&&Ye.XF&&Ye.XF.data&&z(je,Ye,Ge),delete Ye.ixfe,delete Ye.XF,p=je,m=ht(je),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),je.r<s.s.r&&(s.s.r=je.r),je.c<s.s.c&&(s.s.c=je.c),je.r+1>s.e.r&&(s.e.r=je.r+1),je.c+1>s.e.c&&(s.e.c=je.c+1),Ge.cellFormula&&Ye.f){for(var at=0;at<T.length;++at)if(!(T[at][0].s.c>je.c||T[at][0].s.r>je.r)&&!(T[at][0].e.c<je.c||T[at][0].e.r<je.r)){Ye.F=wt(T[at][0]),(T[at][0].s.c!=je.c||T[at][0].s.r!=je.r)&&delete Ye.f,Ye.f&&(Ye.f=""+vi(T[at][1],s,je,J,B));break}}Ge.dense?(i[je.r]||(i[je.r]=[]),i[je.r][je.c]=Ye):i[m]=Ye}},B={enc:!1,sbcch:0,snames:[],sharedf:w,arrayf:T,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(B.password=t.password);var te,ne=[],le=[],Q=[],ee=[],ce=!1,J=[];J.SheetNames=B.snames,J.sharedf=B.sharedf,J.arrayf=B.arrayf,J.names=[],J.XTI=[];var R=0,se=0,F=0,V=[],q=[],X;B.codepage=1200,Hs(1200);for(var ae=!1;e.l<e.length-1;){var Se=e.l,Te=e.read_shift(2);if(Te===0&&R===10)break;var ue=e.l===e.length?0:e.read_shift(2),xe=yT[Te];if(xe&&xe.f){if(t.bookSheets&&R===133&&Te!==133)break;if(R=Te,xe.r===2||xe.r==12){var Ne=e.read_shift(2);if(ue-=2,!B.enc&&Ne!==Te&&((Ne&255)<<8|Ne>>8)!==Te)throw new Error("rt mismatch: "+Ne+"!="+Te);xe.r==12&&(e.l+=10,ue-=10)}var j={};if(Te===10?j=xe.f(e,ue,B):j=M3e(Te,xe,e,ue,B),se==0&&[9,521,1033,2057].indexOf(R)===-1)continue;switch(Te){case 34:r.opts.Date1904=D.WBProps.date1904=j;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(B.enc||(e.l=0),B.enc=j,!t.password)throw new Error("File is password-protected");if(j.valid==null)throw new Error("Encryption scheme unsupported");if(!j.valid)throw new Error("Password is incorrect");break;case 92:B.lastuser=j;break;case 66:var ze=Number(j);switch(ze){case 21010:ze=1200;break;case 32768:ze=1e4;break;case 32769:ze=1252;break}Hs(B.codepage=ze),ae=!0;break;case 317:B.rrtabid=j;break;case 25:B.winlocked=j;break;case 439:r.opts.RefreshAll=j;break;case 12:r.opts.CalcCount=j;break;case 16:r.opts.CalcDelta=j;break;case 17:r.opts.CalcIter=j;break;case 13:r.opts.CalcMode=j;break;case 14:r.opts.CalcPrecision=j;break;case 95:r.opts.CalcSaveRecalc=j;break;case 15:B.CalcRefMode=j;break;case 2211:r.opts.FullCalc=j;break;case 129:j.fDialog&&(i["!type"]="dialog"),j.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),j.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:C.push(j);break;case 430:J.push([j]),J[J.length-1].XTI=[];break;case 35:case 547:J[J.length-1].push(j);break;case 24:case 536:X={Name:j.Name,Ref:vi(j.rgce,s,null,J,B)},j.itab>0&&(X.Sheet=j.itab-1),J.names.push(X),J[0]||(J[0]=[],J[0].XTI=[]),J[J.length-1].push(j),j.Name=="_xlnm._FilterDatabase"&&j.itab>0&&j.rgce&&j.rgce[0]&&j.rgce[0][0]&&j.rgce[0][0][0]=="PtgArea3d"&&(q[j.itab-1]={ref:wt(j.rgce[0][0][1][2])});break;case 22:B.ExternCount=j;break;case 23:J.length==0&&(J[0]=[],J[0].XTI=[]),J[J.length-1].XTI=J[J.length-1].XTI.concat(j),J.XTI=J.XTI.concat(j);break;case 2196:if(B.biff<8)break;X!=null&&(X.Comment=j[1]);break;case 18:i["!protect"]=j;break;case 19:j!==0&&B.WTF&&console.error("Password verifier: "+j);break;case 133:a[j.pos]=j,B.snames.push(j.name);break;case 10:{if(--se)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,i["!ref"]=wt(s),t.sheetRows&&t.sheetRows<=s.e.r){var Le=s.e.r;s.e.r=t.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=wt(s),s.e.r=Le}s.e.r++,s.e.c++}ne.length>0&&(i["!merges"]=ne),le.length>0&&(i["!objects"]=le),Q.length>0&&(i["!cols"]=Q),ee.length>0&&(i["!rows"]=ee),D.Sheets.push(M)}f===""?h=i:n[f]=i,i=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(B.biff===8&&(B.biff={9:2,521:3,1033:4}[Te]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[j.BIFFVer]||8),B.biffguess=j.BIFFVer==0,j.BIFFVer==0&&j.dt==4096&&(B.biff=5,ae=!0,Hs(B.codepage=28591)),B.biff==8&&j.BIFFVer==0&&j.dt==16&&(B.biff=2),se++)break;if(i=t.dense?[]:{},B.biff<8&&!ae&&(ae=!0,Hs(B.codepage=t.codepage||1252)),B.biff<5||j.BIFFVer==0&&j.dt==4096){f===""&&(f="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var He={pos:e.l-ue,name:f};a[He.pos]=He,B.snames.push(f)}else f=(a[Se]||{name:""}).name;j.dt==32&&(i["!type"]="chart"),j.dt==64&&(i["!type"]="macro"),ne=[],le=[],B.arrayf=T=[],Q=[],ee=[],ce=!1,M={Hidden:(a[Se]||{hs:0}).hs,name:f}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(t.dense?(i[j.r]||[])[j.c]:i[ht({c:j.c,r:j.r})])&&++j.c,S={ixfe:j.ixfe,XF:C[j.ixfe]||{},v:j.val,t:"n"},F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H({c:j.c,r:j.r},S,t);break;case 5:case 517:S={ixfe:j.ixfe,XF:C[j.ixfe],v:j.val,t:j.t},F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H({c:j.c,r:j.r},S,t);break;case 638:S={ixfe:j.ixfe,XF:C[j.ixfe],v:j.rknum,t:"n"},F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H({c:j.c,r:j.r},S,t);break;case 189:for(var Xe=j.c;Xe<=j.C;++Xe){var ie=j.rkrec[Xe-j.c][0];S={ixfe:ie,XF:C[ie],v:j.rkrec[Xe-j.c][1],t:"n"},F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H({c:Xe,r:j.r},S,t)}break;case 6:case 518:case 1030:{if(j.val=="String"){o=j;break}if(S=Cg(j.val,j.cell.ixfe,j.tt),S.XF=C[S.ixfe],t.cellFormula){var yt=j.formula;if(yt&&yt[0]&&yt[0][0]&&yt[0][0][0]=="PtgExp"){var Yt=yt[0][0][1][0],Sr=yt[0][0][1][1],Tt=ht({r:Yt,c:Sr});w[Tt]?S.f=""+vi(j.formula,s,j.cell,J,B):S.F=((t.dense?(i[Yt]||[])[Sr]:i[Tt])||{}).F}else S.f=""+vi(j.formula,s,j.cell,J,B)}F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H(j.cell,S,t),o=j}break;case 7:case 519:if(o)o.val=j,S=Cg(j,o.cell.ixfe,"s"),S.XF=C[S.ixfe],t.cellFormula&&(S.f=""+vi(o.formula,s,o.cell,J,B)),F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H(o.cell,S,t),o=null;else throw new Error("String record expects Formula");break;case 33:case 545:{T.push(j);var Nn=ht(j[0].s);if(g=t.dense?(i[j[0].s.r]||[])[j[0].s.c]:i[Nn],t.cellFormula&&g){if(!o||!Nn||!g)break;g.f=""+vi(j[1],s,j[0],J,B),g.F=wt(j[0])}}break;case 1212:{if(!t.cellFormula)break;if(m){if(!o)break;w[ht(o.cell)]=j[0],g=t.dense?(i[o.cell.r]||[])[o.cell.c]:i[ht(o.cell)],(g||{}).f=""+vi(j[0],s,p,J,B)}}break;case 253:S=Cg(c[j.isst].t,j.ixfe,"s"),c[j.isst].h&&(S.h=c[j.isst].h),S.XF=C[S.ixfe],F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H({c:j.c,r:j.r},S,t);break;case 513:t.sheetStubs&&(S={ixfe:j.ixfe,XF:C[j.ixfe],t:"z"},F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H({c:j.c,r:j.r},S,t));break;case 190:if(t.sheetStubs)for(var Dr=j.c;Dr<=j.C;++Dr){var vr=j.ixfe[Dr-j.c];S={ixfe:vr,XF:C[vr],t:"z"},F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H({c:Dr,r:j.r},S,t)}break;case 214:case 516:case 4:S=Cg(j.val,j.ixfe,"s"),S.XF=C[S.ixfe],F>0&&(S.z=V[S.ixfe>>8&63]),ro(S,t,r.opts.Date1904),H({c:j.c,r:j.r},S,t);break;case 0:case 512:se===1&&(s=j);break;case 252:c=j;break;case 1054:if(B.biff==4){V[F++]=j[1];for(var It=0;It<F+163&&ct[It]!=j[1];++It);It>=163&&Jo(j[1],F+163)}else Jo(j[1],j[0]);break;case 30:{V[F++]=j;for(var xr=0;xr<F+163&&ct[xr]!=j;++xr);xr>=163&&Jo(j,F+163)}break;case 229:ne=ne.concat(j);break;case 93:le[j.cmo[0]]=B.lastobj=j;break;case 438:B.lastobj.TxO=j;break;case 127:B.lastobj.ImData=j;break;case 440:for(_=j[0].s.r;_<=j[0].e.r;++_)for(x=j[0].s.c;x<=j[0].e.c;++x)g=t.dense?(i[_]||[])[x]:i[ht({c:x,r:_})],g&&(g.l=j[1]);break;case 2048:for(_=j[0].s.r;_<=j[0].e.r;++_)for(x=j[0].s.c;x<=j[0].e.c;++x)g=t.dense?(i[_]||[])[x]:i[ht({c:x,r:_})],g&&g.l&&(g.l.Tooltip=j[1]);break;case 28:{if(B.biff<=5&&B.biff>=2)break;g=t.dense?(i[j[0].r]||[])[j[0].c]:i[ht(j[0])];var ge=le[j[2]];g||(t.dense?(i[j[0].r]||(i[j[0].r]=[]),g=i[j[0].r][j[0].c]={t:"z"}):g=i[ht(j[0])]={t:"z"},s.e.r=Math.max(s.e.r,j[0].r),s.s.r=Math.min(s.s.r,j[0].r),s.e.c=Math.max(s.e.c,j[0].c),s.s.c=Math.min(s.s.c,j[0].c)),g.c||(g.c=[]),y={a:j[1],t:ge.TxO.t},g.c.push(y)}break;case 2173:_Se(C[j.ixfe],j.ext);break;case 125:{if(!B.cellStyles)break;for(;j.e>=j.s;)Q[j.e--]={width:j.w/256,level:j.level||0,hidden:!!(j.flags&1)},ce||(ce=!0,eC(j.w/256)),gc(Q[j.e+1])}break;case 520:{var Ie={};j.level!=null&&(ee[j.r]=Ie,Ie.level=j.level),j.hidden&&(ee[j.r]=Ie,Ie.hidden=!0),j.hpt&&(ee[j.r]=Ie,Ie.hpt=j.hpt,Ie.hpx=z0(j.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||ku(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Te]]=j;break;case 161:i["!margins"]||ku(i["!margins"]={}),i["!margins"].header=j.header,i["!margins"].footer=j.footer;break;case 574:j.RTL&&(D.Views[0].RTL=!0);break;case 146:k=j;break;case 2198:te=j;break;case 140:O=j;break;case 442:f?M.CodeName=j||M.name:D.WBProps.CodeName=j||"ThisWorkbook";break}}else xe||console.error("Missing Info for XLS Record 0x"+Te.toString(16)),e.l+=ue}return r.SheetNames=Kr(a).sort(function(Re,je){return Number(Re)-Number(je)}).map(function(Re){return a[Re].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&h["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=h)):r.Preamble=h,r.Sheets&&q.forEach(function(Re,je){r.Sheets[r.SheetNames[je]]["!autofilter"]=Re}),r.Strings=c,r.SSF=wr(ct),B.enc&&(r.Encryption=B.enc),te&&(r.Themes=te),r.Metadata={},O!==void 0&&(r.Metadata.Country=O),J.names.length>0&&(D.Names=J.names),r.Workbook=D,r}var op={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function N3e(e,t,r){var n=it.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var i=dF(n,hT,op.DSI);for(var a in i)t[a]=i[a]}catch(f){if(r.WTF)throw f}var s=it.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var o=dF(s,dT,op.SI);for(var c in o)t[c]==null&&(t[c]=o[c])}catch(f){if(r.WTF)throw f}t.HeadingPairs&&t.TitlesOfParts&&(_H(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function F3e(e,t){var r=[],n=[],i=[],a=0,s,o=HN(hT,"n"),c=HN(dT,"n");if(e.Props)for(s=Kr(e.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(o,s[a])?r:Object.prototype.hasOwnProperty.call(c,s[a])?n:i).push([s[a],e.Props[s[a]]]);if(e.Custprops)for(s=Kr(e.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(o,s[a])?r:Object.prototype.hasOwnProperty.call(c,s[a])?n:i).push([s[a],e.Custprops[s[a]]]);var f=[];for(a=0;a<i.length;++a)CH.indexOf(i[a][0])>-1||yH.indexOf(i[a][0])>-1||i[a][1]!=null&&f.push(i[a]);n.length&&it.utils.cfb_add(t,"/SummaryInformation",pF(n,op.SI,c,dT)),(r.length||f.length)&&it.utils.cfb_add(t,"/DocumentSummaryInformation",pF(r,op.DSI,o,hT,f.length?f:null,op.UDI))}function w$(e,t){t||(t={}),cC(t),D3(),t.codepage&&k3(t.codepage);var r,n;if(e.FullPaths){if(it.find(e,"/encryption"))throw new Error("File is password-protected");r=it.find(e,"!CompObj"),n=it.find(e,"/Workbook")||it.find(e,"/Book")}else{switch(t.type){case"base64":e=Fa(Wa(e));break;case"binary":e=Fa(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}ni(e,0),n={content:e}}var i,a;if(r&&D3e(r),t.bookProps&&!t.bookSheets)i={};else{var s=kt?"buffer":"array";if(n&&n.content)i=R3e(n.content,t);else if((a=it.find(e,"PerfectOffice_MAIN"))&&a.content)i=Ou.to_workbook(a.content,(t.type=s,t));else if((a=it.find(e,"NativeContent_MAIN"))&&a.content)i=Ou.to_workbook(a.content,(t.type=s,t));else throw(a=it.find(e,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&it.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=XSe(e))}var o={};return e.FullPaths&&N3e(e,o,t),i.Props=i.Custprops=o,t.bookFiles&&(i.cfb=e),i}function L3e(e,t){var r=t||{},n=it.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 it.utils.cfb_add(n,i,S$(e,r)),r.biff==8&&(e.Props||e.Custprops)&&F3e(e,n),r.biff==8&&e.vbaraw&&YSe(n,it.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Xp={0:{f:sAe},1:{f:pAe},2:{f:RAe},3:{f:wAe},4:{f:xAe},5:{f:DAe},6:{f:BAe},7:{f:AAe},8:{f:WAe},9:{f:$Ae},10:{f:VAe},11:{f:HAe},12:{f:gAe},13:{f:FAe},14:{f:EAe},15:{f:_Ae},16:{f:p$},17:{f:UAe},18:{f:OAe},19:{f:$3},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:U4e},40:{},42:{},43:{f:Bwe},44:{f:Lwe},45:{f:zwe},46:{f:Hwe},47:{f:Vwe},48:{},49:{f:c2e},50:{},51:{f:SSe},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:BH},62:{f:IAe},63:{f:MSe},64:{f:o4e},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ki,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:n4e},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:hAe},148:{f:cAe,p:16},151:{f:ZAe},152:{},153:{f:I4e},154:{},155:{},156:{f:F4e},157:{},158:{},159:{T:1,f:Jbe},160:{T:-1},161:{T:1,f:nf},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:qAe},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:bSe},336:{T:-1},337:{f:ASe,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:fT},357:{},358:{},359:{},360:{T:1},361:{},362:{f:IH},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:QAe},427:{f:JAe},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:t4e},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:fAe},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:YAe},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:fT},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:HSe},633:{T:1},634:{T:-1},635:{T:1,f:zSe},636:{T:-1},637:{f:d2e},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:E4e},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:l4e},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:""}},yT={6:{f:rS},10:{f:Wl},12:{f:mn},13:{f:mn},14:{f:en},15:{f:en},16:{f:Ei},17:{f:en},18:{f:en},19:{f:mn},20:{f:_F},21:{f:_F},23:{f:IH},24:{f:wF},25:{f:en},26:{},27:{},28:{f:lbe},29:{},34:{f:en},35:{f:bF},38:{f:Ei},39:{f:Ei},40:{f:Ei},41:{f:Ei},42:{f:en},43:{f:en},47:{f:_we},49:{f:F_e},51:{f:mn},60:{},61:{f:D_e},64:{f:en},65:{f:N_e},66:{f:mn},77:{},80:{},81:{},82:{},85:{f:mn},89:{},90:{},91:{},92:{f:y_e},93:{f:fbe},94:{},95:{f:en},96:{},97:{},99:{f:en},125:{f:BH},128:{f:K_e},129:{f:b_e},130:{f:mn},131:{f:en},132:{f:en},133:{f:w_e},134:{},140:{f:ybe},141:{f:mn},144:{},146:{f:wbe},151:{},152:{},153:{},154:{},155:{},156:{f:mn},157:{},158:{},160:{f:kbe},161:{f:Tbe},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:q_e},190:{f:G_e},193:{f:Wl},197:{},198:{},199:{},200:{},201:{},202:{f:en},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:mn},220:{},221:{f:en},222:{},224:{f:Y_e},225:{f:x_e},226:{f:Wl},227:{},229:{f:cbe},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:E_e},253:{f:I_e},255:{f:A_e},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:OH},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:en},353:{f:Wl},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:tbe},431:{f:en},432:{},433:{},434:{},437:{},438:{f:pbe},439:{f:en},440:{f:mbe},441:{},442:{f:Cm},443:{},444:{f:mn},445:{},446:{},448:{f:Wl},449:{f:k_e,r:2},450:{f:Wl},512:{f:vF},513:{f:Obe},515:{f:J_e},516:{f:j_e},517:{f:yF},519:{f:Dbe},520:{f:C_e},523:{},545:{f:SF},549:{f:gF},566:{},574:{f:M_e},638:{f:W_e},659:{},1048:{},1054:{f:z_e},1084:{},1212:{f:abe},2048:{f:vbe},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Eg},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Wl},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Sbe,r:12},2173:{f:ySe,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:en,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:ibe,r:12},2197:{},2198:{f:dSe,r:12},2199:{},2200:{},2201:{},2202:{f:sbe,r:12},2203:{f:Wl},2204:{},2205:{},2206:{},2207:{},2211:{f:O_e},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:mn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Abe},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:bbe},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:vF},1:{},2:{f:Fbe},3:{f:Rbe},4:{f:Mbe},5:{f:yF},7:{f:Ibe},8:{},9:{f:Eg},11:{},22:{f:mn},30:{f:H_e},31:{},32:{},33:{f:SF},36:{},37:{f:gF},50:{f:Bbe},62:{},52:{},67:{},68:{f:mn},69:{},86:{},126:{},127:{f:Pbe},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:jbe},223:{},234:{},354:{},421:{},518:{f:rS},521:{f:Eg},536:{f:wF},547:{f:bF},561:{},579:{},1030:{f:rS},1033:{f:Eg},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function We(e,t,r,n){var i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&z3(r)&&e.push(r)}}function I3e(e,t,r,n){var i=(r||[]).length||0;if(i<=8224)return We(e,t,r,i);var a=t;if(!isNaN(a)){for(var s=r.parts||[],o=0,c=0,f=0;f+(s[o]||8224)<=8224;)f+=s[o]||8224,o++;var h=e.next(4);for(h.write_shift(2,a),h.write_shift(2,f),e.push(r.slice(c,c+f)),c+=f;c<i;){for(h=e.next(4),h.write_shift(2,60),f=0;f+(s[o]||8224)<=8224;)f+=s[o]||8224,o++;h.write_shift(2,f),e.push(r.slice(c,c+f)),c+=f}}}function Pm(e,t,r){return e||(e=Ce(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function B3e(e,t,r,n){var i=Ce(9);return Pm(i,e,t),kH(r,n||"b",i),i}function j3e(e,t,r){var n=Ce(8+2*r.length);return Pm(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 U3e(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?Pn(br(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?We(e,2,Lbe(r,n,i)):We(e,3,Nbe(r,n,i));return;case"b":case"e":We(e,5,B3e(r,n,t.v,t.t));return;case"s":case"str":We(e,4,j3e(r,n,(t.v||"").slice(0,255)));return}We(e,1,Pm(null,r,n))}function z3e(e,t,r,n){var i=Array.isArray(t),a=zt(t["!ref"]||"A1"),s,o="",c=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=wt(a)}for(var f=a.s.r;f<=a.e.r;++f){o=sn(f);for(var h=a.s.c;h<=a.e.c;++h){f===a.s.r&&(c[h]=Lr(h)),s=c[h]+o;var p=i?(t[f]||[])[h]:t[s];p&&U3e(e,p,f,h)}}}function V3e(e,t){for(var r=t||{},n=fa(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==r.sheet&&(i=a);if(i==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return We(n,r.biff==4?1033:r.biff==3?521:9,Z3(e,16,r)),z3e(n,e.Sheets[e.SheetNames[i]],i,r),We(n,10),n.end()}function H3e(e,t,r){We(e,49,L_e({sz:12,name:"Arial"},r))}function $3e(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&&We(e,1054,V_e(i,t[i],r))})}function W3e(e,t){var r=Ce(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),We(e,2151,r),r=Ce(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),NH(zt(t["!ref"]||"A1"),r),r.write_shift(4,4),We(e,2152,r)}function q3e(e,t){for(var r=0;r<16;++r)We(e,224,xF({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){We(e,224,xF(n,0,t))})}function G3e(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];We(e,440,gbe(n)),n[1].Tooltip&&We(e,2048,xbe(n))}delete t["!links"]}function X3e(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&We(e,125,Ebe(by(i,n),i))})}}function Y3e(e,t,r,n,i){var a=16+Cc(i.cellXfs,t,i);if(t.v==null&&!t.bf){We(e,513,Wu(r,n,a));return}if(t.bf)We(e,6,bTe(t,r,n,i,a));else switch(t.t){case"d":case"n":var s=t.t=="d"?Pn(br(t.v)):t.v;We(e,515,ebe(r,n,s,a));break;case"b":case"e":We(e,517,Q_e(r,n,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var o=aC(i.Strings,t.v,i.revStrings);We(e,253,B_e(r,n,o,a))}else We(e,516,U_e(r,n,(t.v||"").slice(0,255),a,i));break;default:We(e,513,Wu(r,n,a))}}function K3e(e,t,r){var n=fa(),i=r.SheetNames[e],a=r.Sheets[i]||{},s=(r||{}).Workbook||{},o=(s.Sheets||[])[e]||{},c=Array.isArray(a),f=t.biff==8,h,p="",m=[],g=zt(a["!ref"]||"A1"),y=f?65536:16384;if(g.e.c>255||g.e.r>=y){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");g.e.c=Math.min(g.e.c,255),g.e.r=Math.min(g.e.c,y-1)}We(n,2057,Z3(r,16,t)),We(n,13,ps(1)),We(n,12,ps(100)),We(n,15,Vi(!0)),We(n,17,Vi(!1)),We(n,16,Hu(.001)),We(n,95,Vi(!0)),We(n,42,Vi(!1)),We(n,43,Vi(!1)),We(n,130,ps(1)),We(n,128,Z_e()),We(n,131,Vi(!1)),We(n,132,Vi(!1)),f&&X3e(n,a["!cols"]),We(n,512,$_e(g,t)),f&&(a["!links"]=[]);for(var x=g.s.r;x<=g.e.r;++x){p=sn(x);for(var _=g.s.c;_<=g.e.c;++_){x===g.s.r&&(m[_]=Lr(_)),h=m[_]+p;var w=c?(a[x]||[])[_]:a[h];w&&(Y3e(n,w,x,_,t),f&&w.l&&a["!links"].push([h,w.l]))}}var T=o.CodeName||o.name||i;return f&&We(n,574,R_e((s.Views||[])[0])),f&&(a["!merges"]||[]).length&&We(n,229,ube(a["!merges"])),f&&G3e(n,a),We(n,442,DH(T)),f&&W3e(n,a),We(n,10),n.end()}function Z3e(e,t,r){var n=fa(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},o=r.biff==8,c=r.biff==5;if(We(n,2057,Z3(e,5,r)),r.bookType=="xla"&&We(n,135),We(n,225,o?ps(1200):null),We(n,193,Q2e(2)),c&&We(n,191),c&&We(n,192),We(n,226),We(n,92,__e("SheetJS",r)),We(n,66,ps(o?1200:1252)),o&&We(n,353,ps(0)),o&&We(n,448),We(n,317,Cbe(e.SheetNames.length)),o&&e.vbaraw&&We(n,211),o&&e.vbaraw){var f=s.CodeName||"ThisWorkbook";We(n,442,DH(f))}We(n,156,ps(17)),We(n,25,Vi(!1)),We(n,18,Vi(!1)),We(n,19,ps(0)),o&&We(n,431,Vi(!1)),o&&We(n,444,ps(0)),We(n,61,P_e()),We(n,64,Vi(!1)),We(n,141,ps(0)),We(n,34,Vi(k4e(e)=="true")),We(n,14,Vi(!0)),o&&We(n,439,Vi(!1)),We(n,218,ps(0)),H3e(n,e,r),$3e(n,e.SSF,r),q3e(n,r),o&&We(n,352,Vi(!1));var h=n.end(),p=fa();o&&We(p,140,_be()),o&&r.Strings&&I3e(p,252,T_e(r.Strings)),We(p,10);var m=p.end(),g=fa(),y=0,x=0;for(x=0;x<e.SheetNames.length;++x)y+=(o?12:11)+(o?2:1)*e.SheetNames[x].length;var _=h.length+y+m.length;for(x=0;x<e.SheetNames.length;++x){var w=a[x]||{};We(g,133,S_e({pos:_,hs:w.Hidden||0,dt:0,name:e.SheetNames[x]},r)),_+=t[x].length}var T=g.end();if(y!=T.length)throw new Error("BS8 "+y+" != "+T.length);var S=[];return h.length&&S.push(h),T.length&&S.push(T),m.length&&S.push(m),$n(S)}function Q3e(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=wr(ct)),e&&e.SSF&&(sh(),py(e.SSF),r.revssf=gy(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,uC(r),r.cellXfs=[],Cc(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=K3e(i,r,e);return n.unshift(Z3e(e,n,r)),$n(n)}function S$(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=pa(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 a=t||{};switch(a.biff||2){case 8:case 5:return Q3e(e,t);case 4:case 3:case 2:return V3e(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function RF(e,t){var r=t||{},n=r.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var i=e.match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var a=e.match(/<\/table/i),s=i.index,o=a&&a.index||e.length,c=Lye(e.slice(s,o),/(:?<tr[^>]*>)/i,"<tr>"),f=-1,h=0,p=0,m=0,g={s:{r:1e7,c:1e7},e:{r:0,c:0}},y=[];for(s=0;s<c.length;++s){var x=c[s].trim(),_=x.slice(0,3).toLowerCase();if(_=="<tr"){if(++f,r.sheetRows&&r.sheetRows<=f){--f;break}h=0;continue}if(!(_!="<td"&&_!="<th")){var w=x.split(/<\/t[dh]>/i);for(o=0;o<w.length;++o){var T=w[o].trim();if(T.match(/<t[dh]/i)){for(var S=T,O=0;S.charAt(0)=="<"&&(O=S.indexOf(">"))>-1;)S=S.slice(O+1);for(var C=0;C<y.length;++C){var k=y[C];k.s.c==h&&k.s.r<f&&f<=k.e.r&&(h=k.e.c+1,C=-1)}var D=mt(T.slice(0,T.indexOf(">")));m=D.colspan?+D.colspan:1,((p=+D.rowspan)>1||m>1)&&y.push({s:{r:f,c:h},e:{r:f+(p||1)-1,c:h+m-1}});var M=D.t||D["data-t"]||"";if(!S.length){h+=m;continue}if(S=GV(S),g.s.r>f&&(g.s.r=f),g.e.r<f&&(g.e.r=f),g.s.c>h&&(g.s.c=h),g.e.c<h&&(g.e.c=h),!S.length){h+=m;continue}var N={t:"s",v:S};r.raw||!S.trim().length||M=="s"||(S==="TRUE"?N={t:"b",v:!0}:S==="FALSE"?N={t:"b",v:!1}:isNaN(Ws(S))?isNaN(j0(S).getDate())||(N={t:"d",v:br(S)},r.cellDates||(N={t:"n",v:Pn(N.v)}),N.z=r.dateNF||ct[14]):N={t:"n",v:Ws(S)}),r.dense?(n[f]||(n[f]=[]),n[f][h]=N):n[ht({r:f,c:h})]=N,h+=m}}}}return n["!ref"]=wt(g),y.length&&(n["!merges"]=y),n}function J3e(e,t,r,n){for(var i=e["!merges"]||[],a=[],s=t.s.c;s<=t.e.c;++s){for(var o=0,c=0,f=0;f<i.length;++f)if(!(i[f].s.r>r||i[f].s.c>s)&&!(i[f].e.r<r||i[f].e.c<s)){if(i[f].s.r<r||i[f].s.c<s){o=-1;break}o=i[f].e.r-i[f].s.r+1,c=i[f].e.c-i[f].s.c+1;break}if(!(o<0)){var h=ht({r,c:s}),p=n.dense?(e[r]||[])[s]:e[h],m=p&&p.v!=null&&(p.h||B3(p.w||(ul(p),p.w)||""))||"",g={};o>1&&(g.rowspan=o),c>1&&(g.colspan=c),n.editable?m='<span contenteditable="true">'+m+"</span>":p&&(g["data-t"]=p&&p.t||"z",p.v!=null&&(g["data-v"]=p.v),p.z!=null&&(g["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(m='<a href="'+p.l.Target+'">'+m+"</a>")),g.id=(n.id||"sjs")+"-"+h,a.push($e("td",m,g))}}var y="<tr>";return y+a.join("")+"</tr>"}var eCe='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',tCe="</body></html>";function rCe(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find <table>");if(r.length==1)return Ac(RF(r[0],t),t);var n=dC();return r.forEach(function(i,a){pC(n,RF(i,t),"Sheet"+(a+1))}),n}function nCe(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function E$(e,t){var r=t||{},n=r.header!=null?r.header:eCe,i=r.footer!=null?r.footer:tCe,a=[n],s=pa(e["!ref"]);r.dense=Array.isArray(e),a.push(nCe(e,s,r));for(var o=s.s.r;o<=s.e.r;++o)a.push(J3e(e,s,o,r));return a.push("</table>"+i),a.join("")}function T$(e,t,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?Ir(n.origin):n.origin;i=s.r,a=s.c}var o=t.getElementsByTagName("tr"),c=Math.min(n.sheetRows||1e7,o.length),f={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var h=pa(e["!ref"]);f.s.r=Math.min(f.s.r,h.s.r),f.s.c=Math.min(f.s.c,h.s.c),f.e.r=Math.max(f.e.r,h.e.r),f.e.c=Math.max(f.e.c,h.e.c),i==-1&&(f.e.r=i=h.e.r+1)}var p=[],m=0,g=e["!rows"]||(e["!rows"]=[]),y=0,x=0,_=0,w=0,T=0,S=0;for(e["!cols"]||(e["!cols"]=[]);y<o.length&&x<c;++y){var O=o[y];if(NF(O)){if(n.display)continue;g[x]={hidden:!0}}var C=O.children;for(_=w=0;_<C.length;++_){var k=C[_];if(!(n.display&&NF(k))){var D=k.hasAttribute("data-v")?k.getAttribute("data-v"):k.hasAttribute("v")?k.getAttribute("v"):GV(k.innerHTML),M=k.getAttribute("data-z")||k.getAttribute("z");for(m=0;m<p.length;++m){var N=p[m];N.s.c==w+a&&N.s.r<x+i&&x+i<=N.e.r&&(w=N.e.c+1-a,m=-1)}S=+k.getAttribute("colspan")||1,((T=+k.getAttribute("rowspan")||1)>1||S>1)&&p.push({s:{r:x+i,c:w+a},e:{r:x+i+(T||1)-1,c:w+a+(S||1)-1}});var z={t:"s",v:D},H=k.getAttribute("data-t")||k.getAttribute("t")||"";D!=null&&(D.length==0?z.t=H||"z":n.raw||D.trim().length==0||H=="s"||(D==="TRUE"?z={t:"b",v:!0}:D==="FALSE"?z={t:"b",v:!1}:isNaN(Ws(D))?isNaN(j0(D).getDate())||(z={t:"d",v:br(D)},n.cellDates||(z={t:"n",v:Pn(z.v)}),z.z=n.dateNF||ct[14]):z={t:"n",v:Ws(D)})),z.z===void 0&&M!=null&&(z.z=M);var B="",te=k.getElementsByTagName("A");if(te&&te.length)for(var ne=0;ne<te.length&&!(te[ne].hasAttribute("href")&&(B=te[ne].getAttribute("href"),B.charAt(0)!="#"));++ne);B&&B.charAt(0)!="#"&&(z.l={Target:B}),n.dense?(e[x+i]||(e[x+i]=[]),e[x+i][w+a]=z):e[ht({c:w+a,r:x+i})]=z,f.e.c<w+a&&(f.e.c=w+a),w+=S}}++x}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),f.e.r=Math.max(f.e.r,x-1+i),e["!ref"]=wt(f),x>=c&&(e["!fullref"]=wt((f.e.r=o.length-y+x-1+i,f))),e}function A$(e,t){var r=t||{},n=r.dense?[]:{};return T$(n,e,t)}function iCe(e,t){return Ac(A$(e,t),t)}function NF(e){var t="",r=aCe(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function aCe(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function sCe(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(n,i){return Array(parseInt(i,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"	").replace(/<text:line-break\/>/g,`
`),r=Ut(t.replace(/<[^>]*>/g,""));return[r]}var FF={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function C$(e,t){var r=t||{},n=j3(e),i=[],a,s,o={name:""},c="",f=0,h,p,m={},g=[],y=r.dense?[]:{},x,_,w={value:""},T="",S=0,O=[],C=-1,k=-1,D={s:{r:1e6,c:1e7},e:{r:0,c:0}},M=0,N={},z=[],H={},B=0,te=0,ne=[],le=1,Q=1,ee=[],ce={Names:[]},J={},R=["",""],se=[],F={},V="",q=0,X=!1,ae=!1,Se=0;for(Vp.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");x=Vp.exec(n);)switch(x[3]=x[3].replace(/_.*$/,"")){case"table":case"工作表":x[1]==="/"?(D.e.c>=D.s.c&&D.e.r>=D.s.r?y["!ref"]=wt(D):y["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=D.e.r&&(y["!fullref"]=y["!ref"],D.e.r=r.sheetRows-1,y["!ref"]=wt(D)),z.length&&(y["!merges"]=z),ne.length&&(y["!rows"]=ne),h.name=h.名称||h.name,typeof JSON<"u"&&JSON.stringify(h),g.push(h.name),m[h.name]=y,ae=!1):x[0].charAt(x[0].length-2)!=="/"&&(h=mt(x[0],!1),C=k=-1,D.s.r=D.s.c=1e7,D.e.r=D.e.c=0,y=r.dense?[]:{},z=[],ne=[],ae=!0);break;case"table-row-group":x[1]==="/"?--M:++M;break;case"table-row":case"行":if(x[1]==="/"){C+=le,le=1;break}if(p=mt(x[0],!1),p.行号?C=p.行号-1:C==-1&&(C=0),le=+p["number-rows-repeated"]||1,le<10)for(Se=0;Se<le;++Se)M>0&&(ne[C+Se]={level:M});k=-1;break;case"covered-table-cell":x[1]!=="/"&&++k,r.sheetStubs&&(r.dense?(y[C]||(y[C]=[]),y[C][k]={t:"z"}):y[ht({r:C,c:k})]={t:"z"}),T="",O=[];break;case"table-cell":case"数据":if(x[0].charAt(x[0].length-2)==="/")++k,w=mt(x[0],!1),Q=parseInt(w["number-columns-repeated"]||"1",10),_={t:"z",v:null},w.formula&&r.cellFormula!=!1&&(_.f=DF(Ut(w.formula))),(w.数据类型||w["value-type"])=="string"&&(_.t="s",_.v=Ut(w["string-value"]||""),r.dense?(y[C]||(y[C]=[]),y[C][k]=_):y[ht({r:C,c:k})]=_),k+=Q-1;else if(x[1]!=="/"){++k,T="",S=0,O=[],Q=1;var Te=le?C+le-1:C;if(k>D.e.c&&(D.e.c=k),k<D.s.c&&(D.s.c=k),C<D.s.r&&(D.s.r=C),Te>D.e.r&&(D.e.r=Te),w=mt(x[0],!1),se=[],F={},_={t:w.数据类型||w["value-type"],v:null},r.cellFormula)if(w.formula&&(w.formula=Ut(w.formula)),w["number-matrix-columns-spanned"]&&w["number-matrix-rows-spanned"]&&(B=parseInt(w["number-matrix-rows-spanned"],10)||0,te=parseInt(w["number-matrix-columns-spanned"],10)||0,H={s:{r:C,c:k},e:{r:C+B-1,c:k+te-1}},_.F=wt(H),ee.push([H,_.F])),w.formula)_.f=DF(w.formula);else for(Se=0;Se<ee.length;++Se)C>=ee[Se][0].s.r&&C<=ee[Se][0].e.r&&k>=ee[Se][0].s.c&&k<=ee[Se][0].e.c&&(_.F=ee[Se][1]);switch((w["number-columns-spanned"]||w["number-rows-spanned"])&&(B=parseInt(w["number-rows-spanned"],10)||0,te=parseInt(w["number-columns-spanned"],10)||0,H={s:{r:C,c:k},e:{r:C+B-1,c:k+te-1}},z.push(H)),w["number-columns-repeated"]&&(Q=parseInt(w["number-columns-repeated"],10)),_.t){case"boolean":_.t="b",_.v=_r(w["boolean-value"]);break;case"float":_.t="n",_.v=parseFloat(w.value);break;case"percentage":_.t="n",_.v=parseFloat(w.value);break;case"currency":_.t="n",_.v=parseFloat(w.value);break;case"date":_.t="d",_.v=br(w["date-value"]),r.cellDates||(_.t="n",_.v=Pn(_.v)),_.z="m/d/yy";break;case"time":_.t="n",_.v=Rye(w["time-value"])/86400,r.cellDates&&(_.t="d",_.v=vy(_.v)),_.z="HH:MM:SS";break;case"number":_.t="n",_.v=parseFloat(w.数据数值);break;default:if(_.t==="string"||_.t==="text"||!_.t)_.t="s",w["string-value"]!=null&&(T=Ut(w["string-value"]),O=[]);else throw new Error("Unsupported value type "+_.t)}}else{if(X=!1,_.t==="s"&&(_.v=T||"",O.length&&(_.R=O),X=S==0),J.Target&&(_.l=J),se.length>0&&(_.c=se,se=[]),T&&r.cellText!==!1&&(_.w=T),X&&(_.t="z",delete _.v),(!X||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=C))for(var ue=0;ue<le;++ue){if(Q=parseInt(w["number-columns-repeated"]||"1",10),r.dense)for(y[C+ue]||(y[C+ue]=[]),y[C+ue][k]=ue==0?_:wr(_);--Q>0;)y[C+ue][k+Q]=wr(_);else for(y[ht({r:C+ue,c:k})]=_;--Q>0;)y[ht({r:C+ue,c:k+Q})]=wr(_);D.e.c<=k&&(D.e.c=k)}Q=parseInt(w["number-columns-repeated"]||"1",10),k+=Q-1,Q=0,_={},T="",O=[]}J={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(x[1]==="/"){if((a=i.pop())[0]!==x[3])throw"Bad state: "+a}else x[0].charAt(x[0].length-2)!=="/"&&i.push([x[3],!0]);break;case"annotation":if(x[1]==="/"){if((a=i.pop())[0]!==x[3])throw"Bad state: "+a;F.t=T,O.length&&(F.R=O),F.a=V,se.push(F)}else x[0].charAt(x[0].length-2)!=="/"&&i.push([x[3],!1]);V="",q=0,T="",S=0,O=[];break;case"creator":x[1]==="/"?V=n.slice(q,x.index):q=x.index+x[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(x[1]==="/"){if((a=i.pop())[0]!==x[3])throw"Bad state: "+a}else x[0].charAt(x[0].length-2)!=="/"&&i.push([x[3],!1]);T="",S=0,O=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(x[1]==="/"){if(N[o.name]=c,(a=i.pop())[0]!==x[3])throw"Bad state: "+a}else x[0].charAt(x[0].length-2)!=="/"&&(c="",o=mt(x[0],!1),i.push([x[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":s=mt(x[0],!1),c+=FF[x[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(i[i.length-1][0]){case"time-style":case"date-style":s=mt(x[0],!1),c+=FF[x[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(x[0].slice(-2)==="/>")break;if(x[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":c+=n.slice(f,x.index);break}else f=x.index+x[0].length;break;case"named-range":s=mt(x[0],!1),R=nS(s["cell-range-address"]);var xe={Name:s.name,Ref:R[0]+"!"+R[1]};ae&&(xe.Sheet=g.length),ce.Names.push(xe);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(x[1]==="/"&&(!w||!w["string-value"])){var Ne=sCe(n.slice(S,x.index));T=(T.length>0?T+`
`:"")+Ne[0]}else mt(x[0],!1),S=x.index+x[0].length;break;case"s":break;case"database-range":if(x[1]==="/")break;try{R=nS(mt(x[0])["target-range-address"]),m[R[0]]["!autofilter"]={ref:R[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(x[1]!=="/"){if(J=mt(x[0],!1),!J.href)break;J.Target=Ut(J.href),delete J.href,J.Target.charAt(0)=="#"&&J.Target.indexOf(".")>-1?(R=nS(J.Target.slice(1)),J.Target="#"+R[0]+"!"+R[1]):J.Target.match(/^\.\.[\\\/]/)&&(J.Target=J.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(x[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(x)}}var j={Sheets:m,SheetNames:g,Workbook:ce};return r.bookSheets&&delete j.Sheets,j}function LF(e,t){t=t||{},ds(e,"META-INF/manifest.xml")&&R2e(pn(e,"META-INF/manifest.xml"),t);var r=La(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=C$(lr(r),t);return ds(e,"meta.xml")&&(n.Props=vH(pn(e,"meta.xml"))),n}function IF(e,t){return C$(e,t)}var oCe=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 "+zp({"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 ln+t}}(),BF=function(){var e=function(a){return rr(a).replace(/  +/g,function(s){return'<text:s text:c="'+s.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(a,s,o){var c=[];c.push('      <table:table table:name="'+rr(s.SheetNames[o])+`" table:style-name="ta1">
`);var f=0,h=0,p=pa(a["!ref"]||"A1"),m=a["!merges"]||[],g=0,y=Array.isArray(a);if(a["!cols"])for(h=0;h<=p.e.c;++h)c.push("        <table:table-column"+(a["!cols"][h]?' table:style-name="co'+a["!cols"][h].ods+'"':"")+`></table:table-column>
`);var x="",_=a["!rows"]||[];for(f=0;f<p.s.r;++f)x=_[f]?' table:style-name="ro'+_[f].ods+'"':"",c.push("        <table:table-row"+x+`></table:table-row>
`);for(;f<=p.e.r;++f){for(x=_[f]?' table:style-name="ro'+_[f].ods+'"':"",c.push("        <table:table-row"+x+`>
`),h=0;h<p.s.c;++h)c.push(t);for(;h<=p.e.c;++h){var w=!1,T={},S="";for(g=0;g!=m.length;++g)if(!(m[g].s.c>h)&&!(m[g].s.r>f)&&!(m[g].e.c<h)&&!(m[g].e.r<f)){(m[g].s.c!=h||m[g].s.r!=f)&&(w=!0),T["table:number-columns-spanned"]=m[g].e.c-m[g].s.c+1,T["table:number-rows-spanned"]=m[g].e.r-m[g].s.r+1;break}if(w){c.push(r);continue}var O=ht({r:f,c:h}),C=y?(a[f]||[])[h]:a[O];if(C&&C.f&&(T["table:formula"]=rr(CTe(C.f)),C.F&&C.F.slice(0,O.length)==O)){var k=pa(C.F);T["table:number-matrix-columns-spanned"]=k.e.c-k.s.c+1,T["table:number-matrix-rows-spanned"]=k.e.r-k.s.r+1}if(!C){c.push(t);continue}switch(C.t){case"b":S=C.v?"TRUE":"FALSE",T["office:value-type"]="boolean",T["office:boolean-value"]=C.v?"true":"false";break;case"n":S=C.w||String(C.v||0),T["office:value-type"]="float",T["office:value"]=C.v||0;break;case"s":case"str":S=C.v==null?"":C.v,T["office:value-type"]="string";break;case"d":S=C.w||br(C.v).toISOString(),T["office:value-type"]="date",T["office:date-value"]=br(C.v).toISOString(),T["table:style-name"]="ce1";break;default:c.push(t);continue}var D=e(S);if(C.l&&C.l.Target){var M=C.l.Target;M=M.charAt(0)=="#"?"#"+OTe(M.slice(1)):M,M.charAt(0)!="#"&&!M.match(/^\w+:/)&&(M="../"+M),D=$e("text:a",D,{"xlink:href":M.replace(/&/g,"&amp;")})}c.push("          "+$e("table:table-cell",$e("text:p",D,{}),T)+`
`)}c.push(`        </table:table-row>
`)}return c.push(`      </table:table>
`),c.join("")},i=function(a,s){a.push(` <office:automatic-styles>
`),a.push(`  <number:date-style style:name="N37" number:automatic-order="true">
`),a.push(`   <number:month number:style="long"/>
`),a.push(`   <number:text>/</number:text>
`),a.push(`   <number:day number:style="long"/>
`),a.push(`   <number:text>/</number:text>
`),a.push(`   <number:year/>
`),a.push(`  </number:date-style>
`);var o=0;s.SheetNames.map(function(f){return s.Sheets[f]}).forEach(function(f){if(f&&f["!cols"]){for(var h=0;h<f["!cols"].length;++h)if(f["!cols"][h]){var p=f["!cols"][h];if(p.width==null&&p.wpx==null&&p.wch==null)continue;gc(p),p.ods=o;var m=f["!cols"][h].wpx+"px";a.push('  <style:style style:name="co'+o+`" style:family="table-column">
`),a.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+m+`"/>
`),a.push(`  </style:style>
`),++o}}});var c=0;s.SheetNames.map(function(f){return s.Sheets[f]}).forEach(function(f){if(f&&f["!rows"]){for(var h=0;h<f["!rows"].length;++h)if(f["!rows"][h]){f["!rows"][h].ods=c;var p=f["!rows"][h].hpx+"px";a.push('  <style:style style:name="ro'+c+`" style:family="table-row">
`),a.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
`),a.push(`  </style:style>
`),++c}}}),a.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),a.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),a.push(`  </style:style>
`),a.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),a.push(` </office:automatic-styles>
`)};return function(s,o){var c=[ln],f=zp({"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"}),h=zp({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});o.bookType=="fods"?(c.push("<office:document"+f+h+`>
`),c.push(gH().replace(/office:document-meta/g,"office:meta"))):c.push("<office:document-content"+f+`>
`),i(c,s),c.push(`  <office:body>
`),c.push(`    <office:spreadsheet>
`);for(var p=0;p!=s.SheetNames.length;++p)c.push(n(s.Sheets[s.SheetNames[p]],s,p));return c.push(`    </office:spreadsheet>
`),c.push(`  </office:body>
`),o.bookType=="fods"?c.push("</office:document>"):c.push("</office:document-content>"),c.join("")}}();function O$(e,t){if(t.bookType=="fods")return BF(e,t);var r=F3(),n="",i=[],a=[];return n="mimetype",Et(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Et(r,n,BF(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Et(r,n,oCe(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Et(r,n,ln+gH()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Et(r,n,L2e(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Et(r,n,N2e(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function qu(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function _T(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):lr(Tc(e))}function lCe(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Fa(fo(e))}function cCe(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 xc(e){var t=e.reduce(function(i,a){return i+a.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function jF(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function uCe(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,i=t+13;i>=t;--i)n=n*256+e[i];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function fCe(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 a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function Yp(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 Jt(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 Gr(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 $t(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=Yp(e,r),a=i&7;i=Math.floor(i/8);var s=0,o;if(i==0)break;switch(a){case 0:{for(var c=r[0];e[r[0]++]>=128;);o=e.slice(c,r[0])}break;case 5:s=4,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=Yp(e,r),o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var f={data:o,type:a};t[i]==null?t[i]=[f]:t[i].push(f)}return t}function Jn(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(Jt(n*8+i.type)),i.type==2&&t.push(Jt(i.data.length)),t.push(i.data))})}),xc(t)}function lC(e,t){return e?.map(function(r){return t(r.data)})||[]}function cs(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=Yp(e,n),a=$t(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:Gr(a[1][0].data),messages:[]};a[2].forEach(function(o){var c=$t(o.data),f=Gr(c[3][0].data);s.messages.push({meta:c,data:e.slice(n[0],n[0]+f)}),n[0]+=f}),(t=a[3])!=null&&t[0]&&(s.merge=Gr(a[3][0].data)>>>0>0),r.push(s)}return r}function qf(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:Jt(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Jt(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Jt(s.data.length)}],n[2].push({data:Jn(s.meta),type:2})});var a=Jn(n);t.push(Jt(a.length)),t.push(a),i.forEach(function(s){return t.push(s)})}),xc(t)}function hCe(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Yp(t,r),i=[];r[0]<t.length;){var a=t[r[0]]&3;if(a==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var o=s-59;s=t[r[0]],o>1&&(s|=t[r[0]+1]<<8),o>2&&(s|=t[r[0]+2]<<16),o>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=o}i.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var c=0,f=0;if(a==1?(f=(t[r[0]]>>2&7)+4,c=(t[r[0]++]&224)<<3,c|=t[r[0]++]):(f=(t[r[0]++]>>2)+1,a==2?(c=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(c=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[xc(i)],c==0)throw new Error("Invalid offset 0");if(c>i[0].length)throw new Error("Invalid offset beyond length");if(f>=c)for(i.push(i[0].slice(-c)),f-=c;f>=i[i.length-1].length;)i.push(i[i.length-1]),f-=i[i.length-1].length;i.push(i[0].slice(-c,-c+f))}}var h=xc(i);if(h.length!=n)throw new Error("Unexpected length: ".concat(h.length," != ").concat(n));return h}function us(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(hCe(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return xc(t)}function Gf(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 a=Jt(n),s=a.length;t.push(a),n<=60?(s++,t.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=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)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,r+=n}return xc(t)}function dCe(e,t,r,n){var i=qu(e),a=i.getUint32(4,!0),s=(n>1?12:8)+jF(a&(n>1?3470:398))*4,o=-1,c=-1,f=NaN,h=new Date(2001,0,1);a&512&&(o=i.getUint32(s,!0),s+=4),s+=jF(a&(n>1?12288:4096))*4,a&16&&(c=i.getUint32(s,!0),s+=4),a&32&&(f=i.getFloat64(s,!0),s+=8),a&64&&(h.setTime(h.getTime()+i.getFloat64(s,!0)*1e3),s+=8);var p;switch(e[2]){case 0:break;case 2:p={t:"n",v:f};break;case 3:p={t:"s",v:t[c]};break;case 5:p={t:"d",v:h};break;case 6:p={t:"b",v:f>0};break;case 7:p={t:"n",v:f/86400};break;case 8:p={t:"e",v:0};break;case 9:if(o>-1)p={t:"s",v:r[o]};else if(c>-1)p={t:"s",v:t[c]};else if(!isNaN(f))p={t:"n",v:f};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return p}function pCe(e,t,r){var n=qu(e),i=n.getUint32(8,!0),a=12,s=-1,o=-1,c=NaN,f=NaN,h=new Date(2001,0,1);i&1&&(c=uCe(e,a),a+=16),i&2&&(f=n.getFloat64(a,!0),a+=8),i&4&&(h.setTime(h.getTime()+n.getFloat64(a,!0)*1e3),a+=8),i&8&&(o=n.getUint32(a,!0),a+=4),i&16&&(s=n.getUint32(a,!0),a+=4);var p;switch(e[1]){case 0:break;case 2:p={t:"n",v:c};break;case 3:p={t:"s",v:t[o]};break;case 5:p={t:"d",v:h};break;case 6:p={t:"b",v:f>0};break;case 7:p={t:"n",v:f/86400};break;case 8:p={t:"e",v:0};break;case 9:if(s>-1)p={t:"s",v:r[s]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)));break;case 10:p={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)))}return p}function aS(e,t){var r=new Uint8Array(32),n=qu(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,fCe(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=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),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function sS(e,t){var r=new Uint8Array(32),n=qu(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=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),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function mCe(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return dCe(e,t,r,e[0]);case 5:return pCe(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function gi(e){var t=$t(e);return Yp(t[1][0].data)}function UF(e,t){var r=$t(t.data),n=Gr(r[1][0].data),i=r[3],a=[];return(i||[]).forEach(function(s){var o=$t(s.data),c=Gr(o[1][0].data)>>>0;switch(n){case 1:a[c]=_T(o[3][0].data);break;case 8:{var f=e[gi(o[9][0].data)][0],h=$t(f.data),p=e[gi(h[1][0].data)][0],m=Gr(p.meta[1][0].data);if(m!=2001)throw new Error("2000 unexpected reference to ".concat(m));var g=$t(p.data);a[c]=g[3].map(function(y){return _T(y.data)}).join("")}break}}),a}function gCe(e,t){var r,n,i,a,s,o,c,f,h,p,m,g,y,x,_=$t(e),w=Gr(_[1][0].data)>>>0,T=Gr(_[2][0].data)>>>0,S=((n=(r=_[8])==null?void 0:r[0])==null?void 0:n.data)&&Gr(_[8][0].data)>0||!1,O,C;if((a=(i=_[7])==null?void 0:i[0])!=null&&a.data&&t!=0)O=(o=(s=_[7])==null?void 0:s[0])==null?void 0:o.data,C=(f=(c=_[6])==null?void 0:c[0])==null?void 0:f.data;else if((p=(h=_[4])==null?void 0:h[0])!=null&&p.data&&t!=1)O=(g=(m=_[4])==null?void 0:m[0])==null?void 0:g.data,C=(x=(y=_[3])==null?void 0:y[0])==null?void 0:x.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var k=S?4:1,D=qu(O),M=[],N=0;N<O.length/2;++N){var z=D.getUint16(N*2,!0);z<65535&&M.push([N,z])}if(M.length!=T)throw"Expected ".concat(T," cells, found ").concat(M.length);var H=[];for(N=0;N<M.length-1;++N)H[M[N][0]]=C.subarray(M[N][1]*k,M[N+1][1]*k);return M.length>=1&&(H[M[M.length-1][0]]=C.subarray(M[M.length-1][1]*k)),{R:w,cells:H}}function vCe(e,t){var r,n=$t(t.data),i=(r=n?.[7])!=null&&r[0]?Gr(n[7][0].data)>>>0>0?1:0:-1,a=lC(n[5],function(s){return gCe(s,i)});return{nrows:Gr(n[4][0].data)>>>0,data:a.reduce(function(s,o){return s[o.R]||(s[o.R]=[]),o.cells.forEach(function(c,f){if(s[o.R][f])throw new Error("Duplicate cell r=".concat(o.R," c=").concat(f));s[o.R][f]=c}),s},[])}}function xCe(e,t,r){var n,i=$t(t.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(Gr(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(Gr(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));r["!ref"]=wt(a);var s=$t(i[4][0].data),o=UF(e,e[gi(s[4][0].data)][0]),c=(n=s[17])!=null&&n[0]?UF(e,e[gi(s[17][0].data)][0]):[],f=$t(s[3][0].data),h=0;f[1].forEach(function(p){var m=$t(p.data),g=e[gi(m[2][0].data)][0],y=Gr(g.meta[1][0].data);if(y!=6002)throw new Error("6001 unexpected reference to ".concat(y));var x=vCe(e,g);x.data.forEach(function(_,w){_.forEach(function(T,S){var O=ht({r:h+w,c:S}),C=mCe(T,o,c);C&&(r[O]=C)})}),h+=x.nrows})}function yCe(e,t){var r=$t(t.data),n={"!ref":"A1"},i=e[gi(r[2][0].data)],a=Gr(i[0].meta[1][0].data);if(a!=6001)throw new Error("6000 unexpected reference to ".concat(a));return xCe(e,i[0],n),n}function _Ce(e,t){var r,n=$t(t.data),i={name:(r=n[1])!=null&&r[0]?_T(n[1][0].data):"",sheets:[]},a=lC(n[2],gi);return a.forEach(function(s){e[s].forEach(function(o){var c=Gr(o.meta[1][0].data);c==6e3&&i.sheets.push(yCe(e,o))})}),i}function bCe(e,t){var r=dC(),n=$t(t.data),i=lC(n[1],gi);if(i.forEach(function(a){e[a].forEach(function(s){var o=Gr(s.meta[1][0].data);if(o==2){var c=_Ce(e,s);c.sheets.forEach(function(f,h){pC(r,f,h==0?c.name:c.name+"_"+h,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function oS(e){var t,r,n,i,a={},s=[];if(e.FullPaths.forEach(function(c){if(c.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(c){if(c.name.match(/\.iwa$/)){var f;try{f=us(c.content)}catch(p){return console.log("?? "+c.content.length+" "+(p.message||p))}var h;try{h=cs(f)}catch(p){return console.log("## "+(p.message||p))}h.forEach(function(p){a[p.id]=p.messages,s.push(p.id)})}}),!s.length)throw new Error("File has no messages");var o=((i=(n=(r=(t=a?.[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:i[0].data)&&Gr(a[1][0].meta[1][0].data)==1&&a[1][0];if(o||s.forEach(function(c){a[c].forEach(function(f){var h=Gr(f.meta[1][0].data)>>>0;if(h==1)if(!o)o=f;else throw new Error("Document has multiple roots")})}),!o)throw new Error("Cannot find Document root");return bCe(a,o)}function wCe(e,t,r){var n,i,a,s;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var o=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&Gr(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var c=0,f=qu(e[7][0].data),h=0,p=[],m=qu(e[4][0].data),g=0,y=[],x=0;x<t.length;++x){if(t[x]==null){f.setUint16(x*2,65535,!0),m.setUint16(x*2,65535);continue}f.setUint16(x*2,h,!0),m.setUint16(x*2,g,!0);var _,w;switch(typeof t[x]){case"string":_=aS({t:"s",v:t[x]},r),w=sS({t:"s",v:t[x]},r);break;case"number":_=aS({t:"n",v:t[x]},r),w=sS({t:"n",v:t[x]},r);break;case"boolean":_=aS({t:"b",v:t[x]},r),w=sS({t:"b",v:t[x]},r);break;default:throw new Error("Unsupported value "+t[x])}p.push(_),h+=_.length,y.push(w),g+=w.length,++c}for(e[2][0].data=Jt(c);x<e[7][0].data.length/2;++x)f.setUint16(x*2,65535,!0),m.setUint16(x*2,65535,!0);return e[6][0].data=xc(p),e[3][0].data=xc(y),c}function SCe(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=pa(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(wt(n)));var a=yx(r,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(V){return V.forEach(function(q){typeof q=="string"&&s.push(q)})});var o={},c=[],f=it.read(t.numbers,{type:"base64"});f.FileIndex.map(function(V,q){return[V,f.FullPaths[q]]}).forEach(function(V){var q=V[0],X=V[1];if(q.type==2&&q.name.match(/\.iwa/)){var ae=q.content,Se=us(ae),Te=cs(Se);Te.forEach(function(ue){c.push(ue.id),o[ue.id]={deps:[],location:X,type:Gr(ue.messages[0].meta[1][0].data)}})}}),c.sort(function(V,q){return V-q});var h=c.filter(function(V){return V>1}).map(function(V){return[V,Jt(V)]});f.FileIndex.map(function(V,q){return[V,f.FullPaths[q]]}).forEach(function(V){var q=V[0];if(V[1],!!q.name.match(/\.iwa/)){var X=cs(us(q.content));X.forEach(function(ae){ae.messages.forEach(function(Se){h.forEach(function(Te){ae.messages.some(function(ue){return Gr(ue.meta[1][0].data)!=11006&&cCe(ue.data,Te[1])})&&o[Te[0]].deps.push(ae.id)})})})}});for(var p=it.find(f,o[1].location),m=cs(us(p.content)),g,y=0;y<m.length;++y){var x=m[y];x.id==1&&(g=x)}var _=gi($t(g.messages[0].data)[1][0].data);for(p=it.find(f,o[_].location),m=cs(us(p.content)),y=0;y<m.length;++y)x=m[y],x.id==_&&(g=x);for(_=gi($t(g.messages[0].data)[2][0].data),p=it.find(f,o[_].location),m=cs(us(p.content)),y=0;y<m.length;++y)x=m[y],x.id==_&&(g=x);for(_=gi($t(g.messages[0].data)[2][0].data),p=it.find(f,o[_].location),m=cs(us(p.content)),y=0;y<m.length;++y)x=m[y],x.id==_&&(g=x);var w=$t(g.messages[0].data);{w[6][0].data=Jt(n.e.r+1),w[7][0].data=Jt(n.e.c+1);var T=gi(w[46][0].data),S=it.find(f,o[T].location),O=cs(us(S.content));{for(var C=0;C<O.length&&O[C].id!=T;++C);if(O[C].id!=T)throw"Bad ColumnRowUIDMapArchive";var k=$t(O[C].messages[0].data);k[1]=[],k[2]=[],k[3]=[];for(var D=0;D<=n.e.c;++D){var M=[];M[1]=M[2]=[{type:0,data:Jt(D+420690)}],k[1].push({type:2,data:Jn(M)}),k[2].push({type:0,data:Jt(D)}),k[3].push({type:0,data:Jt(D)})}k[4]=[],k[5]=[],k[6]=[];for(var N=0;N<=n.e.r;++N)M=[],M[1]=M[2]=[{type:0,data:Jt(N+726270)}],k[4].push({type:2,data:Jn(M)}),k[5].push({type:0,data:Jt(N)}),k[6].push({type:0,data:Jt(N)});O[C].messages[0].data=Jn(k)}S.content=Gf(qf(O)),S.size=S.content.length,delete w[46];var z=$t(w[4][0].data);{z[7][0].data=Jt(n.e.r+1);var H=$t(z[1][0].data),B=gi(H[2][0].data);S=it.find(f,o[B].location),O=cs(us(S.content));{if(O[0].id!=B)throw"Bad HeaderStorageBucket";var te=$t(O[0].messages[0].data);for(N=0;N<a.length;++N){var ne=$t(te[2][0].data);ne[1][0].data=Jt(N),ne[4][0].data=Jt(a[N].length),te[2][N]={type:te[2][0].type,data:Jn(ne)}}O[0].messages[0].data=Jn(te)}S.content=Gf(qf(O)),S.size=S.content.length;var le=gi(z[2][0].data);S=it.find(f,o[le].location),O=cs(us(S.content));{if(O[0].id!=le)throw"Bad HeaderStorageBucket";for(te=$t(O[0].messages[0].data),D=0;D<=n.e.c;++D)ne=$t(te[2][0].data),ne[1][0].data=Jt(D),ne[4][0].data=Jt(n.e.r+1),te[2][D]={type:te[2][0].type,data:Jn(ne)};O[0].messages[0].data=Jn(te)}S.content=Gf(qf(O)),S.size=S.content.length;var Q=gi(z[4][0].data);(function(){for(var V=it.find(f,o[Q].location),q=cs(us(V.content)),X,ae=0;ae<q.length;++ae){var Se=q[ae];Se.id==Q&&(X=Se)}var Te=$t(X.messages[0].data);{Te[3]=[];var ue=[];s.forEach(function(j,ze){ue[1]=[{type:0,data:Jt(ze)}],ue[2]=[{type:0,data:Jt(1)}],ue[3]=[{type:2,data:lCe(j)}],Te[3].push({type:2,data:Jn(ue)})})}X.messages[0].data=Jn(Te);var xe=qf(q),Ne=Gf(xe);V.content=Ne,V.size=V.content.length})();var ee=$t(z[3][0].data);{var ce=ee[1][0];delete ee[2];var J=$t(ce.data);{var R=gi(J[2][0].data);(function(){for(var V=it.find(f,o[R].location),q=cs(us(V.content)),X,ae=0;ae<q.length;++ae){var Se=q[ae];Se.id==R&&(X=Se)}var Te=$t(X.messages[0].data);{delete Te[6],delete ee[7];var ue=new Uint8Array(Te[5][0].data);Te[5]=[];for(var xe=0,Ne=0;Ne<=n.e.r;++Ne){var j=$t(ue);xe+=wCe(j,a[Ne],s),j[1][0].data=Jt(Ne),Te[5].push({data:Jn(j),type:2})}Te[1]=[{type:0,data:Jt(n.e.c+1)}],Te[2]=[{type:0,data:Jt(n.e.r+1)}],Te[3]=[{type:0,data:Jt(xe)}],Te[4]=[{type:0,data:Jt(n.e.r+1)}]}X.messages[0].data=Jn(Te);var ze=qf(q),Le=Gf(ze);V.content=Le,V.size=V.content.length})()}ce.data=Jn(J)}z[3][0].data=Jn(ee)}w[4][0].data=Jn(z)}g.messages[0].data=Jn(w);var se=qf(m),F=Gf(se);return p.content=F,p.size=p.content.length,f}function k$(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 cC(e){k$([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function uC(e){k$([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function ECe(e){return Rt.WS.indexOf(e)>-1?"sheet":e==Rt.CS?"chart":e==Rt.DS?"dialog":e==Rt.MS?"macro":e&&e.length?e:"sheet"}function TCe(e,t){if(!e)return 0;try{e=t.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,ECe(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function ACe(e,t,r,n,i,a,s,o,c,f,h,p){try{a[n]=np(La(e,r,!0),t);var m=pn(e,t),g;switch(o){case"sheet":g=X4e(m,t,i,c,a[n],f,h,p);break;case"chart":if(g=Y4e(m,t,i,c,a[n],f,h,p),!g||!g["!drawel"])break;var y=Rd(g["!drawel"].Target,t),x=Hp(y),_=FSe(La(e,y,!0),np(La(e,x,!0),y)),w=Rd(_,y),T=Hp(w);g=w4e(La(e,w,!0),w,c,np(La(e,T,!0),w),f,g);break;case"macro":g=K4e(m,t,i,c,a[n],f,h,p);break;case"dialog":g=Z4e(m,t,i,c,a[n],f,h,p);break;default:throw new Error("Unrecognized sheet type "+o)}s[n]=g;var S=[];a&&a[n]&&Kr(a[n]).forEach(function(O){var C="";if(a[n][O].Type==Rt.CMNT){C=Rd(a[n][O].Target,t);var k=t3e(pn(e,C,!0),C,c);if(!k||!k.length)return;TF(g,k,!1)}a[n][O].Type==Rt.TCMNT&&(C=Rd(a[n][O].Target,t),S=S.concat(ISe(pn(e,C,!0),c)))}),S&&S.length&&TF(g,S,!0,c.people||[])}catch(O){if(c.WTF)throw O}}function ss(e){return e.charAt(0)=="/"?e.slice(1):e}function CCe(e,t){if(sh(),t=t||{},cC(t),ds(e,"META-INF/manifest.xml")||ds(e,"objectdata.xml"))return LF(e,t);if(ds(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof oS<"u"){if(e.FileIndex)return oS(e);var r=it.utils.cfb_new();return qN(e).forEach(function(ne){Et(r,ne,Bye(e,ne))}),oS(r)}throw new Error("Unsupported NUMBERS file")}if(!ds(e,"[Content_Types].xml"))throw ds(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):ds(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=qN(e),i=P2e(La(e,"[Content_Types].xml")),a=!1,s,o;if(i.workbooks.length===0&&(o="xl/workbook.xml",pn(e,o,!0)&&i.workbooks.push(o)),i.workbooks.length===0){if(o="xl/workbook.bin",!pn(e,o,!0))throw new Error("Could not find workbook");i.workbooks.push(o),a=!0}i.workbooks[0].slice(-3)=="bin"&&(a=!0);var c={},f={};if(!t.bookSheets&&!t.bookProps){if(ip=[],i.sst)try{ip=e3e(pn(e,ss(i.sst)),i.sst,t)}catch(ne){if(t.WTF)throw ne}t.cellStyles&&i.themes.length&&(c=J4e(La(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],t)),i.style&&(f=Q4e(pn(e,ss(i.style)),i.style,c,t))}i.links.map(function(ne){try{var le=np(La(e,Hp(ss(ne))),ne);return n3e(pn(e,ss(ne)),le,ne,t)}catch{}});var h=G4e(pn(e,ss(i.workbooks[0])),i.workbooks[0],t),p={},m="";i.coreprops.length&&(m=pn(e,ss(i.coreprops[0]),!0),m&&(p=vH(m)),i.extprops.length!==0&&(m=pn(e,ss(i.extprops[0]),!0),m&&B2e(m,p,t)));var g={};(!t.bookSheets||t.bookProps)&&i.custprops.length!==0&&(m=La(e,ss(i.custprops[0]),!0),m&&(g=U2e(m,t)));var y={};if((t.bookSheets||t.bookProps)&&(h.Sheets?s=h.Sheets.map(function(le){return le.name}):p.Worksheets&&p.SheetNames.length>0&&(s=p.SheetNames),t.bookProps&&(y.Props=p,y.Custprops=g),t.bookSheets&&typeof s<"u"&&(y.SheetNames=s),t.bookSheets?y.SheetNames:t.bookProps))return y;s={};var x={};t.bookDeps&&i.calcchain&&(x=r3e(pn(e,ss(i.calcchain)),i.calcchain));var _=0,w={},T,S;{var O=h.Sheets;p.Worksheets=O.length,p.SheetNames=[];for(var C=0;C!=O.length;++C)p.SheetNames[C]=O[C].name}var k=a?"bin":"xml",D=i.workbooks[0].lastIndexOf("/"),M=(i.workbooks[0].slice(0,D+1)+"_rels/"+i.workbooks[0].slice(D+1)+".rels").replace(/^\//,"");ds(e,M)||(M="xl/_rels/workbook."+k+".rels");var N=np(La(e,M,!0),M.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(t.xlmeta=i3e(pn(e,ss(i.metadata[0])),i.metadata[0],t)),(i.people||[]).length>=1&&(t.people=jSe(pn(e,ss(i.people[0])),t)),N&&(N=TCe(N,h.Sheets));var z=pn(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(_=0;_!=p.Worksheets;++_){var H="sheet";if(N&&N[_]?(T="xl/"+N[_][1].replace(/[\/]?xl\//,""),ds(e,T)||(T=N[_][1]),ds(e,T)||(T=M.replace(/_rels\/.*$/,"")+N[_][1]),H=N[_][2]):(T="xl/worksheets/sheet"+(_+1-z)+"."+k,T=T.replace(/sheet0\./,"sheet.")),S=T.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(_!=t.sheets)continue e;break;case"string":if(p.SheetNames[_].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var B=!1,te=0;te!=t.sheets.length;++te)typeof t.sheets[te]=="number"&&t.sheets[te]==_&&(B=1),typeof t.sheets[te]=="string"&&t.sheets[te].toLowerCase()==p.SheetNames[_].toLowerCase()&&(B=1);if(!B)continue e}}ACe(e,T,S,p.SheetNames[_],_,w,s,H,t,h,c,f)}return y={Directory:i,Workbook:h,Props:p,Custprops:g,Deps:x,Sheets:s,SheetNames:p.SheetNames,Strings:ip,Styles:f,Themes:c,SSF:wr(ct)},t&&t.bookFiles&&(e.files?(y.keys=n,y.files=e.files):(y.keys=[],y.files={},e.FullPaths.forEach(function(ne,le){ne=ne.replace(/^Root Entry[\/]/,""),y.keys.push(ne),y.files[ne]=e.FileIndex[le]}))),t&&t.bookVBA&&(i.vba.length>0?y.vbaraw=pn(e,ss(i.vba[0]),!0):i.defaults&&i.defaults.bin===GSe&&(y.vbaraw=pn(e,"xl/vbaProject.bin",!0))),y}function OCe(e,t){var r=t||{},n="Workbook",i=it.find(e,n);try{if(n="/!DataSpaces/Version",i=it.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(iwe(i.content),n="/!DataSpaces/DataSpaceMap",i=it.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var a=swe(i.content);if(a.length!==1||a[0].comps.length!==1||a[0].comps[0].t!==0||a[0].name!=="StrongEncryptionDataSpace"||a[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=it.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=owe(i.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=it.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);cwe(i.content)}catch{}if(n="/EncryptionInfo",i=it.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=uwe(i.content);if(n="/EncryptedPackage",i=it.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],i.content,r.password||"",r);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],i.content,r.password||"",r);throw new Error("File is password-protected")}function kCe(e,t){return t.bookType=="ods"?O$(e,t):t.bookType=="numbers"?SCe(e,t):t.bookType=="xlsb"?DCe(e,t):PCe(e,t)}function DCe(e,t){s0=1024,e&&!e.SSF&&(e.SSF=wr(ct)),e&&e.SSF&&(sh(),py(e.SSF),t.revssf=gy(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,ap?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=r$.indexOf(t.bookType)>-1,i=Y3();uC(t=t||{});var a=F3(),s="",o=0;if(t.cellXfs=[],Cc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Et(a,s,xH(e.Props,t)),i.coreprops.push(s),er(t.rels,2,s,Rt.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var c=[],f=0;f<e.SheetNames.length;++f)(e.Workbook.Sheets[f]||{}).Hidden!=2&&c.push(e.SheetNames[f]);e.Props.SheetNames=c}for(e.Props.Worksheets=e.Props.SheetNames.length,Et(a,s,bH(e.Props)),i.extprops.push(s),er(t.rels,3,s,Rt.EXT_PROPS),e.Custprops!==e.Props&&Kr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Et(a,s,wH(e.Custprops)),i.custprops.push(s),er(t.rels,4,s,Rt.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var h={"!id":{}},p=e.Sheets[e.SheetNames[o-1]],m=(p||{})["!type"]||"sheet";switch(m){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,Et(a,s,s3e(o-1,s,t,e,h)),i.sheets.push(s),er(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Rt.WS[0])}if(p){var g=p["!comments"],y=!1,x="";g&&g.length>0&&(x="xl/comments"+o+"."+r,Et(a,x,c3e(g,x)),i.comments.push(x),er(h,-1,"../comments"+o+"."+r,Rt.CMNT),y=!0),p["!legacy"]&&y&&Et(a,"xl/drawings/vmlDrawing"+o+".vml",e$(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}h["!id"].rId1&&Et(a,Hp(s),v0(h))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,Et(a,s,l3e(t.Strings,s,t)),i.strs.push(s),er(t.wbrels,-1,"sharedStrings."+r,Rt.SST)),s="xl/workbook."+r,Et(a,s,a3e(e,s)),i.workbooks.push(s),er(t.rels,1,s,Rt.WB),s="xl/theme/theme1.xml",Et(a,s,tC(e.Themes,t)),i.themes.push(s),er(t.wbrels,-1,"theme/theme1.xml",Rt.THEME),s="xl/styles."+r,Et(a,s,o3e(e,s,t)),i.styles.push(s),er(t.wbrels,-1,"styles."+r,Rt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Et(a,s,e.vbaraw),i.vba.push(s),er(t.wbrels,-1,"vbaProject.bin",Rt.VBA)),s="xl/metadata."+r,Et(a,s,u3e(s)),i.metadata.push(s),er(t.wbrels,-1,"metadata."+r,Rt.XLMETA),Et(a,"[Content_Types].xml",mH(i,t)),Et(a,"_rels/.rels",v0(t.rels)),Et(a,"xl/_rels/workbook."+r+".rels",v0(t.wbrels)),delete t.revssf,delete t.ssf,a}function PCe(e,t){s0=1024,e&&!e.SSF&&(e.SSF=wr(ct)),e&&e.SSF&&(sh(),py(e.SSF),t.revssf=gy(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,ap?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=r$.indexOf(t.bookType)>-1,i=Y3();uC(t=t||{});var a=F3(),s="",o=0;if(t.cellXfs=[],Cc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Et(a,s,xH(e.Props,t)),i.coreprops.push(s),er(t.rels,2,s,Rt.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var c=[],f=0;f<e.SheetNames.length;++f)(e.Workbook.Sheets[f]||{}).Hidden!=2&&c.push(e.SheetNames[f]);e.Props.SheetNames=c}e.Props.Worksheets=e.Props.SheetNames.length,Et(a,s,bH(e.Props)),i.extprops.push(s),er(t.rels,3,s,Rt.EXT_PROPS),e.Custprops!==e.Props&&Kr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Et(a,s,wH(e.Custprops)),i.custprops.push(s),er(t.rels,4,s,Rt.CUST_PROPS));var h=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var p={"!id":{}},m=e.Sheets[e.SheetNames[o-1]],g=(m||{})["!type"]||"sheet";switch(g){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,Et(a,s,d$(o-1,t,e,p)),i.sheets.push(s),er(t.wbrels,-1,"worksheets/sheet"+o+"."+r,Rt.WS[0])}if(m){var y=m["!comments"],x=!1,_="";if(y&&y.length>0){var w=!1;y.forEach(function(T){T[1].forEach(function(S){S.T==!0&&(w=!0)})}),w&&(_="xl/threadedComments/threadedComment"+o+"."+r,Et(a,_,BSe(y,h,t)),i.threadedcomments.push(_),er(p,-1,"../threadedComments/threadedComment"+o+"."+r,Rt.TCMNT)),_="xl/comments"+o+"."+r,Et(a,_,t$(y)),i.comments.push(_),er(p,-1,"../comments"+o+"."+r,Rt.CMNT),x=!0}m["!legacy"]&&x&&Et(a,"xl/drawings/vmlDrawing"+o+".vml",e$(o,m["!comments"])),delete m["!comments"],delete m["!legacy"]}p["!id"].rId1&&Et(a,Hp(s),v0(p))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,Et(a,s,VH(t.Strings,t)),i.strs.push(s),er(t.wbrels,-1,"sharedStrings."+r,Rt.SST)),s="xl/workbook."+r,Et(a,s,x$(e)),i.workbooks.push(s),er(t.rels,1,s,Rt.WB),s="xl/theme/theme1.xml",Et(a,s,tC(e.Themes,t)),i.themes.push(s),er(t.wbrels,-1,"theme/theme1.xml",Rt.THEME),s="xl/styles."+r,Et(a,s,KH(e,t)),i.styles.push(s),er(t.wbrels,-1,"styles."+r,Rt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Et(a,s,e.vbaraw),i.vba.push(s),er(t.wbrels,-1,"vbaProject.bin",Rt.VBA)),s="xl/metadata."+r,Et(a,s,JH()),i.metadata.push(s),er(t.wbrels,-1,"metadata."+r,Rt.XLMETA),h.length>1&&(s="xl/persons/person.xml",Et(a,s,USe(h)),i.people.push(s),er(t.wbrels,-1,"persons/person.xml",Rt.PEOPLE)),Et(a,"[Content_Types].xml",mH(i,t)),Et(a,"_rels/.rels",v0(t.rels)),Et(a,"xl/_rels/workbook."+r+".rels",v0(t.wbrels)),delete t.revssf,delete t.ssf,a}function fC(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=Wa(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 MCe(e,t){return it.find(e,"EncryptedPackage")?OCe(e,t):w$(e,t)}function RCe(e,t){var r,n=e,i=t||{};return i.type||(i.type=kt&&Buffer.isBuffer(e)?"buffer":"base64"),r=$V(n,i),CCe(r,i)}function D$(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return xT(e.slice(r),t);default:break e}return U0.to_workbook(e,t)}function NCe(e,t){var r="",n=fC(e,t);switch(t.type){case"base64":r=Wa(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=Vu(e);break;default:throw new Error("Unrecognized type "+t.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(r=lr(r)),t.type="binary",D$(r,t)}function FCe(e,t){var r=e;return t.type=="base64"&&(r=Wa(r)),r=Ip.utils.decode(1200,r.slice(2),"str"),t.type="binary",D$(r,t)}function LCe(e){return e.match(/[^\x00-\x7F]/)?fo(e):e}function lS(e,t,r,n){return n?(r.type="string",U0.to_workbook(e,r)):U0.to_workbook(t,r)}function bT(e,t){D3();var r=t||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return bT(new Uint8Array(e),(r=wr(r),r.type="array",r));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!r.type&&(r.type=typeof Deno<"u"?"buffer":"array");var n=e,i=[0,0,0,0],a=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),y0={},r.dateNF&&(y0.dateNF=r.dateNF),r.type||(r.type=kt&&Buffer.isBuffer(e)?"buffer":"base64"),r.type=="file"&&(r.type=kt?"buffer":"binary",n=Dye(e),typeof Uint8Array<"u"&&!kt&&(r.type="array")),r.type=="string"&&(a=!0,r.type="binary",r.codepage=65001,n=LCe(e)),r.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var s=new ArrayBuffer(3),o=new Uint8Array(s);if(o.foo="bar",!o.foo)return r=wr(r),r.type="array",bT(P3(n),r)}switch((i=fC(n,r))[0]){case 208:if(i[1]===207&&i[2]===17&&i[3]===224&&i[4]===161&&i[5]===177&&i[6]===26&&i[7]===225)return MCe(it.read(n,r),r);break;case 9:if(i[1]<=8)return w$(n,r);break;case 60:return xT(n,r);case 73:if(i[1]===73&&i[2]===42&&i[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(i[1]===68)return zbe(n,r);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return UH.to_workbook(n,r);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?RCe(n,r):lS(e,n,r,a);case 239:return i[3]===60?xT(n,r):lS(e,n,r,a);case 255:if(i[1]===254)return FCe(n,r);if(i[1]===0&&i[2]===2&&i[3]===0)return Ou.to_workbook(n,r);break;case 0:if(i[1]===0&&(i[2]>=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return Ou.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return vT.to_workbook(n,r);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return GH.to_workbook(n,r);break;case 10:case 13:case 32:return NCe(n,r);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return Ube.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?vT.to_workbook(n,r):lS(e,n,r,a)}function P$(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Em(t.file,it.write(e,{type:kt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return it.write(e,t)}function ICe(e,t){var r=wr(t||{}),n=kCe(e,r);return BCe(n,r)}function BCe(e,t){var r={},n=kt?"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?it.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(dy(i))}return t.password&&typeof encrypt_agile<"u"?P$(encrypt_agile(i,t.password),t):t.type==="file"?Em(t.file,i):t.type=="string"?lr(i):i}function jCe(e,t){var r=t||{},n=L3e(e,r);return P$(n,r)}function io(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Bp(fo(n));case"binary":return fo(n);case"string":return e;case"file":return Em(t.file,n,"utf8");case"buffer":return kt?_l(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):io(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function UCe(e,t){switch(t.type){case"base64":return Bp(e);case"binary":return e;case"string":return e;case"file":return Em(t.file,e,"binary");case"buffer":return kt?_l(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Og(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"?Bp(r):t.type=="string"?lr(r):r;case"file":return Em(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function M$(e,t){D3(),M4e(e);var r=wr(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=M$(e,r);return r.type="array",dy(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 io(k3e(e,r),r);case"slk":case"sylk":return io(jH.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return io(E$(e.Sheets[e.SheetNames[i]],r),r);case"txt":return UCe(R$(e.Sheets[e.SheetNames[i]],r),r);case"csv":return io(hC(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return io(UH.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return Og(vT.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return io(U0.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return io(GH.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return io(zH.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return io(O$(e,r),r);case"wk1":return Og(Ou.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return Og(Ou.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),Og(S$(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),jCe(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return ICe(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function zCe(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 VCe(e,t,r){var n={};return n.type="file",n.file=t,zCe(n),M$(e,n)}function HCe(e,t,r,n,i,a,s,o){var c=sn(r),f=o.defval,h=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),p=!0,m=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(m,"__rowNum__",{value:r,enumerable:!1})}catch{m.__rowNum__=r}else m.__rowNum__=r;if(!s||e[r])for(var g=t.s.c;g<=t.e.c;++g){var y=s?e[r][g]:e[n[g]+c];if(y===void 0||y.t===void 0){if(f===void 0)continue;a[g]!=null&&(m[a[g]]=f);continue}var x=y.v;switch(y.t){case"z":if(x==null)break;continue;case"e":x=x==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+y.t)}if(a[g]!=null){if(x==null)if(y.t=="e"&&x===null)m[a[g]]=null;else if(f!==void 0)m[a[g]]=f;else if(h&&x===null)m[a[g]]=null;else continue;else m[a[g]]=h&&(y.t!=="n"||y.t==="n"&&o.rawNumbers!==!1)?x:ul(y,x,o);x!=null&&(p=!1)}}return{row:m,isempty:p}}function yx(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,a=[],s=0,o="",c={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},h=f.range!=null?f.range:e["!ref"];switch(f.header===1?n=1:f.header==="A"?n=2:Array.isArray(f.header)?n=3:f.header==null&&(n=0),typeof h){case"string":c=zt(h);break;case"number":c=zt(e["!ref"]),c.s.r=h;break;default:c=h}n>0&&(i=0);var p=sn(c.s.r),m=[],g=[],y=0,x=0,_=Array.isArray(e),w=c.s.r,T=0,S={};_&&!e[w]&&(e[w]=[]);var O=f.skipHidden&&e["!cols"]||[],C=f.skipHidden&&e["!rows"]||[];for(T=c.s.c;T<=c.e.c;++T)if(!(O[T]||{}).hidden)switch(m[T]=Lr(T),r=_?e[w][T]:e[m[T]+p],n){case 1:a[T]=T-c.s.c;break;case 2:a[T]=m[T];break;case 3:a[T]=f.header[T-c.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),o=s=ul(r,null,f),x=S[s]||0,!x)S[s]=1;else{do o=s+"_"+x++;while(S[o]);S[s]=x,S[o]=1}a[T]=o}for(w=c.s.r+i;w<=c.e.r;++w)if(!(C[w]||{}).hidden){var k=HCe(e,c,w,m,n,a,_,f);(k.isempty===!1||(n===1?f.blankrows!==!1:f.blankrows))&&(g[y++]=k.row)}return g.length=y,g}var zF=/"/g;function $Ce(e,t,r,n,i,a,s,o){for(var c=!0,f=[],h="",p=sn(r),m=t.s.c;m<=t.e.c;++m)if(n[m]){var g=o.dense?(e[r]||[])[m]:e[n[m]+p];if(g==null)h="";else if(g.v!=null){c=!1,h=""+(o.rawNumbers&&g.t=="n"?g.v:ul(g,null,o));for(var y=0,x=0;y!==h.length;++y)if((x=h.charCodeAt(y))===i||x===a||x===34||o.forceQuotes){h='"'+h.replace(zF,'""')+'"';break}h=="ID"&&(h='"ID"')}else g.f!=null&&!g.F?(c=!1,h="="+g.f,h.indexOf(",")>=0&&(h='"'+h.replace(zF,'""')+'"')):h="";f.push(h)}return o.blankrows===!1&&c?null:f.join(s)}function hC(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=zt(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),o=n.RS!==void 0?n.RS:`
`,c=o.charCodeAt(0),f=new RegExp((a=="|"?"\\|":a)+"+$"),h="",p=[];n.dense=Array.isArray(e);for(var m=n.skipHidden&&e["!cols"]||[],g=n.skipHidden&&e["!rows"]||[],y=i.s.c;y<=i.e.c;++y)(m[y]||{}).hidden||(p[y]=Lr(y));for(var x=0,_=i.s.r;_<=i.e.r;++_)(g[_]||{}).hidden||(h=$Ce(e,i,_,p,s,c,a,n),h!=null&&(n.strip&&(h=h.replace(f,"")),(h||n.blankrows!==!1)&&r.push((x++?o:"")+h)));return delete n.dense,r.join("")}function R$(e,t){t||(t={}),t.FS="	",t.RS=`
`;var r=hC(e,t);return r}function WCe(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=zt(e["!ref"]),a="",s=[],o,c=[],f=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)s[o]=Lr(o);for(var h=i.s.r;h<=i.e.r;++h)for(a=sn(h),o=i.s.c;o<=i.e.c;++o)if(t=s[o]+a,r=f?(e[h]||[])[o]: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}}c[c.length]=t+"="+n}return c}function N$(e,t,r){var n=r||{},i=+!n.skipHeader,a=e||{},s=0,o=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var c=typeof n.origin=="string"?Ir(n.origin):n.origin;s=c.r,o=c.c}var f,h={s:{c:0,r:0},e:{c:o,r:s+t.length-1+i}};if(a["!ref"]){var p=zt(a["!ref"]);h.e.c=Math.max(h.e.c,p.e.c),h.e.r=Math.max(h.e.r,p.e.r),s==-1&&(s=p.e.r+1,h.e.r=s+t.length-1+i)}else s==-1&&(s=0,h.e.r=t.length-1+i);var m=n.header||[],g=0;t.forEach(function(x,_){Kr(x).forEach(function(w){(g=m.indexOf(w))==-1&&(m[g=m.length]=w);var T=x[w],S="z",O="",C=ht({c:o+g,r:s+_+i});f=Kp(a,C),T&&typeof T=="object"&&!(T instanceof Date)?a[C]=T:(typeof T=="number"?S="n":typeof T=="boolean"?S="b":typeof T=="string"?S="s":T instanceof Date?(S="d",n.cellDates||(S="n",T=Pn(T)),O=n.dateNF||ct[14]):T===null&&n.nullError&&(S="e",T=0),f?(f.t=S,f.v=T,delete f.w,delete f.R,O&&(f.z=O)):a[C]=f={t:S,v:T},O&&(f.z=O))})}),h.e.c=Math.max(h.e.c,o+m.length-1);var y=sn(s);if(i)for(g=0;g<m.length;++g)a[Lr(g+o)+y]={t:"s",v:m[g]};return a["!ref"]=wt(h),a}function qCe(e,t){return N$(null,e,t)}function Kp(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Ir(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"?Kp(e,ht(t)):Kp(e,ht({r:t,c:r||0}))}function GCe(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 dC(){return{SheetNames:[],Sheets:{}}}function pC(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 a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=s+i)!=-1;++i);}if(v$(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 XCe(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=GCe(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 YCe(e,t){return e.z=t,e}function F$(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function KCe(e,t,r){return F$(e,"#"+t,r)}function ZCe(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function QCe(e,t,r,n){for(var i=typeof t!="string"?t:zt(t),a=typeof t=="string"?t:wt(t),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var c=Kp(e,s,o);c.t="n",c.F=a,delete c.v,s==i.s.r&&o==i.s.c&&(c.f=r,n&&(c.D=!0))}return e}var kg={encode_col:Lr,encode_row:sn,encode_cell:ht,encode_range:wt,decode_col:H3,decode_row:V3,split_cell:l2e,decode_cell:Ir,decode_range:pa,format_cell:ul,sheet_add_aoa:lH,sheet_add_json:N$,sheet_add_dom:T$,aoa_to_sheet:oh,json_to_sheet:qCe,table_to_sheet:A$,table_to_book:iCe,sheet_to_csv:hC,sheet_to_txt:R$,sheet_to_json:yx,sheet_to_html:E$,sheet_to_formulae:WCe,sheet_to_row_object_array:yx,sheet_get_cell:Kp,book_new:dC,book_append_sheet:pC,book_set_sheet_visibility:XCe,cell_set_number_format:YCe,cell_set_hyperlink:F$,cell_set_internal_link:KCe,cell_add_comment:ZCe,sheet_set_array_formula:QCe,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const VF=localStorage.getItem("loginResponse"),mC=VF?JSON.parse(VF).user:null,Is=mC?.table_prefix,ql=mC?.company_nit,Dg=mC?.username?.startsWith("view_");function JCe(){const{fetchSpecificReport:e,data:t,loading:r}=Zxe(),[n,i]=A.useState(!1),{data:a}=hy(Is),{categorias:s,loading:o,error:c}=$xe(Is),{subCategories:f,loading:h,error:p}=Wxe(Is),{sendReports:m,loading:g,error:y,response:x}=qxe(),{fetchReportHistory:_,data:w}=Gxe(),{updateEditPermission:T}=Xxe(),[S,O]=A.useState(!1),C=()=>{const ge=kg.book_new();V.forEach(Ie=>{const Re=Ie.id===0,je=Re?["Categoría","Subcategoría","Producción (Gal)","Ventas (COP)","Ventas (Gal)"]:["Categoría","Subcategoría","Ventas (COP)","Ventas (Gal)"],Ye=[];s.forEach(vt=>{f.filter(cn=>cn.category_id===vt.id).forEach(cn=>{const un=Re?[vt.name,cn.name,"","",""]:[vt.name,cn.name,"",""];Ye.push(un)})});const Ge=[je,...Ye],at=kg.aoa_to_sheet(Ge);kg.book_append_sheet(ge,at,Ie.nombre||"Colombia")}),VCe(ge,"Plantilla_Reportes.xlsx")},k=ge=>{const Ie=ge.target.files[0],Re=new FileReader;Re.onload=je=>{const Ye=je.target.result,Ge=bT(Ye,{type:"binary"}),at={};Ge.SheetNames.forEach((vt,nr)=>{const cn=Ge.Sheets[vt],un=kg.sheet_to_json(cn,{header:1}),Xi=nr===0;un.slice(1).forEach(xt=>{const[Mi,wn,Ur,Zr,Yi]=xt,oi=s.find(Ri=>Ri.name===Mi),Fn=f.find(Ri=>Ri.name===wn);!oi||!Fn||(at[nr]||(at[nr]={}),at[nr][oi.id]||(at[nr][oi.id]={}),at[nr][oi.id][Fn.id]=Xi?{produccion:parseInt(Ur||0),sales_cop:parseInt(Zr||0),sales_gal:parseInt(Yi||0)}:{ventasPesos:parseInt(Ur||0),ventasVolumen:parseInt(Zr||0)})})}),Le(at)},Re.readAsBinaryString(Ie)};A.useEffect(()=>{Is&&ql&&_({table_prefix:Is,company_nit:ql})},[Is,ql]);const[D,M]=A.useState(!1),[N,z]=A.useState({year:null,month:null}),H=(ge,Ie)=>{z({year:ge,month:Ie}),M(!0)},B=()=>M(!1),te=async()=>{try{await T({table_prefix:Is,company_nit:ql,year:N.year,month:N.month}),alert(`Se solicitó permiso de edición para ${N.month}/${N.year}`),B(),_({table_prefix:Is,company_nit:ql})}catch{alert("Error solicitando permiso de edición")}},ne=async()=>{try{const ge=await e({table_prefix:Is,company_nit:ql,year:N.year,month:N.month});console.log("Reporte específico recibido:",ge),i(!0)}catch{alert("Error obteniendo el reporte específico")}},le=ge=>{const Ie=V.find(Re=>Re.id===Number(ge));return Ie?Ie.nombre:"Desconocida"},Q=ge=>{const Ie=a?.categories?.find(Re=>Re.id===Number(ge))||s.find(Re=>Re.id===Number(ge));return Ie?Ie.name:`ID ${ge}`},ee=ge=>{const Ie=a?.subcategories?.find(Re=>Re.id===Number(ge))||f.find(Re=>Re.id===Number(ge));return Ie?Ie.name:`ID ${ge}`},ce=()=>s.map(Ie=>{const Re=f.filter(Ge=>Ge.category_id===Ie.id),je=Re.reduce((Ge,at)=>{const vt=ze?.[0]?.[Ie.id]?.[at.id]||{};return Ge.produccion+=Number(vt.produccion||0),Ge.sales_cop+=Number(vt.sales_cop||0),Ge.sales_gal+=Number(vt.sales_gal||0),Ge},{produccion:0,sales_cop:0,sales_gal:0}),Ye=Re.reduce((Ge,at)=>(V.filter(vt=>vt.id!==0&&vt.id!==6).forEach(vt=>{const nr=ze?.[vt.id]?.[Ie.id]?.[at.id]||{};Ge.ventasPesos+=Number(nr.ventasPesos||0),Ge.ventasVolumen+=Number(nr.ventasVolumen||0)}),Ge),{ventasPesos:0,ventasVolumen:0});return{cat:Ie,totalColombia:je,totalRegiones:Ye}}),[J,R]=A.useState({}),se=(ge,Ie,Re,je)=>{R(Ye=>({...Ye,[`col-${ge}-${Ie}-${Re}`]:je}))},F=s.every(ge=>f.filter(Re=>Re.category_id===ge.id).every(Re=>["produccion","sales_cop","sales_gal"].every(je=>J[`col-${ge.id}-${Re.id}-${je}`]))),V=[{id:0,nombre:"Colombia"},{id:1,nombre:"Caribe"},{id:2,nombre:"Pacífico"},{id:3,nombre:"Andina"},{id:4,nombre:"Orinoquía"},{id:5,nombre:"Amazonía"},{id:6,nombre:"Revisar"}],q=V.filter(ge=>ge.id!==0&&ge.id!==6).map(ge=>ge.nombre);q.length>1?`${q.slice(0,-1).join(", ")}${q.slice(-1)}`:q[0];const X=ge=>!ge&&ge!==0?"":new Intl.NumberFormat("es-CO").format(ge),[ae,Se]=A.useState({year:new Date().getFullYear(),month:new Date().getMonth()+1}),ue=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][Number(ae.month)-1],[xe,Ne]=A.useState(!1),j=()=>{Ne(!0),window.scrollTo({top:0,behavior:"smooth"})},[ze,Le]=A.useState({}),[He,Xe]=A.useState(V[0]),[ie,yt]=A.useState(V[0]),Yt=ge=>{Xe(ge),yt(ge)},Sr=()=>{const ge=V.findIndex(Ie=>Ie.id===He.id);if(ge<V.length-1){const Ie=V[ge+1];Yt(Ie)}},Tt=()=>{const ge=V.findIndex(Ie=>Ie.id===He.id);if(ge>0){const Ie=V[ge-1];Yt(Ie)}},Dr=Kxe.colombia.regiones.find(ge=>ge.id_region===He.id),vr=Dr?Object.values(Dr.departamentos):[];A.useEffect(()=>{if(s.length>0&&f.length>0){const ge=V.reduce((Ie,Re)=>(Ie[Re.id]=s.reduce((je,Ye)=>{const Ge=f.filter(at=>at.category_id===Ye.id);return je[Ye.id]=Ge.reduce((at,vt)=>(at[vt.id]={produccion:"",ventasPesos:"",ventasVolumen:"",sales_cop:"",sales_gal:""},at),{}),je},{}),Ie),{});Le(ge)}},[s,f]);const It=(ge,Ie,Re,je,Ye)=>{Le(Ge=>({...Ge,[ge]:{...Ge[ge],[Ie]:{...Ge[ge][Ie],[Re]:{...Ge[ge][Ie][Re],[je]:Ye}}}}))},xr=async()=>{const ge=[],Ie=[];V.filter(Re=>Re.id!==6).forEach(Re=>{const je=ze[Re.id];je&&Object.keys(je).forEach(Ye=>{const Ge=je[Ye];Object.keys(Ge).forEach(at=>{const vt=Ge[at];Re.id===0?Ie.push({year:ae.year,month:ae.month,category_id:Number(Ye),subcategory_id:Number(at),produccion:Number(vt.produccion||0),sales_cop:Number(vt.sales_cop||0),sales_gal:Number(vt.sales_gal||0)}):ge.push({year:ae.year,month:ae.month,category_id:Number(Ye),subcategory_id:Number(at),region:Re.id,produccion:Number(vt.produccion||0),ventasPesos:Number(vt.ventasPesos||0),ventasVolumen:Number(vt.ventasVolumen||0)})})})}),Ie.length>0&&await m({tablePrefix:Is,companyId:ql,reportType:"country",reports:Ie}),ge.length>0&&await m({tablePrefix:Is,companyId:ql,reportType:"region",reports:ge}),y||alert("Reportes enviados correctamente (nacional y regional)")};return xe?o||h?P.jsx("p",{children:"Cargando datos..."}):c||p?P.jsx("p",{children:"Error cargando datos"}):P.jsx("div",{className:"report-form-container-main",children:P.jsxs("div",{className:"report-form-container",children:[P.jsx("div",{className:"selected-zone",children:V.map(ge=>P.jsxs("div",{className:"selected-zone-item",onClick:()=>Yt(ge),children:[P.jsx("button",{className:He.id===ge.id?"active":"",children:ge.id+1}),P.jsx("div",{className:"selected-zone-content",children:P.jsx("div",{className:"zone-name",children:ge.id===6?"Revisar Reporte":ge.id===0?"Colombia":`Región ${ge.nombre}`})})]},ge.id))}),P.jsxs("div",{className:"report-form-title",children:[He.id===0?`Reportar Colombia - ${ue} ${ae.year}`:`Reportar Región ${He.nombre} - ${ue} ${ae.year}`,P.jsx("br",{}),He.id!==0&&He.id!==6&&P.jsxs("div",{className:"regions-depto-container",children:[P.jsx("strong",{children:"Departamentos:"})," ",vr.join(", ")]})]}),P.jsxs("div",{className:"excel-template-form",children:[P.jsx("button",{onClick:()=>O(!S),children:"Importar Datos"}),S&&P.jsxs("div",{className:"excel-template-window",children:[P.jsxs("label",{className:"excel-upload-btn",children:["Cargar Excel",P.jsx("input",{type:"file",accept:".xlsx",onChange:k,style:{display:"none"}})]}),P.jsx("button",{onClick:C,children:"Descargar Plantilla"})]})]}),ie.id===6?P.jsxs("div",{className:"report-resume",children:[P.jsx("h2",{className:"report-resume-title",children:"Resumen de los Informes"}),P.jsxs("div",{className:"resume-comparision",children:[P.jsx("h3",{children:"Comparativo: Colombia vs Total Regiones"}),P.jsxs("table",{className:"resume-table comparativo-table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"Categoría"}),P.jsx("th",{children:"Producción Col(Gal) "}),P.jsx("th",{children:"Ventas Col (COP)"}),P.jsx("th",{children:"Ventas Col (Gal)"}),P.jsx("th",{children:"Ventas (COP) Regiones"}),P.jsx("th",{children:"Ventas (Gal) Regiones"})]})}),P.jsx("tbody",{children:ce().map(({cat:ge,totalColombia:Ie,totalRegiones:Re})=>P.jsxs("tr",{children:[P.jsx("td",{children:ge.name}),P.jsx("td",{children:X(Ie.produccion)}),P.jsx("td",{className:Ie.sales_cop!==Re.ventasPesos?"mismatch":"",children:X(Ie.sales_cop)}),P.jsx("td",{className:Ie.sales_gal!==Re.ventasVolumen?"mismatch":"",children:X(Ie.sales_gal)}),P.jsx("td",{children:X(Re.ventasPesos)}),P.jsx("td",{children:X(Re.ventasVolumen)})]},ge.id))})]})]}),P.jsxs("div",{className:"region-resume",children:[P.jsx("h3",{className:"region-title",children:"Colombia"}),s.map(ge=>{const Ie=f.filter(Re=>Re.category_id===ge.id);return Ie.length===0?null:P.jsxs("div",{className:"resume-report-form-category",children:[P.jsx("div",{className:"categoria-header",children:P.jsxs("span",{className:"categoria-title",children:["Categoría: ",P.jsx("b",{children:ge.name})]})}),P.jsx("div",{className:"table-container",children:P.jsxs("table",{className:"resume-table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"Subcategoría"}),P.jsx("th",{children:"Producción (Gal)"}),P.jsx("th",{children:"Ventas (COP)"}),P.jsx("th",{children:"Ventas (Gal)"})]})}),P.jsx("tbody",{children:Ie.map(Re=>{const je=ze?.[0]?.[ge.id]?.[Re.id]||{};return P.jsxs("tr",{children:[P.jsx("td",{children:Re.name}),["produccion","sales_cop","sales_gal"].map(Ye=>P.jsx("td",{children:P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[P.jsx("span",{children:X(je[Ye])}),P.jsx("input",{type:"checkbox",checked:J[`col-${ge.id}-${Re.id}-${Ye}`]||!1,onChange:Ge=>se(ge.id,Re.id,Ye,Ge.target.checked)})]})},Ye))]},Re.id)})})]})})]},ge.id)})]},0),V.filter(ge=>ge.id!==6&&ge.id!==0).map(ge=>P.jsxs("div",{className:"region-resume",children:[P.jsxs("h3",{className:"region-title",children:["Región ",ge.nombre]}),s.map(Ie=>{const Re=f.filter(je=>je.category_id===Ie.id);return Re.length===0?null:P.jsxs("div",{className:"resume-report-form-category",children:[P.jsx("div",{className:"categoria-header",children:P.jsxs("span",{className:"categoria-title",children:["Categoría: ",P.jsx("b",{children:Ie.name})]})}),P.jsx("div",{className:"table-container",children:P.jsxs("table",{className:"resume-table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"Subcategoría"}),P.jsx("th",{children:"Ventas (COP)"}),P.jsx("th",{children:"Ventas (Gal)"})]})}),P.jsx("tbody",{children:Re.map(je=>{const Ye=ze?.[ge.id]?.[Ie.id]?.[je.id]||{};return P.jsxs("tr",{children:[P.jsx("td",{children:je.name}),P.jsx("td",{children:X(Ye.ventasPesos)}),P.jsx("td",{children:X(Ye.ventasVolumen)})]},je.id)})})]})})]},Ie.id)})]},ge.id)),P.jsx("div",{className:"resume-actions",children:P.jsx("button",{onClick:xr,disabled:g||!F,className:`send-report-btn ${F?"":"disabled"}`,children:g?"Enviando...":F?"Enviar Reportes":"Marca todas las casillas para enviar"})})]}):s.map(ge=>{const Ie=f.filter(Re=>Re.category_id===ge.id);return Ie.length===0?null:P.jsx("div",{className:"report-form",children:P.jsx("div",{className:"report-form-content",children:P.jsxs("div",{className:"report-form-category",children:[P.jsxs("div",{className:"categoria-title",children:["Categoría: ",P.jsx("b",{children:ge.name}),He.id===0?P.jsx("span",{style:{marginLeft:"1rem",color:"#666"},children:P.jsx("b",{children:"Colombia"})}):P.jsxs("span",{style:{marginLeft:"1rem",color:"#666"},children:["Región: ",P.jsx("b",{children:V.find(Re=>Re.id===He.id)?.nombre})]})]}),P.jsxs("table",{className:`report-table ${He.id===0?"cols-4":"cols-3"}`,children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"Subcategoría"}),He.id===0?P.jsxs(P.Fragment,{children:[P.jsx("th",{children:"Producción (Gal)"}),P.jsx("th",{children:"Ventas (COP)"}),P.jsx("th",{children:"Ventas (Gal)"})]}):P.jsxs(P.Fragment,{children:[P.jsx("th",{children:"Ventas (COP)"}),P.jsx("th",{children:"Ventas (Gal)"})]})]})}),P.jsx("tbody",{children:Ie.map(Re=>P.jsxs("tr",{children:[P.jsx("td",{children:Re.name}),He.id===0?P.jsxs(P.Fragment,{children:[P.jsx("td",{children:P.jsx("input",{type:"text",value:X(ze?.[He.id]?.[ge.id]?.[Re.id]?.produccion||"0"),onChange:je=>{const Ye=je.target.value.replace(/\./g,""),Ge=Ye===""?"":parseInt(Ye,10);It(He.id,ge.id,Re.id,"produccion",Ge)}})}),P.jsx("td",{children:P.jsx("input",{type:"text",value:X(ze?.[He.id]?.[ge.id]?.[Re.id]?.sales_cop||"0"),onChange:je=>{const Ye=je.target.value.replace(/\./g,""),Ge=Ye===""?"":parseInt(Ye,10);It(He.id,ge.id,Re.id,"sales_cop",Ge)}})}),P.jsx("td",{children:P.jsx("input",{type:"text",value:X(ze?.[He.id]?.[ge.id]?.[Re.id]?.sales_gal||"0"),onChange:je=>{const Ye=je.target.value.replace(/\./g,""),Ge=Ye===""?"":parseInt(Ye,10);It(He.id,ge.id,Re.id,"sales_gal",Ge)}})})]}):P.jsx(P.Fragment,{children:["ventasPesos","ventasVolumen"].map(je=>P.jsx("td",{children:P.jsx("input",{type:"text",value:X(ze?.[He.id]?.[ge.id]?.[Re.id]?.[je]||"0"),onChange:Ye=>{const Ge=Ye.target.value.replace(/\./g,""),at=Ge===""?"":parseInt(Ge,10);It(He.id,ge.id,Re.id,je,at)}})},je))})]},Re.id))})]})]})})},ge.id)}),P.jsxs("div",{className:"form-pagination",children:[P.jsx("button",{onClick:Tt,disabled:He.id===0,children:"Anterior"}),P.jsx("button",{onClick:Sr,disabled:He.id===V.length-1,children:"Siguiente"})]}),y&&P.jsxs("p",{style:{color:"red"},children:["Error: ",y.message||y]}),x&&P.jsx("p",{style:{color:"green"},children:x.message})]})}):P.jsxs(P.Fragment,{children:[P.jsx(cT,{isOpen:D,children:P.jsxs("div",{className:"create-edit-request",children:[P.jsx("h3",{children:Dg?"¿Deseas ver el histórico del reporte?":"¿Deseas solicitar permisos de edición?"}),P.jsx("p",{children:Dg?P.jsxs(P.Fragment,{children:["Podrás consultar el histórico del reporte de"," ",P.jsxs("strong",{children:[N.month,"/",N.year]}),"."]}):P.jsxs(P.Fragment,{children:["Esto permitirá volver a editar el reporte de"," ",P.jsxs("strong",{children:[N.month,"/",N.year]}),"."]})}),P.jsx("div",{className:"modal-actions",children:Dg?P.jsx("button",{onClick:ne,style:{background:"var(--info)"},children:"Ver histórico de reporte"}):P.jsxs(P.Fragment,{children:[P.jsx("button",{onClick:ne,style:{background:"var(--info)"},children:"Ver histórico de reporte"}),P.jsx("button",{onClick:te,style:{background:"var(--success)"},children:"Confirmar"}),P.jsx("button",{onClick:B,style:{background:"var(--danger)"},children:"Cancelar"})]})})]})}),P.jsx(cT,{isOpen:n,children:P.jsxs("div",{className:"specific-report-modal",children:[P.jsxs("h2",{children:["Reporte de ",N.month,"/",N.year]}),r&&P.jsx("p",{children:"Cargando reporte..."}),!r&&t&&P.jsxs(P.Fragment,{children:[P.jsxs("p",{children:[P.jsx("strong",{children:"Total registros:"})," ",t.total]}),t.region_reports>0&&P.jsxs("div",{className:"report-section",children:[P.jsx("h3",{children:"Reportes Regionales"}),P.jsxs("table",{className:"resume-table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"Región"}),P.jsx("th",{children:"Categoría"}),P.jsx("th",{children:"Subcategoría"}),P.jsx("th",{children:"Producción"}),P.jsx("th",{children:"Ventas (COP)"}),P.jsx("th",{children:"Ventas (Volumen)"})]})}),P.jsx("tbody",{children:t.data.filter(ge=>ge.report_type==="region").map(ge=>P.jsxs("tr",{children:[P.jsx("td",{children:le(ge.region)}),P.jsx("td",{children:Q(ge.category_id)}),P.jsx("td",{children:ee(ge.subcategory_id)}),P.jsx("td",{children:X(ge.produccion)}),P.jsx("td",{children:X(ge.ventas_pesos)}),P.jsx("td",{children:X(ge.ventas_volumen)})]},`region-${ge.id}`))})]})]}),t.country_reports>0&&P.jsxs("div",{className:"report-section",children:[P.jsx("h3",{children:"Reporte Nacional (Colombia)"}),P.jsxs("table",{className:"resume-table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"Categoría"}),P.jsx("th",{children:"Subcategoría"}),P.jsx("th",{children:"Producción"}),P.jsx("th",{children:"Ventas (COP)"}),P.jsx("th",{children:"Ventas (Volumen)"})]})}),P.jsx("tbody",{children:t.data.filter(ge=>ge.report_type==="country").map(ge=>P.jsxs("tr",{children:[P.jsx("td",{children:Q(ge.category_id)}),P.jsx("td",{children:ee(ge.subcategory_id)}),P.jsx("td",{children:X(ge.produccion)}),P.jsx("td",{children:X(ge.ventas_pesos??"-")}),P.jsx("td",{children:X(ge.ventas_volumen??"-")})]},`country-${ge.id}`))})]})]})]}),!r&&!t&&P.jsx("p",{children:"No hay datos disponibles para este mes."}),P.jsx("div",{className:"modal-actions",children:P.jsx("button",{onClick:()=>i(!1),children:"Cerrar"})})]})}),P.jsxs("div",{className:"report-date-selection",children:[P.jsx("div",{className:"report-date-title",children:"Seleccionar mes y año del reporte"}),P.jsx("div",{className:"year-buttons-container",children:[2019,2020,2021,2022,2023,2024,2025].map(ge=>P.jsxs("div",{className:"year-block",children:[P.jsx("h3",{children:ge}),P.jsx("div",{className:"months-grid",children:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"].map((Ie,Re)=>{const je=Re+1,Ye=Array.isArray(w?.history)&&w.history.some(Ge=>Ge.year===ge&&Ge.month===je);return P.jsx("button",{className:`month-button 
                                                    ${ae.year===ge&&ae.month===je?"selected":""}
                                                    ${Ye?"disabled":""}
                                                `,onClick:()=>{Ye?H(ge,je):Se({year:ge,month:je})},children:Ie},`${ge}-${je}`)})})]},ge))}),Dg?P.jsx(P.Fragment,{}):P.jsx("button",{className:"continue-button",onClick:j,disabled:!ae.year||!ae.month,children:"Continuar"})]})]})}function eOe(){const e=[{name:"Región Caribe",image:EV},{name:"Región Andina",image:SV},{name:"Región Pacífica",image:AV},{name:"Región Orinoquía",image:TV},{name:"Región Amazonía",image:wV}];return P.jsx("div",{className:"regions-container",children:e.map(t=>P.jsxs("div",{className:"regions",children:[P.jsx("div",{className:"region-name",children:t.name}),P.jsx("div",{className:"region-image",children:P.jsx("img",{src:t.image,alt:t.name})})]},t.name))})}function tOe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{saveColors:async({table_prefix:o,color_primary:c,color_secondary:f,color_tertiary:h,color_quaternary:p})=>{t(!0),n(null);try{const m=await da.post("/api/config/save-colors",{table_prefix:o,color_primary:c,color_secondary:f,color_tertiary:h,color_quaternary:p});return a(m.data),m.data}catch(m){throw n(m.response?.data||{error:"Error de conexión"}),m}finally{t(!1)}},data:i,loading:e,error:r}}function rOe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{saveCategory:async({table_prefix:o,name:c})=>{t(!0),n(null);try{const f=await da.post("/api/config/save-category",{table_prefix:o,name:c});return a(f.data),f.data}catch(f){throw n(f.response?.data||{error:"Error de conexión"}),f}finally{t(!1)}},data:i,loading:e,error:r}}function nOe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{saveSubcategory:async({table_prefix:o,name:c,category_id:f})=>{t(!0),n(null);try{const h=await da.post("/api/config/save-subcategory",{table_prefix:o,name:c,category_id:f});return a(h.data),h.data}catch(h){throw n(h.response?.data||{error:"Error de conexión"}),h}finally{t(!1)}},data:i,loading:e,error:r}}function iOe(){const[e,t]=A.useState("paleta"),r=localStorage.getItem("loginResponse"),n=r?JSON.parse(r).user:null,{data:i,loading:a,error:s}=hy(n?.table_prefix);A.useEffect(()=>{i&&console.log("Configs cargadas desde la DB:",i)},[i]);const[o,c]=A.useState("#000000"),[f,h]=A.useState("#000000"),[p,m]=A.useState("#000000"),[g,y]=A.useState("#000000");A.useEffect(()=>{const ce=JSON.parse(localStorage.getItem("researchColors"));if(ce&&(c(ce.color_primary),h(ce.color_secondary),m(ce.color_tertiary),y(ce.color_quaternary)),i?.configurations){const J=i.configurations,R={color_primary:J.color_primary||"#000000",color_secondary:J.color_secondary||"#000000",color_tertiary:J.color_tertiary||"#000000",color_quaternary:J.color_quaternary||"#000000"};c(R.color_primary),h(R.color_secondary),m(R.color_tertiary),y(R.color_quaternary),localStorage.setItem("researchColors",JSON.stringify(R))}},[i]);const{saveColors:x,loading:_}=tOe(),w=()=>{n&&x({table_prefix:n.table_prefix,color_primary:o,color_secondary:f,color_tertiary:p,color_quaternary:g})},[T,S]=A.useState(""),{saveCategory:O,loading:C,error:k}=rOe(),D=()=>{!n||!T||O({table_prefix:n.table_prefix,name:T}).then(()=>S(""))},[M,N]=A.useState(""),[z,H]=A.useState(""),{saveSubcategory:B,loading:te,error:ne}=nOe(),le=()=>{!n||!M||!z||B({table_prefix:n.table_prefix,name:M,category_id:z}).then(()=>{N(""),H("")})},Q=[{key:"paleta",label:"Paleta de colores"},{key:"categorias",label:"Categorías"},{key:"subcategorias",label:"Subcategorías"}],ee=()=>{switch(e){case"paleta":return a?P.jsx("p",{children:"Cargando configuraciones..."}):s?P.jsxs("p",{children:["Error: ",JSON.stringify(s)]}):P.jsxs("div",{className:"palette-config",children:[P.jsx("h3",{className:"section-title",children:"Paleta de Colores"}),P.jsx("div",{className:"color-picker",children:P.jsxs("label",{children:["Color Primario",P.jsx("input",{type:"color",value:o,onChange:ce=>c(ce.target.value)})]})}),P.jsx("div",{className:"color-picker",children:P.jsxs("label",{children:["Color Secundario",P.jsx("input",{type:"color",value:f,onChange:ce=>h(ce.target.value)})]})}),P.jsx("div",{className:"color-picker",children:P.jsxs("label",{children:["Color Terciario",P.jsx("input",{type:"color",value:p,onChange:ce=>m(ce.target.value)})]})}),P.jsx("div",{className:"color-picker",children:P.jsxs("label",{children:["Color Cuaternario",P.jsx("input",{type:"color",value:g,onChange:ce=>y(ce.target.value)})]})}),P.jsx("button",{onClick:w,disabled:_,children:_?"Guardando...":"Guardar colores"})]});case"categorias":return P.jsxs("div",{className:"categories-config",children:[P.jsx("h3",{className:"section-title",children:"Agregar Categoría"}),P.jsxs("div",{className:"category-form",children:[P.jsx("input",{type:"text",placeholder:"Nombre de categoría",value:T,onChange:ce=>S(ce.target.value)}),P.jsx("button",{onClick:D,disabled:C,children:C?"Guardando...":"Guardar categoría"}),k&&P.jsxs("p",{className:"error-msg",children:["Error: ",JSON.stringify(k)]})]}),P.jsx("h4",{className:"section-subtitle",children:"Categorías existentes"}),P.jsx("div",{className:"category-list",children:i?.categories?.length>0?i.categories.map(ce=>P.jsxs("div",{className:"category-item",children:[P.jsx("span",{className:"category-name",children:ce.name}),P.jsx("ul",{className:"subcategory-list",children:i?.subcategories?.filter(J=>J.category_id===ce.id).map(J=>P.jsx("li",{children:J.name},J.id))})]},ce.id)):P.jsx("p",{className:"empty-text",children:"No hay categorías registradas"})})]});case"subcategorias":return P.jsxs("div",{className:"subcategories-config",children:[P.jsx("h3",{className:"section-title",children:"Agregar Subcategoría"}),P.jsxs("div",{className:"subcategory-form",children:[P.jsx("input",{type:"text",placeholder:"Nombre de subcategoría",value:M,onChange:ce=>N(ce.target.value)}),P.jsxs("select",{value:z,onChange:ce=>H(ce.target.value),children:[P.jsx("option",{value:"",children:"Selecciona una categoría"}),i?.categories?.map(ce=>P.jsx("option",{value:ce.id,children:ce.name},ce.id))]}),P.jsx("button",{onClick:le,disabled:te,children:te?"Guardando...":"Guardar"}),ne&&P.jsxs("p",{className:"error-msg",children:["Error: ",JSON.stringify(ne)]})]}),P.jsx("h4",{className:"section-subtitle",children:"Categorías y Subcategorías"}),P.jsx("div",{className:"subcategory-list-container",children:i?.categories?.length>0?i.categories.map(ce=>P.jsxs("div",{className:"subcategory-item",children:[P.jsx("span",{className:"subcategory-cat-title",children:ce.name}),P.jsx("ul",{className:"subcategory-list",children:i?.subcategories?.filter(J=>J.category_id===ce.id).map(J=>P.jsx("li",{children:J.name},J.id))})]},ce.id)):P.jsx("p",{className:"empty-text",children:"No hay categorías registradas"})})]});default:return P.jsx("div",{children:"Selecciona una opción"})}};return P.jsx("div",{className:"configuration-container",children:P.jsxs("div",{className:"config-content",children:[P.jsx("div",{className:"config-content-left",children:Q.map(ce=>P.jsx("div",{className:`menu-item ${e===ce.key?"active":""}`,onClick:()=>t(ce.key),children:ce.label},ce.key))}),P.jsx("div",{className:"config-content-rigth",children:ee()})]})})}function aOe(){const[e,t]=A.useState(null),[r,n]=A.useState(!1),[i,a]=A.useState(null);return{fetchEditableReports:async({table_prefix:o,company_nit:c})=>{n(!0),a(null);try{console.log("Enviando petición a /api/history/get-editable-reports:",{table_prefix:o,company_nit:c});const f=await da.post("/api/history/get-editable-reports",{table_prefix:o,company_nit:c});return console.log("Respuesta recibida (reportes editables):",f.data),t(f.data),f.data}catch(f){throw console.error("Error en fetchEditableReports:",f.response?.data||f.message),a(f.response?.data||{error:"Error de conexión"}),f}finally{n(!1)}},data:e,loading:r,error:i}}function sOe(){const[e,t]=A.useState(!1),[r,n]=A.useState(null),[i,a]=A.useState(null);return{deleteReportHistory:async({table_prefix:o,company_nit:c,year:f,month:h})=>{t(!0),n(null);try{console.log("Enviando petición a /api/history/delete-report-history:",{table_prefix:o,company_nit:c,year:f,month:h});const p=await da.post("/api/history/delete-report-history",{table_prefix:o,company_nit:c,year:f,month:h});return console.log("🗑️ Respuesta desde backend (eliminación):",p.data),a(p.data),p.data}catch(p){throw console.error("Error en deleteReportHistory:",p.response?.data||p.message),n(p.response?.data||{error:"Error de conexión"}),p}finally{t(!1)}},response:i,loading:e,error:r}}function oOe(){const e=localStorage.getItem("loginResponse"),t=e?JSON.parse(e).user:null,r=t?.table_prefix,n=t?.company_nit,{fetchEditableReports:i,data:a,loading:s,error:o}=aOe(),{deleteReportHistory:c,loading:f}=sOe(),[h,p]=A.useState(!1),[m,g]=A.useState(null),[y,x]=A.useState({year:null,month:null}),_=[{id:1,name:"Test 1",nit:"900111111"},{id:2,name:"Test 2",nit:"900222222"},{id:3,name:"Test 3",nit:"900333333"},{id:4,name:"Test 4",nit:"900444444"},{id:5,name:"Test 5",nit:"900555555"}],w={history:[{year:2024,month:3},{year:2024,month:5},{year:2025,month:1},{year:2025,month:8}]},T=[{id:1,company:"Test 1",date:"2025-10-27",action:"Ha reportado el mes de septiembre 2025."},{id:2,company:"Test 2",date:"2025-10-26",action:"Ha solicitado permiso de edición para agosto 2025."},{id:3,company:"Test 3",date:"2025-10-25",action:"Se le ha rechazado la solicitud de edición del mes de julio 2025."},{id:4,company:"Test 4",date:"2025-10-23",action:"Ha reportado correctamente el mes de agosto 2025."},{id:5,company:"Test 5",date:"2025-10-20",action:"Ha solicitado permiso de edición para junio 2025."},{id:6,company:"Test 1",date:"2025-09-29",action:"Se ha aprobado la solicitud de edición del mes de mayo 2025."},{id:7,company:"Test 3",date:"2025-09-20",action:"Ha reportado el mes de abril 2025 con observaciones."},{id:8,company:"Test 4",date:"2025-09-15",action:"Ha solicitado permiso de edición para marzo 2025."},{id:9,company:"Test 2",date:"2025-08-30",action:"Ha completado el envío del reporte de julio 2025."},{id:10,company:"Test 5",date:"2025-08-25",action:"Ha sido rechazado el reporte de mayo 2025 por inconsistencias."},{id:11,company:"Test 1",date:"2025-08-15",action:"Ha reportado exitosamente el mes de abril 2025."},{id:12,company:"Test 2",date:"2025-08-10",action:"Ha solicitado corrección del reporte de marzo 2025."},{id:13,company:"Test 3",date:"2025-07-29",action:"Ha enviado reporte pendiente de febrero 2025."},{id:14,company:"Test 4",date:"2025-07-10",action:"Ha sido aprobada la edición de enero 2025."},{id:15,company:"Test 5",date:"2025-06-15",action:"Ha reportado el mes de diciembre 2024 correctamente."}];A.useEffect(()=>{r&&n&&i({table_prefix:r,company_nit:n})},[r,n]);const S=async(k,D)=>{if(window.confirm(`¿Dar permiso de edición para el reporte de ${D}/${k}?`))try{await c({table_prefix:r,company_nit:n,year:k,month:D}),await i({table_prefix:r,company_nit:n})}catch(N){console.error("Error al eliminar el registro:",N)}},O=k=>{g(k),p(!0)},C=()=>{alert(`Continuar con ${y.month}/${y.year} para ${m?.name}`),p(!1)};return P.jsxs("div",{className:"administration-container",children:[P.jsx("h2",{children:"Administración de reportes"}),s&&P.jsx("p",{children:"Cargando reportes editables..."}),o&&P.jsxs("p",{style:{color:"red"},children:["Error: ",o.error]}),a?.reports?.length>0?P.jsxs("table",{className:"editable-reports-table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"ID"}),P.jsx("th",{children:"Año"}),P.jsx("th",{children:"Mes"}),P.jsx("th",{children:"NIT Empresa"}),P.jsx("th",{children:"Acción"})]})}),P.jsx("tbody",{children:a.reports.map(k=>P.jsxs("tr",{children:[P.jsx("td",{children:k.id}),P.jsx("td",{children:k.year}),P.jsx("td",{children:k.month}),P.jsx("td",{children:k.company_nit}),P.jsx("td",{children:P.jsx("button",{className:"grant-edit-btn",disabled:f,onClick:()=>S(k.year,k.month),children:"Dar permiso de edición"})})]},k.id))})]}):!s&&P.jsx("p",{children:"No hay reportes con permiso de edición."}),P.jsx("h3",{style:{marginTop:"2rem"},children:"Empresas"}),P.jsxs("table",{className:"editable-reports-table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"ID"}),P.jsx("th",{children:"Empresa"}),P.jsx("th",{children:"NIT"}),P.jsx("th",{children:"Acción"})]})}),P.jsx("tbody",{children:_.map(k=>P.jsxs("tr",{children:[P.jsx("td",{children:k.id}),P.jsx("td",{children:k.name}),P.jsx("td",{children:k.nit}),P.jsx("td",{children:P.jsx("button",{onClick:()=>O(k),children:"Ver meses faltantes"})})]},k.id))})]}),P.jsx(cT,{isOpen:h,children:P.jsxs("div",{className:"report-date-selection",children:[P.jsxs("div",{className:"report-date-title",children:["Seleccionar mes y año del reporte - ",m?.name]}),P.jsx("div",{className:"year-buttons-container",children:[2019,2020,2021,2022,2023,2024,2025].map(k=>P.jsxs("div",{className:"year-block",children:[P.jsx("h3",{children:k}),P.jsx("div",{className:"months-grid",children:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"].map((D,M)=>{const N=M+1,z=w.history.some(H=>H.year===k&&H.month===N);return P.jsx("button",{className:`month-button 
                          ${y.year===k&&y.month===N?"selected":""}
                          ${z?"reported":"missing"}
                        `,onClick:()=>x({year:k,month:N}),children:D},`${k}-${N}`)})})]},k))}),P.jsxs("div",{className:"btn-container",children:[P.jsx("button",{className:"continue-button",onClick:C,disabled:!y.year||!y.month,children:"Continuar"}),P.jsx("button",{className:"close-modal",onClick:()=>p(!1),children:"Cerrar"})]})]})}),P.jsx("h3",{style:{marginTop:"2rem"},children:"Log de eventos y acciones"}),P.jsxs("table",{className:"event-log-table",children:[P.jsx("thead",{children:P.jsxs("tr",{children:[P.jsx("th",{children:"#"}),P.jsx("th",{children:"Empresa"}),P.jsx("th",{children:"Fecha"}),P.jsx("th",{children:"Acción / Evento"})]})}),P.jsx("tbody",{children:T.map(k=>P.jsxs("tr",{children:[P.jsx("td",{children:k.id}),P.jsx("td",{children:k.company}),P.jsx("td",{children:k.date}),P.jsx("td",{children:k.action})]},k.id))})]})]})}function lOe(){const[e,t]=A.useState("Inicio"),[r,n]=A.useState(!1),i=localStorage.getItem("loginResponse"),a=i?JSON.parse(i).user:null,{data:s}=hy(a?.table_prefix);//! define site ico
const[o,c]=A.useState("#ffffffff"),[f,h]=A.useState("#ffffffff"),[p,m]=A.useState("#000000ff"),[g,y]=A.useState("#ffffffff");A.useEffect(()=>{const w=JSON.parse(localStorage.getItem("researchColors"));if(w&&(c(w.color_primary),h(w.color_secondary),m(w.color_tertiary),y(w.color_quaternary)),s?.configurations){const T=s.configurations,S={color_primary:T.color_primary||"#420099",color_secondary:T.color_secondary||"#3500AB",color_tertiary:T.color_tertiary||"#00007F",color_quaternary:T.color_quaternary||"#9577D2"};c(S.color_primary),h(S.color_secondary),m(S.color_tertiary),y(S.color_quaternary),localStorage.setItem("researchColors",JSON.stringify(S))}},[s]),A.useEffect(()=>{const w=document.documentElement;w.style.setProperty("--color-primary",o),w.style.setProperty("--color-secondary",f),w.style.setProperty("--color-tertiary",p),w.style.setProperty("--color-quaternary",g)},[o,f,p,g]);const x=["Inicio","Reportar","Salir"],_={Inicio:P.jsx(Hxe,{}),Zonas:P.jsx(eOe,{}),Reportar:P.jsx(JCe,{}),Configuración:P.jsx(iOe,{}),Administracion:P.jsx(oOe,{})};return P.jsxs("div",{className:"dashboard-main",children:[P.jsxs("section",{className:"left-menu",children:[P.jsxs("picture",{children:[P.jsx("source",{srcSet:rv,type:"image/svg+xml"}),P.jsx("img",{src:rv,alt:"Logo",className:"logo-menu"})]}),P.jsx("div",{className:"menu-content",children:x.map(w=>P.jsx("button",{className:e===w?"active":"",onClick:()=>{w==="Salir"?console.log("Cerrar sesión..."):t(w)},children:w},w))}),P.jsx("div",{className:"user-container",onClick:()=>n(!0),children:"U"}),r&&P.jsx("div",{className:"modal-overlay",onClick:()=>n(!1),children:P.jsxs("div",{className:"modal-user",onClick:w=>w.stopPropagation(),children:[P.jsx("button",{className:"close-btn",onClick:()=>n(!1),children:"✕"}),P.jsx("h3",{children:"Información del usuario"}),P.jsxs("ul",{children:[P.jsxs("li",{children:[P.jsx("strong",{children:"ID:"})," ",a.id]}),P.jsxs("li",{children:[P.jsx("strong",{children:"Usuario:"})," ",a.username]}),P.jsxs("li",{children:[P.jsx("strong",{children:"Empresa:"})," ",a.company_name]}),P.jsxs("li",{children:[P.jsx("strong",{children:"NIT:"})," ",a.company_nit]}),P.jsxs("li",{children:[P.jsx("strong",{children:"Permisos:"})," ",a.permissions]}),P.jsxs("li",{children:[P.jsx("strong",{children:"Creado:"})," ",new Date(a.created_at).toLocaleString()]}),P.jsxs("li",{children:[P.jsx("strong",{children:"Actualizado:"})," ",new Date(a.updated_at).toLocaleString()]})]})]})})]}),P.jsx("section",{className:"website-content",children:_[e]||P.jsx("div",{children:"Seleccione una opción"})})]})}Zq.createRoot(document.getElementById("root")).render(P.jsx(A.StrictMode,{children:P.jsx(uX,{children:P.jsxs(zG,{children:[P.jsx(fS,{path:"/",element:P.jsx(nie,{})}),P.jsx(fS,{path:"/reportes",element:P.jsx(lOe,{})})]})})}));
