function a8(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(n,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>n[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=r(a);fetch(a.href,s)}})();function Cv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Og={exports:{}},yf={};/**
 * @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 nT;function i8(){if(nT)return yf;nT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,s){var o=null;if(s!==void 0&&(o=""+s),a.key!==void 0&&(o=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:e,type:n,key:o,ref:a!==void 0?a:null,props:s}}return yf.Fragment=t,yf.jsx=r,yf.jsxs=r,yf}var aT;function s8(){return aT||(aT=1,Og.exports=i8()),Og.exports}var m=s8(),Dg={exports:{}},Ht={};/**
 * @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 iT;function o8(){if(iT)return Ht;iT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function x(H){return H===null||typeof H!="object"?null:(H=g&&H[g]||H["@@iterator"],typeof H=="function"?H:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function w(H,ie,z){this.props=H,this.context=ie,this.refs=v,this.updater=z||y}w.prototype.isReactComponent={},w.prototype.setState=function(H,ie){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,ie,"setState")},w.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function C(){}C.prototype=w.prototype;function k(H,ie,z){this.props=H,this.context=ie,this.refs=v,this.updater=z||y}var E=k.prototype=new C;E.constructor=k,b(E,w.prototype),E.isPureReactComponent=!0;var D=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},A=Object.prototype.hasOwnProperty;function O(H,ie,z,K,Q,ee){return z=ee.ref,{$$typeof:e,type:H,key:ie,ref:z!==void 0?z:null,props:ee}}function N(H,ie){return O(H.type,ie,void 0,void 0,void 0,H.props)}function F(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function P(H){var ie={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(z){return ie[z]})}var j=/\/+/g;function R(H,ie){return typeof H=="object"&&H!==null&&H.key!=null?P(""+H.key):ie.toString(36)}function W(){}function Y(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(W,W):(H.status="pending",H.then(function(ie){H.status==="pending"&&(H.status="fulfilled",H.value=ie)},function(ie){H.status==="pending"&&(H.status="rejected",H.reason=ie)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function Z(H,ie,z,K,Q){var ee=typeof H;(ee==="undefined"||ee==="boolean")&&(H=null);var ae=!1;if(H===null)ae=!0;else switch(ee){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(H.$$typeof){case e:case t:ae=!0;break;case h:return ae=H._init,Z(ae(H._payload),ie,z,K,Q)}}if(ae)return Q=Q(H),ae=K===""?"."+R(H,0):K,D(Q)?(z="",ae!=null&&(z=ae.replace(j,"$&/")+"/"),Z(Q,ie,z,"",function(Te){return Te})):Q!=null&&(F(Q)&&(Q=N(Q,z+(Q.key==null||H&&H.key===Q.key?"":(""+Q.key).replace(j,"$&/")+"/")+ae)),ie.push(Q)),1;ae=0;var xe=K===""?".":K+":";if(D(H))for(var ye=0;ye<H.length;ye++)K=H[ye],ee=xe+R(K,ye),ae+=Z(K,ie,z,ee,Q);else if(ye=x(H),typeof ye=="function")for(H=ye.call(H),ye=0;!(K=H.next()).done;)K=K.value,ee=xe+R(K,ye++),ae+=Z(K,ie,z,ee,Q);else if(ee==="object"){if(typeof H.then=="function")return Z(Y(H),ie,z,K,Q);throw ie=String(H),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.")}return ae}function B(H,ie,z){if(H==null)return H;var K=[],Q=0;return Z(H,K,"","",function(ee){return ie.call(z,ee,Q++)}),K}function ne(H){if(H._status===-1){var ie=H._result;ie=ie(),ie.then(function(z){(H._status===0||H._status===-1)&&(H._status=1,H._result=z)},function(z){(H._status===0||H._status===-1)&&(H._status=2,H._result=z)}),H._status===-1&&(H._status=0,H._result=ie)}if(H._status===1)return H._result.default;throw H._result}var ce=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ie=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(ie))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",H);return}console.error(H)};function U(){}return Ht.Children={map:B,forEach:function(H,ie,z){B(H,function(){ie.apply(this,arguments)},z)},count:function(H){var ie=0;return B(H,function(){ie++}),ie},toArray:function(H){return B(H,function(ie){return ie})||[]},only:function(H){if(!F(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},Ht.Component=w,Ht.Fragment=r,Ht.Profiler=a,Ht.PureComponent=k,Ht.StrictMode=n,Ht.Suspense=f,Ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ht.__COMPILER_RUNTIME={__proto__:null,c:function(H){return M.H.useMemoCache(H)}},Ht.cache=function(H){return function(){return H.apply(null,arguments)}},Ht.cloneElement=function(H,ie,z){if(H==null)throw Error("The argument must be a React element, but you passed "+H+".");var K=b({},H.props),Q=H.key,ee=void 0;if(ie!=null)for(ae in ie.ref!==void 0&&(ee=void 0),ie.key!==void 0&&(Q=""+ie.key),ie)!A.call(ie,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&ie.ref===void 0||(K[ae]=ie[ae]);var ae=arguments.length-2;if(ae===1)K.children=z;else if(1<ae){for(var xe=Array(ae),ye=0;ye<ae;ye++)xe[ye]=arguments[ye+2];K.children=xe}return O(H.type,Q,void 0,void 0,ee,K)},Ht.createContext=function(H){return H={$$typeof:o,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:s,_context:H},H},Ht.createElement=function(H,ie,z){var K,Q={},ee=null;if(ie!=null)for(K in ie.key!==void 0&&(ee=""+ie.key),ie)A.call(ie,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(Q[K]=ie[K]);var ae=arguments.length-2;if(ae===1)Q.children=z;else if(1<ae){for(var xe=Array(ae),ye=0;ye<ae;ye++)xe[ye]=arguments[ye+2];Q.children=xe}if(H&&H.defaultProps)for(K in ae=H.defaultProps,ae)Q[K]===void 0&&(Q[K]=ae[K]);return O(H,ee,void 0,void 0,null,Q)},Ht.createRef=function(){return{current:null}},Ht.forwardRef=function(H){return{$$typeof:c,render:H}},Ht.isValidElement=F,Ht.lazy=function(H){return{$$typeof:h,_payload:{_status:-1,_result:H},_init:ne}},Ht.memo=function(H,ie){return{$$typeof:d,type:H,compare:ie===void 0?null:ie}},Ht.startTransition=function(H){var ie=M.T,z={};M.T=z;try{var K=H(),Q=M.S;Q!==null&&Q(z,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(U,ce)}catch(ee){ce(ee)}finally{M.T=ie}},Ht.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ht.use=function(H){return M.H.use(H)},Ht.useActionState=function(H,ie,z){return M.H.useActionState(H,ie,z)},Ht.useCallback=function(H,ie){return M.H.useCallback(H,ie)},Ht.useContext=function(H){return M.H.useContext(H)},Ht.useDebugValue=function(){},Ht.useDeferredValue=function(H,ie){return M.H.useDeferredValue(H,ie)},Ht.useEffect=function(H,ie,z){var K=M.H;if(typeof z=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(H,ie)},Ht.useId=function(){return M.H.useId()},Ht.useImperativeHandle=function(H,ie,z){return M.H.useImperativeHandle(H,ie,z)},Ht.useInsertionEffect=function(H,ie){return M.H.useInsertionEffect(H,ie)},Ht.useLayoutEffect=function(H,ie){return M.H.useLayoutEffect(H,ie)},Ht.useMemo=function(H,ie){return M.H.useMemo(H,ie)},Ht.useOptimistic=function(H,ie){return M.H.useOptimistic(H,ie)},Ht.useReducer=function(H,ie,z){return M.H.useReducer(H,ie,z)},Ht.useRef=function(H){return M.H.useRef(H)},Ht.useState=function(H){return M.H.useState(H)},Ht.useSyncExternalStore=function(H,ie,z){return M.H.useSyncExternalStore(H,ie,z)},Ht.useTransition=function(){return M.H.useTransition()},Ht.version="19.1.1",Ht}var sT;function Ev(){return sT||(sT=1,Dg.exports=o8()),Dg.exports}var _=Ev();const On=Cv(_),ip=a8({__proto__:null,default:On},[_]);var Mg={exports:{}},bf={},Fg={exports:{}},Ng={};/**
 * @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 oT;function l8(){return oT||(oT=1,(function(e){function t(B,ne){var ce=B.length;B.push(ne);e:for(;0<ce;){var U=ce-1>>>1,H=B[U];if(0<a(H,ne))B[U]=ne,B[ce]=H,ce=U;else break e}}function r(B){return B.length===0?null:B[0]}function n(B){if(B.length===0)return null;var ne=B[0],ce=B.pop();if(ce!==ne){B[0]=ce;e:for(var U=0,H=B.length,ie=H>>>1;U<ie;){var z=2*(U+1)-1,K=B[z],Q=z+1,ee=B[Q];if(0>a(K,ce))Q<H&&0>a(ee,K)?(B[U]=ee,B[Q]=ce,U=Q):(B[U]=K,B[z]=ce,U=z);else if(Q<H&&0>a(ee,ce))B[U]=ee,B[Q]=ce,U=Q;else break e}}return ne}function a(B,ne){var ce=B.sortIndex-ne.sortIndex;return ce!==0?ce:B.id-ne.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var f=[],d=[],h=1,g=null,x=3,y=!1,b=!1,v=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function D(B){for(var ne=r(d);ne!==null;){if(ne.callback===null)n(d);else if(ne.startTime<=B)n(d),ne.sortIndex=ne.expirationTime,t(f,ne);else break;ne=r(d)}}function M(B){if(v=!1,D(B),!b)if(r(f)!==null)b=!0,A||(A=!0,R());else{var ne=r(d);ne!==null&&Z(M,ne.startTime-B)}}var A=!1,O=-1,N=5,F=-1;function P(){return w?!0:!(e.unstable_now()-F<N)}function j(){if(w=!1,A){var B=e.unstable_now();F=B;var ne=!0;try{e:{b=!1,v&&(v=!1,k(O),O=-1),y=!0;var ce=x;try{t:{for(D(B),g=r(f);g!==null&&!(g.expirationTime>B&&P());){var U=g.callback;if(typeof U=="function"){g.callback=null,x=g.priorityLevel;var H=U(g.expirationTime<=B);if(B=e.unstable_now(),typeof H=="function"){g.callback=H,D(B),ne=!0;break t}g===r(f)&&n(f),D(B)}else n(f);g=r(f)}if(g!==null)ne=!0;else{var ie=r(d);ie!==null&&Z(M,ie.startTime-B),ne=!1}}break e}finally{g=null,x=ce,y=!1}ne=void 0}}finally{ne?R():A=!1}}}var R;if(typeof E=="function")R=function(){E(j)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Y=W.port2;W.port1.onmessage=j,R=function(){Y.postMessage(null)}}else R=function(){C(j,0)};function Z(B,ne){O=C(function(){B(e.unstable_now())},ne)}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(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(B){switch(x){case 1:case 2:case 3:var ne=3;break;default:ne=x}var ce=x;x=ne;try{return B()}finally{x=ce}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(B,ne){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ce=x;x=B;try{return ne()}finally{x=ce}},e.unstable_scheduleCallback=function(B,ne,ce){var U=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?U+ce:U):ce=U,B){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=ce+H,B={id:h++,callback:ne,priorityLevel:B,startTime:ce,expirationTime:H,sortIndex:-1},ce>U?(B.sortIndex=ce,t(d,B),r(f)===null&&B===r(d)&&(v?(k(O),O=-1):v=!0,Z(M,ce-U))):(B.sortIndex=H,t(f,B),b||y||(b=!0,A||(A=!0,R()))),B},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(B){var ne=x;return function(){var ce=x;x=ne;try{return B.apply(this,arguments)}finally{x=ce}}}})(Ng)),Ng}var lT;function c8(){return lT||(lT=1,Fg.exports=l8()),Fg.exports}var Pg={exports:{}},Wn={};/**
 * @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 cT;function u8(){if(cT)return Wn;cT=1;var e=Ev();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+d+" 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},a=Symbol.for("react.portal");function s(f,d,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:f,containerInfo:d,implementation:h}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Wn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Wn.createPortal=function(f,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,h)},Wn.flushSync=function(f){var d=o.T,h=n.p;try{if(o.T=null,n.p=2,f)return f()}finally{o.T=d,n.p=h,n.d.f()}},Wn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,n.d.C(f,d))},Wn.prefetchDNS=function(f){typeof f=="string"&&n.d.D(f)},Wn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var h=d.as,g=c(h,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,y=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?n.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:y}):h==="script"&&n.d.X(f,{crossOrigin:g,integrity:x,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Wn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=c(d.as,d.crossOrigin);n.d.M(f,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&n.d.M(f)},Wn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,g=c(h,d.crossOrigin);n.d.L(f,h,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Wn.preloadModule=function(f,d){if(typeof f=="string")if(d){var h=c(d.as,d.crossOrigin);n.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else n.d.m(f)},Wn.requestFormReset=function(f){n.d.r(f)},Wn.unstable_batchedUpdates=function(f,d){return f(d)},Wn.useFormState=function(f,d,h){return o.H.useFormState(f,d,h)},Wn.useFormStatus=function(){return o.H.useHostTransitionStatus()},Wn.version="19.1.1",Wn}var uT;function q4(){if(uT)return Pg.exports;uT=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(),Pg.exports=u8(),Pg.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 fT;function f8(){if(fT)return bf;fT=1;var e=c8(),t=Ev(),r=q4();function n(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var l=i,u=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(u=l.return),i=l.return;while(i)}return l.tag===3?u:null}function o(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function c(i){if(s(i)!==i)throw Error(n(188))}function f(i){var l=i.alternate;if(!l){if(l=s(i),l===null)throw Error(n(188));return l!==i?null:i}for(var u=i,p=l;;){var S=u.return;if(S===null)break;var T=S.alternate;if(T===null){if(p=S.return,p!==null){u=p;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===u)return c(S),i;if(T===p)return c(S),l;T=T.sibling}throw Error(n(188))}if(u.return!==p.return)u=S,p=T;else{for(var L=!1,G=S.child;G;){if(G===u){L=!0,u=S,p=T;break}if(G===p){L=!0,p=S,u=T;break}G=G.sibling}if(!L){for(G=T.child;G;){if(G===u){L=!0,u=T,p=S;break}if(G===p){L=!0,p=T,u=S;break}G=G.sibling}if(!L)throw Error(n(189))}}if(u.alternate!==p)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?i:l}function d(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=d(i),l!==null)return l;i=i.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),k=Symbol.for("react.consumer"),E=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function R(i){return i===null||typeof i!="object"?null:(i=j&&i[j]||i["@@iterator"],typeof i=="function"?i:null)}var W=Symbol.for("react.client.reference");function Y(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===W?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case M:return"Suspense";case A:return"SuspenseList";case F:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case E:return(i.displayName||"Context")+".Provider";case k:return(i._context.displayName||"Context")+".Consumer";case D:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case O:return l=i.displayName||null,l!==null?l:Y(i.type)||"Memo";case N:l=i._payload,i=i._init;try{return Y(i(l))}catch{}}return null}var Z=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},U=[],H=-1;function ie(i){return{current:i}}function z(i){0>H||(i.current=U[H],U[H]=null,H--)}function K(i,l){H++,U[H]=i.current,i.current=l}var Q=ie(null),ee=ie(null),ae=ie(null),xe=ie(null);function ye(i,l){switch(K(ae,l),K(ee,i),K(Q,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?Dw(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=Dw(l),i=Mw(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}z(Q),K(Q,i)}function Te(){z(Q),z(ee),z(ae)}function he(i){i.memoizedState!==null&&K(xe,i);var l=Q.current,u=Mw(l,i.type);l!==u&&(K(ee,i),K(Q,u))}function Ve(i){ee.current===i&&(z(Q),z(ee)),xe.current===i&&(z(xe),pf._currentValue=ce)}var te=Object.prototype.hasOwnProperty,rt=e.unstable_scheduleCallback,Ue=e.unstable_cancelCallback,ve=e.unstable_shouldYield,Ge=e.unstable_requestPaint,Ae=e.unstable_now,st=e.unstable_getCurrentPriorityLevel,yt=e.unstable_ImmediatePriority,Ct=e.unstable_UserBlockingPriority,mt=e.unstable_NormalPriority,qe=e.unstable_LowPriority,Ut=e.unstable_IdlePriority,Dt=e.log,vt=e.unstable_setDisableYieldValue,Et=null,pt=null;function _t(i){if(typeof Dt=="function"&&vt(i),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Et,i)}catch{}}var At=Math.clz32?Math.clz32:nr,xt=Math.log,ot=Math.LN2;function nr(i){return i>>>=0,i===0?32:31-(xt(i)/ot|0)|0}var It=256,Rr=4194304;function ht(i){var l=i&42;if(l!==0)return l;switch(i&-i){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 i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function $t(i,l,u){var p=i.pendingLanes;if(p===0)return 0;var S=0,T=i.suspendedLanes,L=i.pingedLanes;i=i.warmLanes;var G=p&134217727;return G!==0?(p=G&~T,p!==0?S=ht(p):(L&=G,L!==0?S=ht(L):u||(u=G&~i,u!==0&&(S=ht(u))))):(G=p&~T,G!==0?S=ht(G):L!==0?S=ht(L):u||(u=p&~i,u!==0&&(S=ht(u)))),S===0?0:l!==0&&l!==S&&(l&T)===0&&(T=S&-S,u=l&-l,T>=u||T===32&&(u&4194048)!==0)?l:S}function tr(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function Wr(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 gn(){var i=It;return It<<=1,(It&4194048)===0&&(It=256),i}function Li(){var i=Rr;return Rr<<=1,(Rr&62914560)===0&&(Rr=4194304),i}function ii(i){for(var l=[],u=0;31>u;u++)l.push(i);return l}function sa(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ja(i,l,u,p,S,T){var L=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var G=i.entanglements,se=i.expirationTimes,Se=i.hiddenUpdates;for(u=L&~u;0<u;){var Ie=31-At(u),ze=1<<Ie;G[Ie]=0,se[Ie]=-1;var Ce=Se[Ie];if(Ce!==null)for(Se[Ie]=null,Ie=0;Ie<Ce.length;Ie++){var Ee=Ce[Ie];Ee!==null&&(Ee.lane&=-536870913)}u&=~ze}p!==0&&La(i,p,0),T!==0&&S===0&&i.tag!==0&&(i.suspendedLanes|=T&~(L&~l))}function La(i,l,u){i.pendingLanes|=l,i.suspendedLanes&=~l;var p=31-At(l);i.entangledLanes|=l,i.entanglements[p]=i.entanglements[p]|1073741824|u&4194090}function Ia(i,l){var u=i.entangledLanes|=l;for(i=i.entanglements;u;){var p=31-At(u),S=1<<p;S&l|i[p]&l&&(i[p]|=l),u&=~S}}function Ii(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Nt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function le(){var i=ne.p;return i!==0?i:(i=window.event,i===void 0?32:Qw(i.type))}function oe(i,l){var u=ne.p;try{return ne.p=i,l()}finally{ne.p=u}}var fe=Math.random().toString(36).slice(2),Re="__reactFiber$"+fe,Fe="__reactProps$"+fe,Ke="__reactContainer$"+fe,ct="__reactEvents$"+fe,ft="__reactListeners$"+fe,I="__reactHandles$"+fe,q="__reactResources$"+fe,V="__reactMarker$"+fe;function X(i){delete i[Re],delete i[Fe],delete i[ct],delete i[ft],delete i[I]}function J(i){var l=i[Re];if(l)return l;for(var u=i.parentNode;u;){if(l=u[Ke]||u[Re]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(i=jw(i);i!==null;){if(u=i[Re])return u;i=jw(i)}return l}i=u,u=i.parentNode}return null}function re(i){if(i=i[Re]||i[Ke]){var l=i.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return i}return null}function ge(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i.stateNode;throw Error(n(33))}function ke(i){var l=i[q];return l||(l=i[q]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function de(i){i[V]=!0}var pe=new Set,we={};function $e(i,l){Xe(i,l),Xe(i+"Capture",l)}function Xe(i,l){for(we[i]=l,i=0;i<l.length;i++)pe.add(l[i])}var Je=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]*$"),Ye={},et={};function Rt(i){return te.call(et,i)?!0:te.call(Ye,i)?!1:Je.test(i)?et[i]=!0:(Ye[i]=!0,!1)}function ar(i,l,u){if(Rt(l))if(u===null)i.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(l);return;case"boolean":var p=l.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){i.removeAttribute(l);return}}i.setAttribute(l,""+u)}}function ir(i,l,u){if(u===null)i.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttribute(l,""+u)}}function St(i,l,u,p){if(p===null)i.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(l,u,""+p)}}var Mr,Ba;function Tn(i){if(Mr===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);Mr=l&&l[1]||"",Ba=-1<u.stack.indexOf(`
    at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Mr+i+Ba}var ur=!1;function si(i,l){if(!i||ur)return"";ur=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(l){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(Ee){var Ce=Ee}Reflect.construct(i,[],ze)}else{try{ze.call()}catch(Ee){Ce=Ee}i.call(ze.prototype)}}else{try{throw Error()}catch(Ee){Ce=Ee}(ze=i())&&typeof ze.catch=="function"&&ze.catch(function(){})}}catch(Ee){if(Ee&&Ce&&typeof Ee.stack=="string")return[Ee.stack,Ce.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=p.DetermineComponentFrameRoot(),L=T[0],G=T[1];if(L&&G){var se=L.split(`
`),Se=G.split(`
`);for(S=p=0;p<se.length&&!se[p].includes("DetermineComponentFrameRoot");)p++;for(;S<Se.length&&!Se[S].includes("DetermineComponentFrameRoot");)S++;if(p===se.length||S===Se.length)for(p=se.length-1,S=Se.length-1;1<=p&&0<=S&&se[p]!==Se[S];)S--;for(;1<=p&&0<=S;p--,S--)if(se[p]!==Se[S]){if(p!==1||S!==1)do if(p--,S--,0>S||se[p]!==Se[S]){var Ie=`
`+se[p].replace(" at new "," at ");return i.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",i.displayName)),Ie}while(1<=p&&0<=S);break}}}finally{ur=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Tn(u):""}function va(i){switch(i.tag){case 26:case 27:case 5:return Tn(i.type);case 16:return Tn("Lazy");case 13:return Tn("Suspense");case 19:return Tn("SuspenseList");case 0:case 15:return si(i.type,!1);case 11:return si(i.type.render,!1);case 1:return si(i.type,!0);case 31:return Tn("Activity");default:return""}}function u0(i){try{var l="";do l+=va(i),i=i.return;while(i);return l}catch(u){return`
Error generating stack: `+u.message+`
`+u.stack}}function oi(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function _2(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function JR(i){var l=_2(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),p=""+i[l];if(!i.hasOwnProperty(l)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var S=u.get,T=u.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return S.call(this)},set:function(L){p=""+L,T.call(this,L)}}),Object.defineProperty(i,l,{enumerable:u.enumerable}),{getValue:function(){return p},setValue:function(L){p=""+L},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function f0(i){i._valueTracker||(i._valueTracker=JR(i))}function k2(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var u=l.getValue(),p="";return i&&(p=_2(i)?i.checked?"true":"false":i.value),i=p,i!==u?(l.setValue(i),!0):!1}function d0(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var e5=/[\n"\\]/g;function li(i){return i.replace(e5,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function km(i,l,u,p,S,T,L,G){i.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?i.type=L:i.removeAttribute("type"),l!=null?L==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+oi(l)):i.value!==""+oi(l)&&(i.value=""+oi(l)):L!=="submit"&&L!=="reset"||i.removeAttribute("value"),l!=null?Am(i,L,oi(l)):u!=null?Am(i,L,oi(u)):p!=null&&i.removeAttribute("value"),S==null&&T!=null&&(i.defaultChecked=!!T),S!=null&&(i.checked=S&&typeof S!="function"&&typeof S!="symbol"),G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?i.name=""+oi(G):i.removeAttribute("name")}function A2(i,l,u,p,S,T,L,G){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(i.type=T),l!=null||u!=null){if(!(T!=="submit"&&T!=="reset"||l!=null))return;u=u!=null?""+oi(u):"",l=l!=null?""+oi(l):u,G||l===i.value||(i.value=l),i.defaultValue=l}p=p??S,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=G?i.checked:!!p,i.defaultChecked=!!p,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(i.name=L)}function Am(i,l,u){l==="number"&&d0(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Jl(i,l,u,p){if(i=i.options,l){l={};for(var S=0;S<u.length;S++)l["$"+u[S]]=!0;for(u=0;u<i.length;u++)S=l.hasOwnProperty("$"+i[u].value),i[u].selected!==S&&(i[u].selected=S),S&&p&&(i[u].defaultSelected=!0)}else{for(u=""+oi(u),l=null,S=0;S<i.length;S++){if(i[S].value===u){i[S].selected=!0,p&&(i[S].defaultSelected=!0);return}l!==null||i[S].disabled||(l=i[S])}l!==null&&(l.selected=!0)}}function R2(i,l,u){if(l!=null&&(l=""+oi(l),l!==i.value&&(i.value=l),u==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=u!=null?""+oi(u):""}function O2(i,l,u,p){if(l==null){if(p!=null){if(u!=null)throw Error(n(92));if(Z(p)){if(1<p.length)throw Error(n(93));p=p[0]}u=p}u==null&&(u=""),l=u}u=oi(l),i.defaultValue=u,p=i.textContent,p===u&&p!==""&&p!==null&&(i.value=p)}function ec(i,l){if(l){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=l;return}}i.textContent=l}var t5=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 D2(i,l,u){var p=l.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="":p?i.setProperty(l,u):typeof u!="number"||u===0||t5.has(l)?l==="float"?i.cssFloat=u:i[l]=(""+u).trim():i[l]=u+"px"}function M2(i,l,u){if(l!=null&&typeof l!="object")throw Error(n(62));if(i=i.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||l!=null&&l.hasOwnProperty(p)||(p.indexOf("--")===0?i.setProperty(p,""):p==="float"?i.cssFloat="":i[p]="");for(var S in l)p=l[S],l.hasOwnProperty(S)&&u[S]!==p&&D2(i,S,p)}else for(var T in l)l.hasOwnProperty(T)&&D2(i,T,l[T])}function Rm(i){if(i.indexOf("-")===-1)return!1;switch(i){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 r5=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"]]),n5=/^[\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 h0(i){return n5.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Om=null;function Dm(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var tc=null,rc=null;function F2(i){var l=re(i);if(l&&(i=l.stateNode)){var u=i[Fe]||null;e:switch(i=l.stateNode,l.type){case"input":if(km(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),l=u.name,u.type==="radio"&&l!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+li(""+l)+'"][type="radio"]'),l=0;l<u.length;l++){var p=u[l];if(p!==i&&p.form===i.form){var S=p[Fe]||null;if(!S)throw Error(n(90));km(p,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(l=0;l<u.length;l++)p=u[l],p.form===i.form&&k2(p)}break e;case"textarea":R2(i,u.value,u.defaultValue);break e;case"select":l=u.value,l!=null&&Jl(i,!!u.multiple,l,!1)}}}var Mm=!1;function N2(i,l,u){if(Mm)return i(l,u);Mm=!0;try{var p=i(l);return p}finally{if(Mm=!1,(tc!==null||rc!==null)&&(Z0(),tc&&(l=tc,i=rc,rc=tc=null,F2(l),i)))for(l=0;l<i.length;l++)F2(i[l])}}function _u(i,l){var u=i.stateNode;if(u===null)return null;var p=u[Fe]||null;if(p===null)return null;u=p[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(n(231,l,typeof u));return u}var ws=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fm=!1;if(ws)try{var ku={};Object.defineProperty(ku,"passive",{get:function(){Fm=!0}}),window.addEventListener("test",ku,ku),window.removeEventListener("test",ku,ku)}catch{Fm=!1}var ro=null,Nm=null,p0=null;function P2(){if(p0)return p0;var i,l=Nm,u=l.length,p,S="value"in ro?ro.value:ro.textContent,T=S.length;for(i=0;i<u&&l[i]===S[i];i++);var L=u-i;for(p=1;p<=L&&l[u-p]===S[T-p];p++);return p0=S.slice(i,1<p?1-p:void 0)}function m0(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function g0(){return!0}function j2(){return!1}function ya(i){function l(u,p,S,T,L){this._reactName=u,this._targetInst=S,this.type=p,this.nativeEvent=T,this.target=L,this.currentTarget=null;for(var G in i)i.hasOwnProperty(G)&&(u=i[G],this[G]=u?u(T):T[G]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?g0:j2,this.isPropagationStopped=j2,this}return h(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=g0)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=g0)},persist:function(){},isPersistent:g0}),l}var rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},x0=ya(rl),Au=h({},rl,{view:0,detail:0}),a5=ya(Au),Pm,jm,Ru,v0=h({},Au,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Im,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Ru&&(Ru&&i.type==="mousemove"?(Pm=i.screenX-Ru.screenX,jm=i.screenY-Ru.screenY):jm=Pm=0,Ru=i),Pm)},movementY:function(i){return"movementY"in i?i.movementY:jm}}),L2=ya(v0),i5=h({},v0,{dataTransfer:0}),s5=ya(i5),o5=h({},Au,{relatedTarget:0}),Lm=ya(o5),l5=h({},rl,{animationName:0,elapsedTime:0,pseudoElement:0}),c5=ya(l5),u5=h({},rl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),f5=ya(u5),d5=h({},rl,{data:0}),I2=ya(d5),h5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p5={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"},m5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g5(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=m5[i])?!!l[i]:!1}function Im(){return g5}var x5=h({},Au,{key:function(i){if(i.key){var l=h5[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=m0(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?p5[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Im,charCode:function(i){return i.type==="keypress"?m0(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?m0(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),v5=ya(x5),y5=h({},v0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),B2=ya(y5),b5=h({},Au,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Im}),S5=ya(b5),w5=h({},rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),T5=ya(w5),C5=h({},v0,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),E5=ya(C5),_5=h({},rl,{newState:0,oldState:0}),k5=ya(_5),A5=[9,13,27,32],Bm=ws&&"CompositionEvent"in window,Ou=null;ws&&"documentMode"in document&&(Ou=document.documentMode);var R5=ws&&"TextEvent"in window&&!Ou,z2=ws&&(!Bm||Ou&&8<Ou&&11>=Ou),U2=" ",$2=!1;function H2(i,l){switch(i){case"keyup":return A5.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W2(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var nc=!1;function O5(i,l){switch(i){case"compositionend":return W2(l);case"keypress":return l.which!==32?null:($2=!0,U2);case"textInput":return i=l.data,i===U2&&$2?null:i;default:return null}}function D5(i,l){if(nc)return i==="compositionend"||!Bm&&H2(i,l)?(i=P2(),p0=Nm=ro=null,nc=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return z2&&l.locale!=="ko"?null:l.data;default:return null}}var M5={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 V2(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!M5[i.type]:l==="textarea"}function G2(i,l,u,p){tc?rc?rc.push(p):rc=[p]:tc=p,l=ah(l,"onChange"),0<l.length&&(u=new x0("onChange","change",null,u,p),i.push({event:u,listeners:l}))}var Du=null,Mu=null;function F5(i){_w(i,0)}function y0(i){var l=ge(i);if(k2(l))return i}function X2(i,l){if(i==="change")return l}var Y2=!1;if(ws){var zm;if(ws){var Um="oninput"in document;if(!Um){var q2=document.createElement("div");q2.setAttribute("oninput","return;"),Um=typeof q2.oninput=="function"}zm=Um}else zm=!1;Y2=zm&&(!document.documentMode||9<document.documentMode)}function K2(){Du&&(Du.detachEvent("onpropertychange",Q2),Mu=Du=null)}function Q2(i){if(i.propertyName==="value"&&y0(Mu)){var l=[];G2(l,Mu,i,Dm(i)),N2(F5,l)}}function N5(i,l,u){i==="focusin"?(K2(),Du=l,Mu=u,Du.attachEvent("onpropertychange",Q2)):i==="focusout"&&K2()}function P5(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return y0(Mu)}function j5(i,l){if(i==="click")return y0(l)}function L5(i,l){if(i==="input"||i==="change")return y0(l)}function I5(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var za=typeof Object.is=="function"?Object.is:I5;function Fu(i,l){if(za(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var u=Object.keys(i),p=Object.keys(l);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var S=u[p];if(!te.call(l,S)||!za(i[S],l[S]))return!1}return!0}function Z2(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function J2(i,l){var u=Z2(i);i=0;for(var p;u;){if(u.nodeType===3){if(p=i+u.textContent.length,i<=l&&p>=l)return{node:u,offset:l-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Z2(u)}}function eb(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?eb(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function tb(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=d0(i.document);l instanceof i.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)i=l.contentWindow;else break;l=d0(i.document)}return l}function $m(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var B5=ws&&"documentMode"in document&&11>=document.documentMode,ac=null,Hm=null,Nu=null,Wm=!1;function rb(i,l,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Wm||ac==null||ac!==d0(p)||(p=ac,"selectionStart"in p&&$m(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Nu&&Fu(Nu,p)||(Nu=p,p=ah(Hm,"onSelect"),0<p.length&&(l=new x0("onSelect","select",null,l,u),i.push({event:l,listeners:p}),l.target=ac)))}function nl(i,l){var u={};return u[i.toLowerCase()]=l.toLowerCase(),u["Webkit"+i]="webkit"+l,u["Moz"+i]="moz"+l,u}var ic={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionrun:nl("Transition","TransitionRun"),transitionstart:nl("Transition","TransitionStart"),transitioncancel:nl("Transition","TransitionCancel"),transitionend:nl("Transition","TransitionEnd")},Vm={},nb={};ws&&(nb=document.createElement("div").style,"AnimationEvent"in window||(delete ic.animationend.animation,delete ic.animationiteration.animation,delete ic.animationstart.animation),"TransitionEvent"in window||delete ic.transitionend.transition);function al(i){if(Vm[i])return Vm[i];if(!ic[i])return i;var l=ic[i],u;for(u in l)if(l.hasOwnProperty(u)&&u in nb)return Vm[i]=l[u];return i}var ab=al("animationend"),ib=al("animationiteration"),sb=al("animationstart"),z5=al("transitionrun"),U5=al("transitionstart"),$5=al("transitioncancel"),ob=al("transitionend"),lb=new Map,Gm="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(" ");Gm.push("scrollEnd");function Bi(i,l){lb.set(i,l),$e(l,[i])}var cb=new WeakMap;function ci(i,l){if(typeof i=="object"&&i!==null){var u=cb.get(i);return u!==void 0?u:(l={value:i,source:l,stack:u0(l)},cb.set(i,l),l)}return{value:i,source:l,stack:u0(l)}}var ui=[],sc=0,Xm=0;function b0(){for(var i=sc,l=Xm=sc=0;l<i;){var u=ui[l];ui[l++]=null;var p=ui[l];ui[l++]=null;var S=ui[l];ui[l++]=null;var T=ui[l];if(ui[l++]=null,p!==null&&S!==null){var L=p.pending;L===null?S.next=S:(S.next=L.next,L.next=S),p.pending=S}T!==0&&ub(u,S,T)}}function S0(i,l,u,p){ui[sc++]=i,ui[sc++]=l,ui[sc++]=u,ui[sc++]=p,Xm|=p,i.lanes|=p,i=i.alternate,i!==null&&(i.lanes|=p)}function Ym(i,l,u,p){return S0(i,l,u,p),w0(i)}function oc(i,l){return S0(i,null,null,l),w0(i)}function ub(i,l,u){i.lanes|=u;var p=i.alternate;p!==null&&(p.lanes|=u);for(var S=!1,T=i.return;T!==null;)T.childLanes|=u,p=T.alternate,p!==null&&(p.childLanes|=u),T.tag===22&&(i=T.stateNode,i===null||i._visibility&1||(S=!0)),i=T,T=T.return;return i.tag===3?(T=i.stateNode,S&&l!==null&&(S=31-At(u),i=T.hiddenUpdates,p=i[S],p===null?i[S]=[l]:p.push(l),l.lane=u|536870912),T):null}function w0(i){if(50<sf)throw sf=0,eg=null,Error(n(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var lc={};function H5(i,l,u,p){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ua(i,l,u,p){return new H5(i,l,u,p)}function qm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ts(i,l){var u=i.alternate;return u===null?(u=Ua(i.tag,l,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=l,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,l=i.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function fb(i,l){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=l,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,l=u.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),i}function T0(i,l,u,p,S,T){var L=0;if(p=i,typeof i=="function")qm(i)&&(L=1);else if(typeof i=="string")L=V6(i,u,Q.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case F:return i=Ua(31,u,l,S),i.elementType=F,i.lanes=T,i;case b:return il(u.children,S,T,l);case v:L=8,S|=24;break;case w:return i=Ua(12,u,l,S|2),i.elementType=w,i.lanes=T,i;case M:return i=Ua(13,u,l,S),i.elementType=M,i.lanes=T,i;case A:return i=Ua(19,u,l,S),i.elementType=A,i.lanes=T,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case C:case E:L=10;break e;case k:L=9;break e;case D:L=11;break e;case O:L=14;break e;case N:L=16,p=null;break e}L=29,u=Error(n(130,i===null?"null":typeof i,"")),p=null}return l=Ua(L,u,l,S),l.elementType=i,l.type=p,l.lanes=T,l}function il(i,l,u,p){return i=Ua(7,i,p,l),i.lanes=u,i}function Km(i,l,u){return i=Ua(6,i,null,l),i.lanes=u,i}function Qm(i,l,u){return l=Ua(4,i.children!==null?i.children:[],i.key,l),l.lanes=u,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var cc=[],uc=0,C0=null,E0=0,fi=[],di=0,sl=null,Cs=1,Es="";function ol(i,l){cc[uc++]=E0,cc[uc++]=C0,C0=i,E0=l}function db(i,l,u){fi[di++]=Cs,fi[di++]=Es,fi[di++]=sl,sl=i;var p=Cs;i=Es;var S=32-At(p)-1;p&=~(1<<S),u+=1;var T=32-At(l)+S;if(30<T){var L=S-S%5;T=(p&(1<<L)-1).toString(32),p>>=L,S-=L,Cs=1<<32-At(l)+S|u<<S|p,Es=T+i}else Cs=1<<T|u<<S|p,Es=i}function Zm(i){i.return!==null&&(ol(i,1),db(i,1,0))}function Jm(i){for(;i===C0;)C0=cc[--uc],cc[uc]=null,E0=cc[--uc],cc[uc]=null;for(;i===sl;)sl=fi[--di],fi[di]=null,Es=fi[--di],fi[di]=null,Cs=fi[--di],fi[di]=null}var oa=null,Vr=null,fr=!1,ll=null,Zi=!1,e1=Error(n(519));function cl(i){var l=Error(n(418,""));throw Lu(ci(l,i)),e1}function hb(i){var l=i.stateNode,u=i.type,p=i.memoizedProps;switch(l[Re]=i,l[Fe]=p,u){case"dialog":Kt("cancel",l),Kt("close",l);break;case"iframe":case"object":case"embed":Kt("load",l);break;case"video":case"audio":for(u=0;u<lf.length;u++)Kt(lf[u],l);break;case"source":Kt("error",l);break;case"img":case"image":case"link":Kt("error",l),Kt("load",l);break;case"details":Kt("toggle",l);break;case"input":Kt("invalid",l),A2(l,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0),f0(l);break;case"select":Kt("invalid",l);break;case"textarea":Kt("invalid",l),O2(l,p.value,p.defaultValue,p.children),f0(l)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||l.textContent===""+u||p.suppressHydrationWarning===!0||Ow(l.textContent,u)?(p.popover!=null&&(Kt("beforetoggle",l),Kt("toggle",l)),p.onScroll!=null&&Kt("scroll",l),p.onScrollEnd!=null&&Kt("scrollend",l),p.onClick!=null&&(l.onclick=ih),l=!0):l=!1,l||cl(i)}function pb(i){for(oa=i.return;oa;)switch(oa.tag){case 5:case 13:Zi=!1;return;case 27:case 3:Zi=!0;return;default:oa=oa.return}}function Pu(i){if(i!==oa)return!1;if(!fr)return pb(i),fr=!0,!1;var l=i.tag,u;if((u=l!==3&&l!==27)&&((u=l===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||gg(i.type,i.memoizedProps)),u=!u),u&&Vr&&cl(i),pb(i),l===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,l=0;i;){if(i.nodeType===8)if(u=i.data,u==="/$"){if(l===0){Vr=Ui(i.nextSibling);break e}l--}else u!=="$"&&u!=="$!"&&u!=="$?"||l++;i=i.nextSibling}Vr=null}}else l===27?(l=Vr,yo(i.type)?(i=bg,bg=null,Vr=i):Vr=l):Vr=oa?Ui(i.stateNode.nextSibling):null;return!0}function ju(){Vr=oa=null,fr=!1}function mb(){var i=ll;return i!==null&&(wa===null?wa=i:wa.push.apply(wa,i),ll=null),i}function Lu(i){ll===null?ll=[i]:ll.push(i)}var t1=ie(null),ul=null,_s=null;function no(i,l,u){K(t1,l._currentValue),l._currentValue=u}function ks(i){i._currentValue=t1.current,z(t1)}function r1(i,l,u){for(;i!==null;){var p=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,p!==null&&(p.childLanes|=l)):p!==null&&(p.childLanes&l)!==l&&(p.childLanes|=l),i===u)break;i=i.return}}function n1(i,l,u,p){var S=i.child;for(S!==null&&(S.return=i);S!==null;){var T=S.dependencies;if(T!==null){var L=S.child;T=T.firstContext;e:for(;T!==null;){var G=T;T=S;for(var se=0;se<l.length;se++)if(G.context===l[se]){T.lanes|=u,G=T.alternate,G!==null&&(G.lanes|=u),r1(T.return,u,i),p||(L=null);break e}T=G.next}}else if(S.tag===18){if(L=S.return,L===null)throw Error(n(341));L.lanes|=u,T=L.alternate,T!==null&&(T.lanes|=u),r1(L,u,i),L=null}else L=S.child;if(L!==null)L.return=S;else for(L=S;L!==null;){if(L===i){L=null;break}if(S=L.sibling,S!==null){S.return=L.return,L=S;break}L=L.return}S=L}}function Iu(i,l,u,p){i=null;for(var S=l,T=!1;S!==null;){if(!T){if((S.flags&524288)!==0)T=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var L=S.alternate;if(L===null)throw Error(n(387));if(L=L.memoizedProps,L!==null){var G=S.type;za(S.pendingProps.value,L.value)||(i!==null?i.push(G):i=[G])}}else if(S===xe.current){if(L=S.alternate,L===null)throw Error(n(387));L.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(i!==null?i.push(pf):i=[pf])}S=S.return}i!==null&&n1(l,i,u,p),l.flags|=262144}function _0(i){for(i=i.firstContext;i!==null;){if(!za(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function fl(i){ul=i,_s=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Hn(i){return gb(ul,i)}function k0(i,l){return ul===null&&fl(i),gb(i,l)}function gb(i,l){var u=l._currentValue;if(l={context:l,memoizedValue:u,next:null},_s===null){if(i===null)throw Error(n(308));_s=l,i.dependencies={lanes:0,firstContext:l},i.flags|=524288}else _s=_s.next=l;return u}var W5=typeof AbortController<"u"?AbortController:function(){var i=[],l=this.signal={aborted:!1,addEventListener:function(u,p){i.push(p)}};this.abort=function(){l.aborted=!0,i.forEach(function(u){return u()})}},V5=e.unstable_scheduleCallback,G5=e.unstable_NormalPriority,xn={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function a1(){return{controller:new W5,data:new Map,refCount:0}}function Bu(i){i.refCount--,i.refCount===0&&V5(G5,function(){i.controller.abort()})}var zu=null,i1=0,fc=0,dc=null;function X5(i,l){if(zu===null){var u=zu=[];i1=0,fc=og(),dc={status:"pending",value:void 0,then:function(p){u.push(p)}}}return i1++,l.then(xb,xb),l}function xb(){if(--i1===0&&zu!==null){dc!==null&&(dc.status="fulfilled");var i=zu;zu=null,fc=0,dc=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function Y5(i,l){var u=[],p={status:"pending",value:null,reason:null,then:function(S){u.push(S)}};return i.then(function(){p.status="fulfilled",p.value=l;for(var S=0;S<u.length;S++)(0,u[S])(l)},function(S){for(p.status="rejected",p.reason=S,S=0;S<u.length;S++)(0,u[S])(void 0)}),p}var vb=B.S;B.S=function(i,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&X5(i,l),vb!==null&&vb(i,l)};var dl=ie(null);function s1(){var i=dl.current;return i!==null?i:Fr.pooledCache}function A0(i,l){l===null?K(dl,dl.current):K(dl,l.pool)}function yb(){var i=s1();return i===null?null:{parent:xn._currentValue,pool:i}}var Uu=Error(n(460)),bb=Error(n(474)),R0=Error(n(542)),o1={then:function(){}};function Sb(i){return i=i.status,i==="fulfilled"||i==="rejected"}function O0(){}function wb(i,l,u){switch(u=i[u],u===void 0?i.push(l):u!==l&&(l.then(O0,O0),l=u),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,Cb(i),i;default:if(typeof l.status=="string")l.then(O0,O0);else{if(i=Fr,i!==null&&100<i.shellSuspendCounter)throw Error(n(482));i=l,i.status="pending",i.then(function(p){if(l.status==="pending"){var S=l;S.status="fulfilled",S.value=p}},function(p){if(l.status==="pending"){var S=l;S.status="rejected",S.reason=p}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,Cb(i),i}throw $u=l,Uu}}var $u=null;function Tb(){if($u===null)throw Error(n(459));var i=$u;return $u=null,i}function Cb(i){if(i===Uu||i===R0)throw Error(n(483))}var ao=!1;function l1(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function c1(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function io(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function so(i,l,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(gr&2)!==0){var S=p.pending;return S===null?l.next=l:(l.next=S.next,S.next=l),p.pending=l,l=w0(i),ub(i,null,u),l}return S0(i,p,l,u),w0(i)}function Hu(i,l,u){if(l=l.updateQueue,l!==null&&(l=l.shared,(u&4194048)!==0)){var p=l.lanes;p&=i.pendingLanes,u|=p,l.lanes=u,Ia(i,u)}}function u1(i,l){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var S=null,T=null;if(u=u.firstBaseUpdate,u!==null){do{var L={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};T===null?S=T=L:T=T.next=L,u=u.next}while(u!==null);T===null?S=T=l:T=T.next=l}else S=T=l;u={baseState:p.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:p.shared,callbacks:p.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=l:i.next=l,u.lastBaseUpdate=l}var f1=!1;function Wu(){if(f1){var i=dc;if(i!==null)throw i}}function Vu(i,l,u,p){f1=!1;var S=i.updateQueue;ao=!1;var T=S.firstBaseUpdate,L=S.lastBaseUpdate,G=S.shared.pending;if(G!==null){S.shared.pending=null;var se=G,Se=se.next;se.next=null,L===null?T=Se:L.next=Se,L=se;var Ie=i.alternate;Ie!==null&&(Ie=Ie.updateQueue,G=Ie.lastBaseUpdate,G!==L&&(G===null?Ie.firstBaseUpdate=Se:G.next=Se,Ie.lastBaseUpdate=se))}if(T!==null){var ze=S.baseState;L=0,Ie=Se=se=null,G=T;do{var Ce=G.lane&-536870913,Ee=Ce!==G.lane;if(Ee?(rr&Ce)===Ce:(p&Ce)===Ce){Ce!==0&&Ce===fc&&(f1=!0),Ie!==null&&(Ie=Ie.next={lane:0,tag:G.tag,payload:G.payload,callback:null,next:null});e:{var jt=i,Ot=G;Ce=l;var _r=u;switch(Ot.tag){case 1:if(jt=Ot.payload,typeof jt=="function"){ze=jt.call(_r,ze,Ce);break e}ze=jt;break e;case 3:jt.flags=jt.flags&-65537|128;case 0:if(jt=Ot.payload,Ce=typeof jt=="function"?jt.call(_r,ze,Ce):jt,Ce==null)break e;ze=h({},ze,Ce);break e;case 2:ao=!0}}Ce=G.callback,Ce!==null&&(i.flags|=64,Ee&&(i.flags|=8192),Ee=S.callbacks,Ee===null?S.callbacks=[Ce]:Ee.push(Ce))}else Ee={lane:Ce,tag:G.tag,payload:G.payload,callback:G.callback,next:null},Ie===null?(Se=Ie=Ee,se=ze):Ie=Ie.next=Ee,L|=Ce;if(G=G.next,G===null){if(G=S.shared.pending,G===null)break;Ee=G,G=Ee.next,Ee.next=null,S.lastBaseUpdate=Ee,S.shared.pending=null}}while(!0);Ie===null&&(se=ze),S.baseState=se,S.firstBaseUpdate=Se,S.lastBaseUpdate=Ie,T===null&&(S.shared.lanes=0),mo|=L,i.lanes=L,i.memoizedState=ze}}function Eb(i,l){if(typeof i!="function")throw Error(n(191,i));i.call(l)}function _b(i,l){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)Eb(u[i],l)}var hc=ie(null),D0=ie(0);function kb(i,l){i=Ns,K(D0,i),K(hc,l),Ns=i|l.baseLanes}function d1(){K(D0,Ns),K(hc,hc.current)}function h1(){Ns=D0.current,z(hc),z(D0)}var oo=0,Vt=null,Cr=null,un=null,M0=!1,pc=!1,hl=!1,F0=0,Gu=0,mc=null,q5=0;function en(){throw Error(n(321))}function p1(i,l){if(l===null)return!1;for(var u=0;u<l.length&&u<i.length;u++)if(!za(i[u],l[u]))return!1;return!0}function m1(i,l,u,p,S,T){return oo=T,Vt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,B.H=i===null||i.memoizedState===null?uS:fS,hl=!1,T=u(p,S),hl=!1,pc&&(T=Rb(l,u,p,S)),Ab(i),T}function Ab(i){B.H=B0;var l=Cr!==null&&Cr.next!==null;if(oo=0,un=Cr=Vt=null,M0=!1,Gu=0,mc=null,l)throw Error(n(300));i===null||Cn||(i=i.dependencies,i!==null&&_0(i)&&(Cn=!0))}function Rb(i,l,u,p){Vt=i;var S=0;do{if(pc&&(mc=null),Gu=0,pc=!1,25<=S)throw Error(n(301));if(S+=1,un=Cr=null,i.updateQueue!=null){var T=i.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}B.H=r6,T=l(u,p)}while(pc);return T}function K5(){var i=B.H,l=i.useState()[0];return l=typeof l.then=="function"?Xu(l):l,i=i.useState()[0],(Cr!==null?Cr.memoizedState:null)!==i&&(Vt.flags|=1024),l}function g1(){var i=F0!==0;return F0=0,i}function x1(i,l,u){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~u}function v1(i){if(M0){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}M0=!1}oo=0,un=Cr=Vt=null,pc=!1,Gu=F0=0,mc=null}function ba(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?Vt.memoizedState=un=i:un=un.next=i,un}function fn(){if(Cr===null){var i=Vt.alternate;i=i!==null?i.memoizedState:null}else i=Cr.next;var l=un===null?Vt.memoizedState:un.next;if(l!==null)un=l,Cr=i;else{if(i===null)throw Vt.alternate===null?Error(n(467)):Error(n(310));Cr=i,i={memoizedState:Cr.memoizedState,baseState:Cr.baseState,baseQueue:Cr.baseQueue,queue:Cr.queue,next:null},un===null?Vt.memoizedState=un=i:un=un.next=i}return un}function y1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xu(i){var l=Gu;return Gu+=1,mc===null&&(mc=[]),i=wb(mc,i,l),l=Vt,(un===null?l.memoizedState:un.next)===null&&(l=l.alternate,B.H=l===null||l.memoizedState===null?uS:fS),i}function N0(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Xu(i);if(i.$$typeof===E)return Hn(i)}throw Error(n(438,String(i)))}function b1(i){var l=null,u=Vt.updateQueue;if(u!==null&&(l=u.memoCache),l==null){var p=Vt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(l={data:p.data.map(function(S){return S.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),u===null&&(u=y1(),Vt.updateQueue=u),u.memoCache=l,u=l.data[l.index],u===void 0)for(u=l.data[l.index]=Array(i),p=0;p<i;p++)u[p]=P;return l.index++,u}function As(i,l){return typeof l=="function"?l(i):l}function P0(i){var l=fn();return S1(l,Cr,i)}function S1(i,l,u){var p=i.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=u;var S=i.baseQueue,T=p.pending;if(T!==null){if(S!==null){var L=S.next;S.next=T.next,T.next=L}l.baseQueue=S=T,p.pending=null}if(T=i.baseState,S===null)i.memoizedState=T;else{l=S.next;var G=L=null,se=null,Se=l,Ie=!1;do{var ze=Se.lane&-536870913;if(ze!==Se.lane?(rr&ze)===ze:(oo&ze)===ze){var Ce=Se.revertLane;if(Ce===0)se!==null&&(se=se.next={lane:0,revertLane:0,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null}),ze===fc&&(Ie=!0);else if((oo&Ce)===Ce){Se=Se.next,Ce===fc&&(Ie=!0);continue}else ze={lane:0,revertLane:Se.revertLane,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null},se===null?(G=se=ze,L=T):se=se.next=ze,Vt.lanes|=Ce,mo|=Ce;ze=Se.action,hl&&u(T,ze),T=Se.hasEagerState?Se.eagerState:u(T,ze)}else Ce={lane:ze,revertLane:Se.revertLane,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null},se===null?(G=se=Ce,L=T):se=se.next=Ce,Vt.lanes|=ze,mo|=ze;Se=Se.next}while(Se!==null&&Se!==l);if(se===null?L=T:se.next=G,!za(T,i.memoizedState)&&(Cn=!0,Ie&&(u=dc,u!==null)))throw u;i.memoizedState=T,i.baseState=L,i.baseQueue=se,p.lastRenderedState=T}return S===null&&(p.lanes=0),[i.memoizedState,p.dispatch]}function w1(i){var l=fn(),u=l.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=i;var p=u.dispatch,S=u.pending,T=l.memoizedState;if(S!==null){u.pending=null;var L=S=S.next;do T=i(T,L.action),L=L.next;while(L!==S);za(T,l.memoizedState)||(Cn=!0),l.memoizedState=T,l.baseQueue===null&&(l.baseState=T),u.lastRenderedState=T}return[T,p]}function Ob(i,l,u){var p=Vt,S=fn(),T=fr;if(T){if(u===void 0)throw Error(n(407));u=u()}else u=l();var L=!za((Cr||S).memoizedState,u);L&&(S.memoizedState=u,Cn=!0),S=S.queue;var G=Fb.bind(null,p,S,i);if(Yu(2048,8,G,[i]),S.getSnapshot!==l||L||un!==null&&un.memoizedState.tag&1){if(p.flags|=2048,gc(9,j0(),Mb.bind(null,p,S,u,l),null),Fr===null)throw Error(n(349));T||(oo&124)!==0||Db(p,l,u)}return u}function Db(i,l,u){i.flags|=16384,i={getSnapshot:l,value:u},l=Vt.updateQueue,l===null?(l=y1(),Vt.updateQueue=l,l.stores=[i]):(u=l.stores,u===null?l.stores=[i]:u.push(i))}function Mb(i,l,u,p){l.value=u,l.getSnapshot=p,Nb(l)&&Pb(i)}function Fb(i,l,u){return u(function(){Nb(l)&&Pb(i)})}function Nb(i){var l=i.getSnapshot;i=i.value;try{var u=l();return!za(i,u)}catch{return!0}}function Pb(i){var l=oc(i,2);l!==null&&Ga(l,i,2)}function T1(i){var l=ba();if(typeof i=="function"){var u=i;if(i=u(),hl){_t(!0);try{u()}finally{_t(!1)}}}return l.memoizedState=l.baseState=i,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:i},l}function jb(i,l,u,p){return i.baseState=u,S1(i,Cr,typeof p=="function"?p:As)}function Q5(i,l,u,p,S){if(I0(i))throw Error(n(485));if(i=l.action,i!==null){var T={payload:S,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){T.listeners.push(L)}};B.T!==null?u(!0):T.isTransition=!1,p(T),u=l.pending,u===null?(T.next=l.pending=T,Lb(l,T)):(T.next=u.next,l.pending=u.next=T)}}function Lb(i,l){var u=l.action,p=l.payload,S=i.state;if(l.isTransition){var T=B.T,L={};B.T=L;try{var G=u(S,p),se=B.S;se!==null&&se(L,G),Ib(i,l,G)}catch(Se){C1(i,l,Se)}finally{B.T=T}}else try{T=u(S,p),Ib(i,l,T)}catch(Se){C1(i,l,Se)}}function Ib(i,l,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){Bb(i,l,p)},function(p){return C1(i,l,p)}):Bb(i,l,u)}function Bb(i,l,u){l.status="fulfilled",l.value=u,zb(l),i.state=u,l=i.pending,l!==null&&(u=l.next,u===l?i.pending=null:(u=u.next,l.next=u,Lb(i,u)))}function C1(i,l,u){var p=i.pending;if(i.pending=null,p!==null){p=p.next;do l.status="rejected",l.reason=u,zb(l),l=l.next;while(l!==p)}i.action=null}function zb(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function Ub(i,l){return l}function $b(i,l){if(fr){var u=Fr.formState;if(u!==null){e:{var p=Vt;if(fr){if(Vr){t:{for(var S=Vr,T=Zi;S.nodeType!==8;){if(!T){S=null;break t}if(S=Ui(S.nextSibling),S===null){S=null;break t}}T=S.data,S=T==="F!"||T==="F"?S:null}if(S){Vr=Ui(S.nextSibling),p=S.data==="F!";break e}}cl(p)}p=!1}p&&(l=u[0])}}return u=ba(),u.memoizedState=u.baseState=l,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ub,lastRenderedState:l},u.queue=p,u=oS.bind(null,Vt,p),p.dispatch=u,p=T1(!1),T=R1.bind(null,Vt,!1,p.queue),p=ba(),S={state:l,dispatch:null,action:i,pending:null},p.queue=S,u=Q5.bind(null,Vt,S,T,u),S.dispatch=u,p.memoizedState=i,[l,u,!1]}function Hb(i){var l=fn();return Wb(l,Cr,i)}function Wb(i,l,u){if(l=S1(i,l,Ub)[0],i=P0(As)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var p=Xu(l)}catch(L){throw L===Uu?R0:L}else p=l;l=fn();var S=l.queue,T=S.dispatch;return u!==l.memoizedState&&(Vt.flags|=2048,gc(9,j0(),Z5.bind(null,S,u),null)),[p,T,i]}function Z5(i,l){i.action=l}function Vb(i){var l=fn(),u=Cr;if(u!==null)return Wb(l,u,i);fn(),l=l.memoizedState,u=fn();var p=u.queue.dispatch;return u.memoizedState=i,[l,p,!1]}function gc(i,l,u,p){return i={tag:i,create:u,deps:p,inst:l,next:null},l=Vt.updateQueue,l===null&&(l=y1(),Vt.updateQueue=l),u=l.lastEffect,u===null?l.lastEffect=i.next=i:(p=u.next,u.next=i,i.next=p,l.lastEffect=i),i}function j0(){return{destroy:void 0,resource:void 0}}function Gb(){return fn().memoizedState}function L0(i,l,u,p){var S=ba();p=p===void 0?null:p,Vt.flags|=i,S.memoizedState=gc(1|l,j0(),u,p)}function Yu(i,l,u,p){var S=fn();p=p===void 0?null:p;var T=S.memoizedState.inst;Cr!==null&&p!==null&&p1(p,Cr.memoizedState.deps)?S.memoizedState=gc(l,T,u,p):(Vt.flags|=i,S.memoizedState=gc(1|l,T,u,p))}function Xb(i,l){L0(8390656,8,i,l)}function Yb(i,l){Yu(2048,8,i,l)}function qb(i,l){return Yu(4,2,i,l)}function Kb(i,l){return Yu(4,4,i,l)}function Qb(i,l){if(typeof l=="function"){i=i();var u=l(i);return function(){typeof u=="function"?u():l(null)}}if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function Zb(i,l,u){u=u!=null?u.concat([i]):null,Yu(4,4,Qb.bind(null,l,i),u)}function E1(){}function Jb(i,l){var u=fn();l=l===void 0?null:l;var p=u.memoizedState;return l!==null&&p1(l,p[1])?p[0]:(u.memoizedState=[i,l],i)}function eS(i,l){var u=fn();l=l===void 0?null:l;var p=u.memoizedState;if(l!==null&&p1(l,p[1]))return p[0];if(p=i(),hl){_t(!0);try{i()}finally{_t(!1)}}return u.memoizedState=[p,l],p}function _1(i,l,u){return u===void 0||(oo&1073741824)!==0?i.memoizedState=l:(i.memoizedState=u,i=nw(),Vt.lanes|=i,mo|=i,u)}function tS(i,l,u,p){return za(u,l)?u:hc.current!==null?(i=_1(i,u,p),za(i,l)||(Cn=!0),i):(oo&42)===0?(Cn=!0,i.memoizedState=u):(i=nw(),Vt.lanes|=i,mo|=i,l)}function rS(i,l,u,p,S){var T=ne.p;ne.p=T!==0&&8>T?T:8;var L=B.T,G={};B.T=G,R1(i,!1,l,u);try{var se=S(),Se=B.S;if(Se!==null&&Se(G,se),se!==null&&typeof se=="object"&&typeof se.then=="function"){var Ie=Y5(se,p);qu(i,l,Ie,Va(i))}else qu(i,l,p,Va(i))}catch(ze){qu(i,l,{then:function(){},status:"rejected",reason:ze},Va())}finally{ne.p=T,B.T=L}}function J5(){}function k1(i,l,u,p){if(i.tag!==5)throw Error(n(476));var S=nS(i).queue;rS(i,S,l,ce,u===null?J5:function(){return aS(i),u(p)})}function nS(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:ce},next:null};var u={};return l.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:u},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function aS(i){var l=nS(i).next.queue;qu(i,l,{},Va())}function A1(){return Hn(pf)}function iS(){return fn().memoizedState}function sS(){return fn().memoizedState}function e6(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var u=Va();i=io(u);var p=so(l,i,u);p!==null&&(Ga(p,l,u),Hu(p,l,u)),l={cache:a1()},i.payload=l;return}l=l.return}}function t6(i,l,u){var p=Va();u={lane:p,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},I0(i)?lS(l,u):(u=Ym(i,l,u,p),u!==null&&(Ga(u,i,p),cS(u,l,p)))}function oS(i,l,u){var p=Va();qu(i,l,u,p)}function qu(i,l,u,p){var S={lane:p,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(I0(i))lS(l,S);else{var T=i.alternate;if(i.lanes===0&&(T===null||T.lanes===0)&&(T=l.lastRenderedReducer,T!==null))try{var L=l.lastRenderedState,G=T(L,u);if(S.hasEagerState=!0,S.eagerState=G,za(G,L))return S0(i,l,S,0),Fr===null&&b0(),!1}catch{}finally{}if(u=Ym(i,l,S,p),u!==null)return Ga(u,i,p),cS(u,l,p),!0}return!1}function R1(i,l,u,p){if(p={lane:2,revertLane:og(),action:p,hasEagerState:!1,eagerState:null,next:null},I0(i)){if(l)throw Error(n(479))}else l=Ym(i,u,p,2),l!==null&&Ga(l,i,2)}function I0(i){var l=i.alternate;return i===Vt||l!==null&&l===Vt}function lS(i,l){pc=M0=!0;var u=i.pending;u===null?l.next=l:(l.next=u.next,u.next=l),i.pending=l}function cS(i,l,u){if((u&4194048)!==0){var p=l.lanes;p&=i.pendingLanes,u|=p,l.lanes=u,Ia(i,u)}}var B0={readContext:Hn,use:N0,useCallback:en,useContext:en,useEffect:en,useImperativeHandle:en,useLayoutEffect:en,useInsertionEffect:en,useMemo:en,useReducer:en,useRef:en,useState:en,useDebugValue:en,useDeferredValue:en,useTransition:en,useSyncExternalStore:en,useId:en,useHostTransitionStatus:en,useFormState:en,useActionState:en,useOptimistic:en,useMemoCache:en,useCacheRefresh:en},uS={readContext:Hn,use:N0,useCallback:function(i,l){return ba().memoizedState=[i,l===void 0?null:l],i},useContext:Hn,useEffect:Xb,useImperativeHandle:function(i,l,u){u=u!=null?u.concat([i]):null,L0(4194308,4,Qb.bind(null,l,i),u)},useLayoutEffect:function(i,l){return L0(4194308,4,i,l)},useInsertionEffect:function(i,l){L0(4,2,i,l)},useMemo:function(i,l){var u=ba();l=l===void 0?null:l;var p=i();if(hl){_t(!0);try{i()}finally{_t(!1)}}return u.memoizedState=[p,l],p},useReducer:function(i,l,u){var p=ba();if(u!==void 0){var S=u(l);if(hl){_t(!0);try{u(l)}finally{_t(!1)}}}else S=l;return p.memoizedState=p.baseState=S,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:S},p.queue=i,i=i.dispatch=t6.bind(null,Vt,i),[p.memoizedState,i]},useRef:function(i){var l=ba();return i={current:i},l.memoizedState=i},useState:function(i){i=T1(i);var l=i.queue,u=oS.bind(null,Vt,l);return l.dispatch=u,[i.memoizedState,u]},useDebugValue:E1,useDeferredValue:function(i,l){var u=ba();return _1(u,i,l)},useTransition:function(){var i=T1(!1);return i=rS.bind(null,Vt,i.queue,!0,!1),ba().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,u){var p=Vt,S=ba();if(fr){if(u===void 0)throw Error(n(407));u=u()}else{if(u=l(),Fr===null)throw Error(n(349));(rr&124)!==0||Db(p,l,u)}S.memoizedState=u;var T={value:u,getSnapshot:l};return S.queue=T,Xb(Fb.bind(null,p,T,i),[i]),p.flags|=2048,gc(9,j0(),Mb.bind(null,p,T,u,l),null),u},useId:function(){var i=ba(),l=Fr.identifierPrefix;if(fr){var u=Es,p=Cs;u=(p&~(1<<32-At(p)-1)).toString(32)+u,l="«"+l+"R"+u,u=F0++,0<u&&(l+="H"+u.toString(32)),l+="»"}else u=q5++,l="«"+l+"r"+u.toString(32)+"»";return i.memoizedState=l},useHostTransitionStatus:A1,useFormState:$b,useActionState:$b,useOptimistic:function(i){var l=ba();l.memoizedState=l.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=u,l=R1.bind(null,Vt,!0,u),u.dispatch=l,[i,l]},useMemoCache:b1,useCacheRefresh:function(){return ba().memoizedState=e6.bind(null,Vt)}},fS={readContext:Hn,use:N0,useCallback:Jb,useContext:Hn,useEffect:Yb,useImperativeHandle:Zb,useInsertionEffect:qb,useLayoutEffect:Kb,useMemo:eS,useReducer:P0,useRef:Gb,useState:function(){return P0(As)},useDebugValue:E1,useDeferredValue:function(i,l){var u=fn();return tS(u,Cr.memoizedState,i,l)},useTransition:function(){var i=P0(As)[0],l=fn().memoizedState;return[typeof i=="boolean"?i:Xu(i),l]},useSyncExternalStore:Ob,useId:iS,useHostTransitionStatus:A1,useFormState:Hb,useActionState:Hb,useOptimistic:function(i,l){var u=fn();return jb(u,Cr,i,l)},useMemoCache:b1,useCacheRefresh:sS},r6={readContext:Hn,use:N0,useCallback:Jb,useContext:Hn,useEffect:Yb,useImperativeHandle:Zb,useInsertionEffect:qb,useLayoutEffect:Kb,useMemo:eS,useReducer:w1,useRef:Gb,useState:function(){return w1(As)},useDebugValue:E1,useDeferredValue:function(i,l){var u=fn();return Cr===null?_1(u,i,l):tS(u,Cr.memoizedState,i,l)},useTransition:function(){var i=w1(As)[0],l=fn().memoizedState;return[typeof i=="boolean"?i:Xu(i),l]},useSyncExternalStore:Ob,useId:iS,useHostTransitionStatus:A1,useFormState:Vb,useActionState:Vb,useOptimistic:function(i,l){var u=fn();return Cr!==null?jb(u,Cr,i,l):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:b1,useCacheRefresh:sS},xc=null,Ku=0;function z0(i){var l=Ku;return Ku+=1,xc===null&&(xc=[]),wb(xc,i,l)}function Qu(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function U0(i,l){throw l.$$typeof===g?Error(n(525)):(i=Object.prototype.toString.call(l),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i)))}function dS(i){var l=i._init;return l(i._payload)}function hS(i){function l(me,ue){if(i){var be=me.deletions;be===null?(me.deletions=[ue],me.flags|=16):be.push(ue)}}function u(me,ue){if(!i)return null;for(;ue!==null;)l(me,ue),ue=ue.sibling;return null}function p(me){for(var ue=new Map;me!==null;)me.key!==null?ue.set(me.key,me):ue.set(me.index,me),me=me.sibling;return ue}function S(me,ue){return me=Ts(me,ue),me.index=0,me.sibling=null,me}function T(me,ue,be){return me.index=be,i?(be=me.alternate,be!==null?(be=be.index,be<ue?(me.flags|=67108866,ue):be):(me.flags|=67108866,ue)):(me.flags|=1048576,ue)}function L(me){return i&&me.alternate===null&&(me.flags|=67108866),me}function G(me,ue,be,Be){return ue===null||ue.tag!==6?(ue=Km(be,me.mode,Be),ue.return=me,ue):(ue=S(ue,be),ue.return=me,ue)}function se(me,ue,be,Be){var gt=be.type;return gt===b?Ie(me,ue,be.props.children,Be,be.key):ue!==null&&(ue.elementType===gt||typeof gt=="object"&&gt!==null&&gt.$$typeof===N&&dS(gt)===ue.type)?(ue=S(ue,be.props),Qu(ue,be),ue.return=me,ue):(ue=T0(be.type,be.key,be.props,null,me.mode,Be),Qu(ue,be),ue.return=me,ue)}function Se(me,ue,be,Be){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==be.containerInfo||ue.stateNode.implementation!==be.implementation?(ue=Qm(be,me.mode,Be),ue.return=me,ue):(ue=S(ue,be.children||[]),ue.return=me,ue)}function Ie(me,ue,be,Be,gt){return ue===null||ue.tag!==7?(ue=il(be,me.mode,Be,gt),ue.return=me,ue):(ue=S(ue,be),ue.return=me,ue)}function ze(me,ue,be){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ue=Km(""+ue,me.mode,be),ue.return=me,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case x:return be=T0(ue.type,ue.key,ue.props,null,me.mode,be),Qu(be,ue),be.return=me,be;case y:return ue=Qm(ue,me.mode,be),ue.return=me,ue;case N:var Be=ue._init;return ue=Be(ue._payload),ze(me,ue,be)}if(Z(ue)||R(ue))return ue=il(ue,me.mode,be,null),ue.return=me,ue;if(typeof ue.then=="function")return ze(me,z0(ue),be);if(ue.$$typeof===E)return ze(me,k0(me,ue),be);U0(me,ue)}return null}function Ce(me,ue,be,Be){var gt=ue!==null?ue.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return gt!==null?null:G(me,ue,""+be,Be);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case x:return be.key===gt?se(me,ue,be,Be):null;case y:return be.key===gt?Se(me,ue,be,Be):null;case N:return gt=be._init,be=gt(be._payload),Ce(me,ue,be,Be)}if(Z(be)||R(be))return gt!==null?null:Ie(me,ue,be,Be,null);if(typeof be.then=="function")return Ce(me,ue,z0(be),Be);if(be.$$typeof===E)return Ce(me,ue,k0(me,be),Be);U0(me,be)}return null}function Ee(me,ue,be,Be,gt){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return me=me.get(be)||null,G(ue,me,""+Be,gt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case x:return me=me.get(Be.key===null?be:Be.key)||null,se(ue,me,Be,gt);case y:return me=me.get(Be.key===null?be:Be.key)||null,Se(ue,me,Be,gt);case N:var Xt=Be._init;return Be=Xt(Be._payload),Ee(me,ue,be,Be,gt)}if(Z(Be)||R(Be))return me=me.get(be)||null,Ie(ue,me,Be,gt,null);if(typeof Be.then=="function")return Ee(me,ue,be,z0(Be),gt);if(Be.$$typeof===E)return Ee(me,ue,be,k0(ue,Be),gt);U0(ue,Be)}return null}function jt(me,ue,be,Be){for(var gt=null,Xt=null,wt=ue,Mt=ue=0,_n=null;wt!==null&&Mt<be.length;Mt++){wt.index>Mt?(_n=wt,wt=null):_n=wt.sibling;var lr=Ce(me,wt,be[Mt],Be);if(lr===null){wt===null&&(wt=_n);break}i&&wt&&lr.alternate===null&&l(me,wt),ue=T(lr,ue,Mt),Xt===null?gt=lr:Xt.sibling=lr,Xt=lr,wt=_n}if(Mt===be.length)return u(me,wt),fr&&ol(me,Mt),gt;if(wt===null){for(;Mt<be.length;Mt++)wt=ze(me,be[Mt],Be),wt!==null&&(ue=T(wt,ue,Mt),Xt===null?gt=wt:Xt.sibling=wt,Xt=wt);return fr&&ol(me,Mt),gt}for(wt=p(wt);Mt<be.length;Mt++)_n=Ee(wt,me,Mt,be[Mt],Be),_n!==null&&(i&&_n.alternate!==null&&wt.delete(_n.key===null?Mt:_n.key),ue=T(_n,ue,Mt),Xt===null?gt=_n:Xt.sibling=_n,Xt=_n);return i&&wt.forEach(function(Co){return l(me,Co)}),fr&&ol(me,Mt),gt}function Ot(me,ue,be,Be){if(be==null)throw Error(n(151));for(var gt=null,Xt=null,wt=ue,Mt=ue=0,_n=null,lr=be.next();wt!==null&&!lr.done;Mt++,lr=be.next()){wt.index>Mt?(_n=wt,wt=null):_n=wt.sibling;var Co=Ce(me,wt,lr.value,Be);if(Co===null){wt===null&&(wt=_n);break}i&&wt&&Co.alternate===null&&l(me,wt),ue=T(Co,ue,Mt),Xt===null?gt=Co:Xt.sibling=Co,Xt=Co,wt=_n}if(lr.done)return u(me,wt),fr&&ol(me,Mt),gt;if(wt===null){for(;!lr.done;Mt++,lr=be.next())lr=ze(me,lr.value,Be),lr!==null&&(ue=T(lr,ue,Mt),Xt===null?gt=lr:Xt.sibling=lr,Xt=lr);return fr&&ol(me,Mt),gt}for(wt=p(wt);!lr.done;Mt++,lr=be.next())lr=Ee(wt,me,Mt,lr.value,Be),lr!==null&&(i&&lr.alternate!==null&&wt.delete(lr.key===null?Mt:lr.key),ue=T(lr,ue,Mt),Xt===null?gt=lr:Xt.sibling=lr,Xt=lr);return i&&wt.forEach(function(n8){return l(me,n8)}),fr&&ol(me,Mt),gt}function _r(me,ue,be,Be){if(typeof be=="object"&&be!==null&&be.type===b&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case x:e:{for(var gt=be.key;ue!==null;){if(ue.key===gt){if(gt=be.type,gt===b){if(ue.tag===7){u(me,ue.sibling),Be=S(ue,be.props.children),Be.return=me,me=Be;break e}}else if(ue.elementType===gt||typeof gt=="object"&&gt!==null&&gt.$$typeof===N&&dS(gt)===ue.type){u(me,ue.sibling),Be=S(ue,be.props),Qu(Be,be),Be.return=me,me=Be;break e}u(me,ue);break}else l(me,ue);ue=ue.sibling}be.type===b?(Be=il(be.props.children,me.mode,Be,be.key),Be.return=me,me=Be):(Be=T0(be.type,be.key,be.props,null,me.mode,Be),Qu(Be,be),Be.return=me,me=Be)}return L(me);case y:e:{for(gt=be.key;ue!==null;){if(ue.key===gt)if(ue.tag===4&&ue.stateNode.containerInfo===be.containerInfo&&ue.stateNode.implementation===be.implementation){u(me,ue.sibling),Be=S(ue,be.children||[]),Be.return=me,me=Be;break e}else{u(me,ue);break}else l(me,ue);ue=ue.sibling}Be=Qm(be,me.mode,Be),Be.return=me,me=Be}return L(me);case N:return gt=be._init,be=gt(be._payload),_r(me,ue,be,Be)}if(Z(be))return jt(me,ue,be,Be);if(R(be)){if(gt=R(be),typeof gt!="function")throw Error(n(150));return be=gt.call(be),Ot(me,ue,be,Be)}if(typeof be.then=="function")return _r(me,ue,z0(be),Be);if(be.$$typeof===E)return _r(me,ue,k0(me,be),Be);U0(me,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(be=""+be,ue!==null&&ue.tag===6?(u(me,ue.sibling),Be=S(ue,be),Be.return=me,me=Be):(u(me,ue),Be=Km(be,me.mode,Be),Be.return=me,me=Be),L(me)):u(me,ue)}return function(me,ue,be,Be){try{Ku=0;var gt=_r(me,ue,be,Be);return xc=null,gt}catch(wt){if(wt===Uu||wt===R0)throw wt;var Xt=Ua(29,wt,null,me.mode);return Xt.lanes=Be,Xt.return=me,Xt}finally{}}}var vc=hS(!0),pS=hS(!1),hi=ie(null),Ji=null;function lo(i){var l=i.alternate;K(vn,vn.current&1),K(hi,i),Ji===null&&(l===null||hc.current!==null||l.memoizedState!==null)&&(Ji=i)}function mS(i){if(i.tag===22){if(K(vn,vn.current),K(hi,i),Ji===null){var l=i.alternate;l!==null&&l.memoizedState!==null&&(Ji=i)}}else co()}function co(){K(vn,vn.current),K(hi,hi.current)}function Rs(i){z(hi),Ji===i&&(Ji=null),z(vn)}var vn=ie(0);function $0(i){for(var l=i;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||yg(u)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function O1(i,l,u,p){l=i.memoizedState,u=u(p,l),u=u==null?l:h({},l,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var D1={enqueueSetState:function(i,l,u){i=i._reactInternals;var p=Va(),S=io(p);S.payload=l,u!=null&&(S.callback=u),l=so(i,S,p),l!==null&&(Ga(l,i,p),Hu(l,i,p))},enqueueReplaceState:function(i,l,u){i=i._reactInternals;var p=Va(),S=io(p);S.tag=1,S.payload=l,u!=null&&(S.callback=u),l=so(i,S,p),l!==null&&(Ga(l,i,p),Hu(l,i,p))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var u=Va(),p=io(u);p.tag=2,l!=null&&(p.callback=l),l=so(i,p,u),l!==null&&(Ga(l,i,u),Hu(l,i,u))}};function gS(i,l,u,p,S,T,L){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,T,L):l.prototype&&l.prototype.isPureReactComponent?!Fu(u,p)||!Fu(S,T):!0}function xS(i,l,u,p){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,p),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,p),l.state!==i&&D1.enqueueReplaceState(l,l.state,null)}function pl(i,l){var u=l;if("ref"in l){u={};for(var p in l)p!=="ref"&&(u[p]=l[p])}if(i=i.defaultProps){u===l&&(u=h({},u));for(var S in i)u[S]===void 0&&(u[S]=i[S])}return u}var H0=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function vS(i){H0(i)}function yS(i){console.error(i)}function bS(i){H0(i)}function W0(i,l){try{var u=i.onUncaughtError;u(l.value,{componentStack:l.stack})}catch(p){setTimeout(function(){throw p})}}function SS(i,l,u){try{var p=i.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function M1(i,l,u){return u=io(u),u.tag=3,u.payload={element:null},u.callback=function(){W0(i,l)},u}function wS(i){return i=io(i),i.tag=3,i}function TS(i,l,u,p){var S=u.type.getDerivedStateFromError;if(typeof S=="function"){var T=p.value;i.payload=function(){return S(T)},i.callback=function(){SS(l,u,p)}}var L=u.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(i.callback=function(){SS(l,u,p),typeof S!="function"&&(go===null?go=new Set([this]):go.add(this));var G=p.stack;this.componentDidCatch(p.value,{componentStack:G!==null?G:""})})}function n6(i,l,u,p,S){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(l=u.alternate,l!==null&&Iu(l,u,S,!0),u=hi.current,u!==null){switch(u.tag){case 13:return Ji===null?rg():u.alternate===null&&Gr===0&&(Gr=3),u.flags&=-257,u.flags|=65536,u.lanes=S,p===o1?u.flags|=16384:(l=u.updateQueue,l===null?u.updateQueue=new Set([p]):l.add(p),ag(i,p,S)),!1;case 22:return u.flags|=65536,p===o1?u.flags|=16384:(l=u.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=l):(u=l.retryQueue,u===null?l.retryQueue=new Set([p]):u.add(p)),ag(i,p,S)),!1}throw Error(n(435,u.tag))}return ag(i,p,S),rg(),!1}if(fr)return l=hi.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=S,p!==e1&&(i=Error(n(422),{cause:p}),Lu(ci(i,u)))):(p!==e1&&(l=Error(n(423),{cause:p}),Lu(ci(l,u))),i=i.current.alternate,i.flags|=65536,S&=-S,i.lanes|=S,p=ci(p,u),S=M1(i.stateNode,p,S),u1(i,S),Gr!==4&&(Gr=2)),!1;var T=Error(n(520),{cause:p});if(T=ci(T,u),af===null?af=[T]:af.push(T),Gr!==4&&(Gr=2),l===null)return!0;p=ci(p,u),u=l;do{switch(u.tag){case 3:return u.flags|=65536,i=S&-S,u.lanes|=i,i=M1(u.stateNode,p,i),u1(u,i),!1;case 1:if(l=u.type,T=u.stateNode,(u.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(go===null||!go.has(T))))return u.flags|=65536,S&=-S,u.lanes|=S,S=wS(S),TS(S,i,u,p),u1(u,S),!1}u=u.return}while(u!==null);return!1}var CS=Error(n(461)),Cn=!1;function Fn(i,l,u,p){l.child=i===null?pS(l,null,u,p):vc(l,i.child,u,p)}function ES(i,l,u,p,S){u=u.render;var T=l.ref;if("ref"in p){var L={};for(var G in p)G!=="ref"&&(L[G]=p[G])}else L=p;return fl(l),p=m1(i,l,u,L,T,S),G=g1(),i!==null&&!Cn?(x1(i,l,S),Os(i,l,S)):(fr&&G&&Zm(l),l.flags|=1,Fn(i,l,p,S),l.child)}function _S(i,l,u,p,S){if(i===null){var T=u.type;return typeof T=="function"&&!qm(T)&&T.defaultProps===void 0&&u.compare===null?(l.tag=15,l.type=T,kS(i,l,T,p,S)):(i=T0(u.type,null,p,l,l.mode,S),i.ref=l.ref,i.return=l,l.child=i)}if(T=i.child,!z1(i,S)){var L=T.memoizedProps;if(u=u.compare,u=u!==null?u:Fu,u(L,p)&&i.ref===l.ref)return Os(i,l,S)}return l.flags|=1,i=Ts(T,p),i.ref=l.ref,i.return=l,l.child=i}function kS(i,l,u,p,S){if(i!==null){var T=i.memoizedProps;if(Fu(T,p)&&i.ref===l.ref)if(Cn=!1,l.pendingProps=p=T,z1(i,S))(i.flags&131072)!==0&&(Cn=!0);else return l.lanes=i.lanes,Os(i,l,S)}return F1(i,l,u,p,S)}function AS(i,l,u){var p=l.pendingProps,S=p.children,T=i!==null?i.memoizedState:null;if(p.mode==="hidden"){if((l.flags&128)!==0){if(p=T!==null?T.baseLanes|u:u,i!==null){for(S=l.child=i.child,T=0;S!==null;)T=T|S.lanes|S.childLanes,S=S.sibling;l.childLanes=T&~p}else l.childLanes=0,l.child=null;return RS(i,l,p,u)}if((u&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&A0(l,T!==null?T.cachePool:null),T!==null?kb(l,T):d1(),mS(l);else return l.lanes=l.childLanes=536870912,RS(i,l,T!==null?T.baseLanes|u:u,u)}else T!==null?(A0(l,T.cachePool),kb(l,T),co(),l.memoizedState=null):(i!==null&&A0(l,null),d1(),co());return Fn(i,l,S,u),l.child}function RS(i,l,u,p){var S=s1();return S=S===null?null:{parent:xn._currentValue,pool:S},l.memoizedState={baseLanes:u,cachePool:S},i!==null&&A0(l,null),d1(),mS(l),i!==null&&Iu(i,l,p,!0),null}function V0(i,l){var u=l.ref;if(u===null)i!==null&&i.ref!==null&&(l.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(n(284));(i===null||i.ref!==u)&&(l.flags|=4194816)}}function F1(i,l,u,p,S){return fl(l),u=m1(i,l,u,p,void 0,S),p=g1(),i!==null&&!Cn?(x1(i,l,S),Os(i,l,S)):(fr&&p&&Zm(l),l.flags|=1,Fn(i,l,u,S),l.child)}function OS(i,l,u,p,S,T){return fl(l),l.updateQueue=null,u=Rb(l,p,u,S),Ab(i),p=g1(),i!==null&&!Cn?(x1(i,l,T),Os(i,l,T)):(fr&&p&&Zm(l),l.flags|=1,Fn(i,l,u,T),l.child)}function DS(i,l,u,p,S){if(fl(l),l.stateNode===null){var T=lc,L=u.contextType;typeof L=="object"&&L!==null&&(T=Hn(L)),T=new u(p,T),l.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=D1,l.stateNode=T,T._reactInternals=l,T=l.stateNode,T.props=p,T.state=l.memoizedState,T.refs={},l1(l),L=u.contextType,T.context=typeof L=="object"&&L!==null?Hn(L):lc,T.state=l.memoizedState,L=u.getDerivedStateFromProps,typeof L=="function"&&(O1(l,u,L,p),T.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(L=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),L!==T.state&&D1.enqueueReplaceState(T,T.state,null),Vu(l,p,T,S),Wu(),T.state=l.memoizedState),typeof T.componentDidMount=="function"&&(l.flags|=4194308),p=!0}else if(i===null){T=l.stateNode;var G=l.memoizedProps,se=pl(u,G);T.props=se;var Se=T.context,Ie=u.contextType;L=lc,typeof Ie=="object"&&Ie!==null&&(L=Hn(Ie));var ze=u.getDerivedStateFromProps;Ie=typeof ze=="function"||typeof T.getSnapshotBeforeUpdate=="function",G=l.pendingProps!==G,Ie||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(G||Se!==L)&&xS(l,T,p,L),ao=!1;var Ce=l.memoizedState;T.state=Ce,Vu(l,p,T,S),Wu(),Se=l.memoizedState,G||Ce!==Se||ao?(typeof ze=="function"&&(O1(l,u,ze,p),Se=l.memoizedState),(se=ao||gS(l,u,se,p,Ce,Se,L))?(Ie||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(l.flags|=4194308)):(typeof T.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=p,l.memoizedState=Se),T.props=p,T.state=Se,T.context=L,p=se):(typeof T.componentDidMount=="function"&&(l.flags|=4194308),p=!1)}else{T=l.stateNode,c1(i,l),L=l.memoizedProps,Ie=pl(u,L),T.props=Ie,ze=l.pendingProps,Ce=T.context,Se=u.contextType,se=lc,typeof Se=="object"&&Se!==null&&(se=Hn(Se)),G=u.getDerivedStateFromProps,(Se=typeof G=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(L!==ze||Ce!==se)&&xS(l,T,p,se),ao=!1,Ce=l.memoizedState,T.state=Ce,Vu(l,p,T,S),Wu();var Ee=l.memoizedState;L!==ze||Ce!==Ee||ao||i!==null&&i.dependencies!==null&&_0(i.dependencies)?(typeof G=="function"&&(O1(l,u,G,p),Ee=l.memoizedState),(Ie=ao||gS(l,u,Ie,p,Ce,Ee,se)||i!==null&&i.dependencies!==null&&_0(i.dependencies))?(Se||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(p,Ee,se),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(p,Ee,se)),typeof T.componentDidUpdate=="function"&&(l.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof T.componentDidUpdate!="function"||L===i.memoizedProps&&Ce===i.memoizedState||(l.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&Ce===i.memoizedState||(l.flags|=1024),l.memoizedProps=p,l.memoizedState=Ee),T.props=p,T.state=Ee,T.context=se,p=Ie):(typeof T.componentDidUpdate!="function"||L===i.memoizedProps&&Ce===i.memoizedState||(l.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&Ce===i.memoizedState||(l.flags|=1024),p=!1)}return T=p,V0(i,l),p=(l.flags&128)!==0,T||p?(T=l.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:T.render(),l.flags|=1,i!==null&&p?(l.child=vc(l,i.child,null,S),l.child=vc(l,null,u,S)):Fn(i,l,u,S),l.memoizedState=T.state,i=l.child):i=Os(i,l,S),i}function MS(i,l,u,p){return ju(),l.flags|=256,Fn(i,l,u,p),l.child}var N1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function P1(i){return{baseLanes:i,cachePool:yb()}}function j1(i,l,u){return i=i!==null?i.childLanes&~u:0,l&&(i|=pi),i}function FS(i,l,u){var p=l.pendingProps,S=!1,T=(l.flags&128)!==0,L;if((L=T)||(L=i!==null&&i.memoizedState===null?!1:(vn.current&2)!==0),L&&(S=!0,l.flags&=-129),L=(l.flags&32)!==0,l.flags&=-33,i===null){if(fr){if(S?lo(l):co(),fr){var G=Vr,se;if(se=G){e:{for(se=G,G=Zi;se.nodeType!==8;){if(!G){G=null;break e}if(se=Ui(se.nextSibling),se===null){G=null;break e}}G=se}G!==null?(l.memoizedState={dehydrated:G,treeContext:sl!==null?{id:Cs,overflow:Es}:null,retryLane:536870912,hydrationErrors:null},se=Ua(18,null,null,0),se.stateNode=G,se.return=l,l.child=se,oa=l,Vr=null,se=!0):se=!1}se||cl(l)}if(G=l.memoizedState,G!==null&&(G=G.dehydrated,G!==null))return yg(G)?l.lanes=32:l.lanes=536870912,null;Rs(l)}return G=p.children,p=p.fallback,S?(co(),S=l.mode,G=G0({mode:"hidden",children:G},S),p=il(p,S,u,null),G.return=l,p.return=l,G.sibling=p,l.child=G,S=l.child,S.memoizedState=P1(u),S.childLanes=j1(i,L,u),l.memoizedState=N1,p):(lo(l),L1(l,G))}if(se=i.memoizedState,se!==null&&(G=se.dehydrated,G!==null)){if(T)l.flags&256?(lo(l),l.flags&=-257,l=I1(i,l,u)):l.memoizedState!==null?(co(),l.child=i.child,l.flags|=128,l=null):(co(),S=p.fallback,G=l.mode,p=G0({mode:"visible",children:p.children},G),S=il(S,G,u,null),S.flags|=2,p.return=l,S.return=l,p.sibling=S,l.child=p,vc(l,i.child,null,u),p=l.child,p.memoizedState=P1(u),p.childLanes=j1(i,L,u),l.memoizedState=N1,l=S);else if(lo(l),yg(G)){if(L=G.nextSibling&&G.nextSibling.dataset,L)var Se=L.dgst;L=Se,p=Error(n(419)),p.stack="",p.digest=L,Lu({value:p,source:null,stack:null}),l=I1(i,l,u)}else if(Cn||Iu(i,l,u,!1),L=(u&i.childLanes)!==0,Cn||L){if(L=Fr,L!==null&&(p=u&-u,p=(p&42)!==0?1:Ii(p),p=(p&(L.suspendedLanes|u))!==0?0:p,p!==0&&p!==se.retryLane))throw se.retryLane=p,oc(i,p),Ga(L,i,p),CS;G.data==="$?"||rg(),l=I1(i,l,u)}else G.data==="$?"?(l.flags|=192,l.child=i.child,l=null):(i=se.treeContext,Vr=Ui(G.nextSibling),oa=l,fr=!0,ll=null,Zi=!1,i!==null&&(fi[di++]=Cs,fi[di++]=Es,fi[di++]=sl,Cs=i.id,Es=i.overflow,sl=l),l=L1(l,p.children),l.flags|=4096);return l}return S?(co(),S=p.fallback,G=l.mode,se=i.child,Se=se.sibling,p=Ts(se,{mode:"hidden",children:p.children}),p.subtreeFlags=se.subtreeFlags&65011712,Se!==null?S=Ts(Se,S):(S=il(S,G,u,null),S.flags|=2),S.return=l,p.return=l,p.sibling=S,l.child=p,p=S,S=l.child,G=i.child.memoizedState,G===null?G=P1(u):(se=G.cachePool,se!==null?(Se=xn._currentValue,se=se.parent!==Se?{parent:Se,pool:Se}:se):se=yb(),G={baseLanes:G.baseLanes|u,cachePool:se}),S.memoizedState=G,S.childLanes=j1(i,L,u),l.memoizedState=N1,p):(lo(l),u=i.child,i=u.sibling,u=Ts(u,{mode:"visible",children:p.children}),u.return=l,u.sibling=null,i!==null&&(L=l.deletions,L===null?(l.deletions=[i],l.flags|=16):L.push(i)),l.child=u,l.memoizedState=null,u)}function L1(i,l){return l=G0({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function G0(i,l){return i=Ua(22,i,null,l),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function I1(i,l,u){return vc(l,i.child,null,u),i=L1(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function NS(i,l,u){i.lanes|=l;var p=i.alternate;p!==null&&(p.lanes|=l),r1(i.return,l,u)}function B1(i,l,u,p,S){var T=i.memoizedState;T===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:S}:(T.isBackwards=l,T.rendering=null,T.renderingStartTime=0,T.last=p,T.tail=u,T.tailMode=S)}function PS(i,l,u){var p=l.pendingProps,S=p.revealOrder,T=p.tail;if(Fn(i,l,p.children,u),p=vn.current,(p&2)!==0)p=p&1|2,l.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&NS(i,u,l);else if(i.tag===19)NS(i,u,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}p&=1}switch(K(vn,p),S){case"forwards":for(u=l.child,S=null;u!==null;)i=u.alternate,i!==null&&$0(i)===null&&(S=u),u=u.sibling;u=S,u===null?(S=l.child,l.child=null):(S=u.sibling,u.sibling=null),B1(l,!1,S,u,T);break;case"backwards":for(u=null,S=l.child,l.child=null;S!==null;){if(i=S.alternate,i!==null&&$0(i)===null){l.child=S;break}i=S.sibling,S.sibling=u,u=S,S=i}B1(l,!0,u,null,T);break;case"together":B1(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Os(i,l,u){if(i!==null&&(l.dependencies=i.dependencies),mo|=l.lanes,(u&l.childLanes)===0)if(i!==null){if(Iu(i,l,u,!1),(u&l.childLanes)===0)return null}else return null;if(i!==null&&l.child!==i.child)throw Error(n(153));if(l.child!==null){for(i=l.child,u=Ts(i,i.pendingProps),l.child=u,u.return=l;i.sibling!==null;)i=i.sibling,u=u.sibling=Ts(i,i.pendingProps),u.return=l;u.sibling=null}return l.child}function z1(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&_0(i)))}function a6(i,l,u){switch(l.tag){case 3:ye(l,l.stateNode.containerInfo),no(l,xn,i.memoizedState.cache),ju();break;case 27:case 5:he(l);break;case 4:ye(l,l.stateNode.containerInfo);break;case 10:no(l,l.type,l.memoizedProps.value);break;case 13:var p=l.memoizedState;if(p!==null)return p.dehydrated!==null?(lo(l),l.flags|=128,null):(u&l.child.childLanes)!==0?FS(i,l,u):(lo(l),i=Os(i,l,u),i!==null?i.sibling:null);lo(l);break;case 19:var S=(i.flags&128)!==0;if(p=(u&l.childLanes)!==0,p||(Iu(i,l,u,!1),p=(u&l.childLanes)!==0),S){if(p)return PS(i,l,u);l.flags|=128}if(S=l.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),K(vn,vn.current),p)break;return null;case 22:case 23:return l.lanes=0,AS(i,l,u);case 24:no(l,xn,i.memoizedState.cache)}return Os(i,l,u)}function jS(i,l,u){if(i!==null)if(i.memoizedProps!==l.pendingProps)Cn=!0;else{if(!z1(i,u)&&(l.flags&128)===0)return Cn=!1,a6(i,l,u);Cn=(i.flags&131072)!==0}else Cn=!1,fr&&(l.flags&1048576)!==0&&db(l,E0,l.index);switch(l.lanes=0,l.tag){case 16:e:{i=l.pendingProps;var p=l.elementType,S=p._init;if(p=S(p._payload),l.type=p,typeof p=="function")qm(p)?(i=pl(p,i),l.tag=1,l=DS(null,l,p,i,u)):(l.tag=0,l=F1(null,l,p,i,u));else{if(p!=null){if(S=p.$$typeof,S===D){l.tag=11,l=ES(null,l,p,i,u);break e}else if(S===O){l.tag=14,l=_S(null,l,p,i,u);break e}}throw l=Y(p)||p,Error(n(306,l,""))}}return l;case 0:return F1(i,l,l.type,l.pendingProps,u);case 1:return p=l.type,S=pl(p,l.pendingProps),DS(i,l,p,S,u);case 3:e:{if(ye(l,l.stateNode.containerInfo),i===null)throw Error(n(387));p=l.pendingProps;var T=l.memoizedState;S=T.element,c1(i,l),Vu(l,p,null,u);var L=l.memoizedState;if(p=L.cache,no(l,xn,p),p!==T.cache&&n1(l,[xn],u,!0),Wu(),p=L.element,T.isDehydrated)if(T={element:p,isDehydrated:!1,cache:L.cache},l.updateQueue.baseState=T,l.memoizedState=T,l.flags&256){l=MS(i,l,p,u);break e}else if(p!==S){S=ci(Error(n(424)),l),Lu(S),l=MS(i,l,p,u);break e}else{switch(i=l.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Vr=Ui(i.firstChild),oa=l,fr=!0,ll=null,Zi=!0,u=pS(l,null,p,u),l.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(ju(),p===S){l=Os(i,l,u);break e}Fn(i,l,p,u)}l=l.child}return l;case 26:return V0(i,l),i===null?(u=zw(l.type,null,l.pendingProps,null))?l.memoizedState=u:fr||(u=l.type,i=l.pendingProps,p=sh(ae.current).createElement(u),p[Re]=l,p[Fe]=i,Pn(p,u,i),de(p),l.stateNode=p):l.memoizedState=zw(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return he(l),i===null&&fr&&(p=l.stateNode=Lw(l.type,l.pendingProps,ae.current),oa=l,Zi=!0,S=Vr,yo(l.type)?(bg=S,Vr=Ui(p.firstChild)):Vr=S),Fn(i,l,l.pendingProps.children,u),V0(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&fr&&((S=p=Vr)&&(p=M6(p,l.type,l.pendingProps,Zi),p!==null?(l.stateNode=p,oa=l,Vr=Ui(p.firstChild),Zi=!1,S=!0):S=!1),S||cl(l)),he(l),S=l.type,T=l.pendingProps,L=i!==null?i.memoizedProps:null,p=T.children,gg(S,T)?p=null:L!==null&&gg(S,L)&&(l.flags|=32),l.memoizedState!==null&&(S=m1(i,l,K5,null,null,u),pf._currentValue=S),V0(i,l),Fn(i,l,p,u),l.child;case 6:return i===null&&fr&&((i=u=Vr)&&(u=F6(u,l.pendingProps,Zi),u!==null?(l.stateNode=u,oa=l,Vr=null,i=!0):i=!1),i||cl(l)),null;case 13:return FS(i,l,u);case 4:return ye(l,l.stateNode.containerInfo),p=l.pendingProps,i===null?l.child=vc(l,null,p,u):Fn(i,l,p,u),l.child;case 11:return ES(i,l,l.type,l.pendingProps,u);case 7:return Fn(i,l,l.pendingProps,u),l.child;case 8:return Fn(i,l,l.pendingProps.children,u),l.child;case 12:return Fn(i,l,l.pendingProps.children,u),l.child;case 10:return p=l.pendingProps,no(l,l.type,p.value),Fn(i,l,p.children,u),l.child;case 9:return S=l.type._context,p=l.pendingProps.children,fl(l),S=Hn(S),p=p(S),l.flags|=1,Fn(i,l,p,u),l.child;case 14:return _S(i,l,l.type,l.pendingProps,u);case 15:return kS(i,l,l.type,l.pendingProps,u);case 19:return PS(i,l,u);case 31:return p=l.pendingProps,u=l.mode,p={mode:p.mode,children:p.children},i===null?(u=G0(p,u),u.ref=l.ref,l.child=u,u.return=l,l=u):(u=Ts(i.child,p),u.ref=l.ref,l.child=u,u.return=l,l=u),l;case 22:return AS(i,l,u);case 24:return fl(l),p=Hn(xn),i===null?(S=s1(),S===null&&(S=Fr,T=a1(),S.pooledCache=T,T.refCount++,T!==null&&(S.pooledCacheLanes|=u),S=T),l.memoizedState={parent:p,cache:S},l1(l),no(l,xn,S)):((i.lanes&u)!==0&&(c1(i,l),Vu(l,null,null,u),Wu()),S=i.memoizedState,T=l.memoizedState,S.parent!==p?(S={parent:p,cache:p},l.memoizedState=S,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=S),no(l,xn,p)):(p=T.cache,no(l,xn,p),p!==S.cache&&n1(l,[xn],u,!0))),Fn(i,l,l.pendingProps.children,u),l.child;case 29:throw l.pendingProps}throw Error(n(156,l.tag))}function Ds(i){i.flags|=4}function LS(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Vw(l)){if(l=hi.current,l!==null&&((rr&4194048)===rr?Ji!==null:(rr&62914560)!==rr&&(rr&536870912)===0||l!==Ji))throw $u=o1,bb;i.flags|=8192}}function X0(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?Li():536870912,i.lanes|=l,wc|=l)}function Zu(i,l){if(!fr)switch(i.tailMode){case"hidden":l=i.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function Ur(i){var l=i.alternate!==null&&i.alternate.child===i.child,u=0,p=0;if(l)for(var S=i.child;S!==null;)u|=S.lanes|S.childLanes,p|=S.subtreeFlags&65011712,p|=S.flags&65011712,S.return=i,S=S.sibling;else for(S=i.child;S!==null;)u|=S.lanes|S.childLanes,p|=S.subtreeFlags,p|=S.flags,S.return=i,S=S.sibling;return i.subtreeFlags|=p,i.childLanes=u,l}function i6(i,l,u){var p=l.pendingProps;switch(Jm(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ur(l),null;case 1:return Ur(l),null;case 3:return u=l.stateNode,p=null,i!==null&&(p=i.memoizedState.cache),l.memoizedState.cache!==p&&(l.flags|=2048),ks(xn),Te(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Pu(l)?Ds(l):i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,mb())),Ur(l),null;case 26:return u=l.memoizedState,i===null?(Ds(l),u!==null?(Ur(l),LS(l,u)):(Ur(l),l.flags&=-16777217)):u?u!==i.memoizedState?(Ds(l),Ur(l),LS(l,u)):(Ur(l),l.flags&=-16777217):(i.memoizedProps!==p&&Ds(l),Ur(l),l.flags&=-16777217),null;case 27:Ve(l),u=ae.current;var S=l.type;if(i!==null&&l.stateNode!=null)i.memoizedProps!==p&&Ds(l);else{if(!p){if(l.stateNode===null)throw Error(n(166));return Ur(l),null}i=Q.current,Pu(l)?hb(l):(i=Lw(S,p,u),l.stateNode=i,Ds(l))}return Ur(l),null;case 5:if(Ve(l),u=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==p&&Ds(l);else{if(!p){if(l.stateNode===null)throw Error(n(166));return Ur(l),null}if(i=Q.current,Pu(l))hb(l);else{switch(S=sh(ae.current),i){case 1:i=S.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=S.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=S.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=S.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=S.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof p.is=="string"?S.createElement("select",{is:p.is}):S.createElement("select"),p.multiple?i.multiple=!0:p.size&&(i.size=p.size);break;default:i=typeof p.is=="string"?S.createElement(u,{is:p.is}):S.createElement(u)}}i[Re]=l,i[Fe]=p;e:for(S=l.child;S!==null;){if(S.tag===5||S.tag===6)i.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===l)break e;for(;S.sibling===null;){if(S.return===null||S.return===l)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}l.stateNode=i;e:switch(Pn(i,u,p),u){case"button":case"input":case"select":case"textarea":i=!!p.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ds(l)}}return Ur(l),l.flags&=-16777217,null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==p&&Ds(l);else{if(typeof p!="string"&&l.stateNode===null)throw Error(n(166));if(i=ae.current,Pu(l)){if(i=l.stateNode,u=l.memoizedProps,p=null,S=oa,S!==null)switch(S.tag){case 27:case 5:p=S.memoizedProps}i[Re]=l,i=!!(i.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||Ow(i.nodeValue,u)),i||cl(l)}else i=sh(i).createTextNode(p),i[Re]=l,l.stateNode=i}return Ur(l),null;case 13:if(p=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(S=Pu(l),p!==null&&p.dehydrated!==null){if(i===null){if(!S)throw Error(n(318));if(S=l.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(n(317));S[Re]=l}else ju(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Ur(l),S=!1}else S=mb(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=S),S=!0;if(!S)return l.flags&256?(Rs(l),l):(Rs(l),null)}if(Rs(l),(l.flags&128)!==0)return l.lanes=u,l;if(u=p!==null,i=i!==null&&i.memoizedState!==null,u){p=l.child,S=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(S=p.alternate.memoizedState.cachePool.pool);var T=null;p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(T=p.memoizedState.cachePool.pool),T!==S&&(p.flags|=2048)}return u!==i&&u&&(l.child.flags|=8192),X0(l,l.updateQueue),Ur(l),null;case 4:return Te(),i===null&&fg(l.stateNode.containerInfo),Ur(l),null;case 10:return ks(l.type),Ur(l),null;case 19:if(z(vn),S=l.memoizedState,S===null)return Ur(l),null;if(p=(l.flags&128)!==0,T=S.rendering,T===null)if(p)Zu(S,!1);else{if(Gr!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(T=$0(i),T!==null){for(l.flags|=128,Zu(S,!1),i=T.updateQueue,l.updateQueue=i,X0(l,i),l.subtreeFlags=0,i=u,u=l.child;u!==null;)fb(u,i),u=u.sibling;return K(vn,vn.current&1|2),l.child}i=i.sibling}S.tail!==null&&Ae()>K0&&(l.flags|=128,p=!0,Zu(S,!1),l.lanes=4194304)}else{if(!p)if(i=$0(T),i!==null){if(l.flags|=128,p=!0,i=i.updateQueue,l.updateQueue=i,X0(l,i),Zu(S,!0),S.tail===null&&S.tailMode==="hidden"&&!T.alternate&&!fr)return Ur(l),null}else 2*Ae()-S.renderingStartTime>K0&&u!==536870912&&(l.flags|=128,p=!0,Zu(S,!1),l.lanes=4194304);S.isBackwards?(T.sibling=l.child,l.child=T):(i=S.last,i!==null?i.sibling=T:l.child=T,S.last=T)}return S.tail!==null?(l=S.tail,S.rendering=l,S.tail=l.sibling,S.renderingStartTime=Ae(),l.sibling=null,i=vn.current,K(vn,p?i&1|2:i&1),l):(Ur(l),null);case 22:case 23:return Rs(l),h1(),p=l.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(l.flags|=8192):p&&(l.flags|=8192),p?(u&536870912)!==0&&(l.flags&128)===0&&(Ur(l),l.subtreeFlags&6&&(l.flags|=8192)):Ur(l),u=l.updateQueue,u!==null&&X0(l,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==u&&(l.flags|=2048),i!==null&&z(dl),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),l.memoizedState.cache!==u&&(l.flags|=2048),ks(xn),Ur(l),null;case 25:return null;case 30:return null}throw Error(n(156,l.tag))}function s6(i,l){switch(Jm(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return ks(xn),Te(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return Ve(l),null;case 13:if(Rs(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(n(340));ju()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return z(vn),null;case 4:return Te(),null;case 10:return ks(l.type),null;case 22:case 23:return Rs(l),h1(),i!==null&&z(dl),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return ks(xn),null;case 25:return null;default:return null}}function IS(i,l){switch(Jm(l),l.tag){case 3:ks(xn),Te();break;case 26:case 27:case 5:Ve(l);break;case 4:Te();break;case 13:Rs(l);break;case 19:z(vn);break;case 10:ks(l.type);break;case 22:case 23:Rs(l),h1(),i!==null&&z(dl);break;case 24:ks(xn)}}function Ju(i,l){try{var u=l.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var S=p.next;u=S;do{if((u.tag&i)===i){p=void 0;var T=u.create,L=u.inst;p=T(),L.destroy=p}u=u.next}while(u!==S)}}catch(G){Or(l,l.return,G)}}function uo(i,l,u){try{var p=l.updateQueue,S=p!==null?p.lastEffect:null;if(S!==null){var T=S.next;p=T;do{if((p.tag&i)===i){var L=p.inst,G=L.destroy;if(G!==void 0){L.destroy=void 0,S=l;var se=u,Se=G;try{Se()}catch(Ie){Or(S,se,Ie)}}}p=p.next}while(p!==T)}}catch(Ie){Or(l,l.return,Ie)}}function BS(i){var l=i.updateQueue;if(l!==null){var u=i.stateNode;try{_b(l,u)}catch(p){Or(i,i.return,p)}}}function zS(i,l,u){u.props=pl(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(p){Or(i,l,p)}}function ef(i,l){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var p=i.stateNode;break;case 30:p=i.stateNode;break;default:p=i.stateNode}typeof u=="function"?i.refCleanup=u(p):u.current=p}}catch(S){Or(i,l,S)}}function es(i,l){var u=i.ref,p=i.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(S){Or(i,l,S)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(S){Or(i,l,S)}else u.current=null}function US(i){var l=i.type,u=i.memoizedProps,p=i.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(S){Or(i,i.return,S)}}function U1(i,l,u){try{var p=i.stateNode;k6(p,i.type,u,l),p[Fe]=l}catch(S){Or(i,i.return,S)}}function $S(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&yo(i.type)||i.tag===4}function $1(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||$S(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&yo(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function H1(i,l,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,l?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,l):(l=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,l.appendChild(i),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=ih));else if(p!==4&&(p===27&&yo(i.type)&&(u=i.stateNode,l=null),i=i.child,i!==null))for(H1(i,l,u),i=i.sibling;i!==null;)H1(i,l,u),i=i.sibling}function Y0(i,l,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,l?u.insertBefore(i,l):u.appendChild(i);else if(p!==4&&(p===27&&yo(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Y0(i,l,u),i=i.sibling;i!==null;)Y0(i,l,u),i=i.sibling}function HS(i){var l=i.stateNode,u=i.memoizedProps;try{for(var p=i.type,S=l.attributes;S.length;)l.removeAttributeNode(S[0]);Pn(l,p,u),l[Re]=i,l[Fe]=u}catch(T){Or(i,i.return,T)}}var Ms=!1,tn=!1,W1=!1,WS=typeof WeakSet=="function"?WeakSet:Set,En=null;function o6(i,l){if(i=i.containerInfo,pg=dh,i=tb(i),$m(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var S=p.anchorOffset,T=p.focusNode;p=p.focusOffset;try{u.nodeType,T.nodeType}catch{u=null;break e}var L=0,G=-1,se=-1,Se=0,Ie=0,ze=i,Ce=null;t:for(;;){for(var Ee;ze!==u||S!==0&&ze.nodeType!==3||(G=L+S),ze!==T||p!==0&&ze.nodeType!==3||(se=L+p),ze.nodeType===3&&(L+=ze.nodeValue.length),(Ee=ze.firstChild)!==null;)Ce=ze,ze=Ee;for(;;){if(ze===i)break t;if(Ce===u&&++Se===S&&(G=L),Ce===T&&++Ie===p&&(se=L),(Ee=ze.nextSibling)!==null)break;ze=Ce,Ce=ze.parentNode}ze=Ee}u=G===-1||se===-1?null:{start:G,end:se}}else u=null}u=u||{start:0,end:0}}else u=null;for(mg={focusedElem:i,selectionRange:u},dh=!1,En=l;En!==null;)if(l=En,i=l.child,(l.subtreeFlags&1024)!==0&&i!==null)i.return=l,En=i;else for(;En!==null;){switch(l=En,T=l.alternate,i=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&T!==null){i=void 0,u=l,S=T.memoizedProps,T=T.memoizedState,p=u.stateNode;try{var jt=pl(u.type,S,u.elementType===u.type);i=p.getSnapshotBeforeUpdate(jt,T),p.__reactInternalSnapshotBeforeUpdate=i}catch(Ot){Or(u,u.return,Ot)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,u=i.nodeType,u===9)vg(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":vg(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(n(163))}if(i=l.sibling,i!==null){i.return=l.return,En=i;break}En=l.return}}function VS(i,l,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:fo(i,u),p&4&&Ju(5,u);break;case 1:if(fo(i,u),p&4)if(i=u.stateNode,l===null)try{i.componentDidMount()}catch(L){Or(u,u.return,L)}else{var S=pl(u.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(S,l,i.__reactInternalSnapshotBeforeUpdate)}catch(L){Or(u,u.return,L)}}p&64&&BS(u),p&512&&ef(u,u.return);break;case 3:if(fo(i,u),p&64&&(i=u.updateQueue,i!==null)){if(l=null,u.child!==null)switch(u.child.tag){case 27:case 5:l=u.child.stateNode;break;case 1:l=u.child.stateNode}try{_b(i,l)}catch(L){Or(u,u.return,L)}}break;case 27:l===null&&p&4&&HS(u);case 26:case 5:fo(i,u),l===null&&p&4&&US(u),p&512&&ef(u,u.return);break;case 12:fo(i,u);break;case 13:fo(i,u),p&4&&YS(i,u),p&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=g6.bind(null,u),N6(i,u))));break;case 22:if(p=u.memoizedState!==null||Ms,!p){l=l!==null&&l.memoizedState!==null||tn,S=Ms;var T=tn;Ms=p,(tn=l)&&!T?ho(i,u,(u.subtreeFlags&8772)!==0):fo(i,u),Ms=S,tn=T}break;case 30:break;default:fo(i,u)}}function GS(i){var l=i.alternate;l!==null&&(i.alternate=null,GS(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&X(l)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Ir=null,Sa=!1;function Fs(i,l,u){for(u=u.child;u!==null;)XS(i,l,u),u=u.sibling}function XS(i,l,u){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Et,u)}catch{}switch(u.tag){case 26:tn||es(u,l),Fs(i,l,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:tn||es(u,l);var p=Ir,S=Sa;yo(u.type)&&(Ir=u.stateNode,Sa=!1),Fs(i,l,u),uf(u.stateNode),Ir=p,Sa=S;break;case 5:tn||es(u,l);case 6:if(p=Ir,S=Sa,Ir=null,Fs(i,l,u),Ir=p,Sa=S,Ir!==null)if(Sa)try{(Ir.nodeType===9?Ir.body:Ir.nodeName==="HTML"?Ir.ownerDocument.body:Ir).removeChild(u.stateNode)}catch(T){Or(u,l,T)}else try{Ir.removeChild(u.stateNode)}catch(T){Or(u,l,T)}break;case 18:Ir!==null&&(Sa?(i=Ir,Pw(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),vf(i)):Pw(Ir,u.stateNode));break;case 4:p=Ir,S=Sa,Ir=u.stateNode.containerInfo,Sa=!0,Fs(i,l,u),Ir=p,Sa=S;break;case 0:case 11:case 14:case 15:tn||uo(2,u,l),tn||uo(4,u,l),Fs(i,l,u);break;case 1:tn||(es(u,l),p=u.stateNode,typeof p.componentWillUnmount=="function"&&zS(u,l,p)),Fs(i,l,u);break;case 21:Fs(i,l,u);break;case 22:tn=(p=tn)||u.memoizedState!==null,Fs(i,l,u),tn=p;break;default:Fs(i,l,u)}}function YS(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{vf(i)}catch(u){Or(l,l.return,u)}}function l6(i){switch(i.tag){case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new WS),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new WS),l;default:throw Error(n(435,i.tag))}}function V1(i,l){var u=l6(i);l.forEach(function(p){var S=x6.bind(null,i,p);u.has(p)||(u.add(p),p.then(S,S))})}function $a(i,l){var u=l.deletions;if(u!==null)for(var p=0;p<u.length;p++){var S=u[p],T=i,L=l,G=L;e:for(;G!==null;){switch(G.tag){case 27:if(yo(G.type)){Ir=G.stateNode,Sa=!1;break e}break;case 5:Ir=G.stateNode,Sa=!1;break e;case 3:case 4:Ir=G.stateNode.containerInfo,Sa=!0;break e}G=G.return}if(Ir===null)throw Error(n(160));XS(T,L,S),Ir=null,Sa=!1,T=S.alternate,T!==null&&(T.return=null),S.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)qS(l,i),l=l.sibling}var zi=null;function qS(i,l){var u=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:$a(l,i),Ha(i),p&4&&(uo(3,i,i.return),Ju(3,i),uo(5,i,i.return));break;case 1:$a(l,i),Ha(i),p&512&&(tn||u===null||es(u,u.return)),p&64&&Ms&&(i=i.updateQueue,i!==null&&(p=i.callbacks,p!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var S=zi;if($a(l,i),Ha(i),p&512&&(tn||u===null||es(u,u.return)),p&4){var T=u!==null?u.memoizedState:null;if(p=i.memoizedState,u===null)if(p===null)if(i.stateNode===null){e:{p=i.type,u=i.memoizedProps,S=S.ownerDocument||S;t:switch(p){case"title":T=S.getElementsByTagName("title")[0],(!T||T[V]||T[Re]||T.namespaceURI==="http://www.w3.org/2000/svg"||T.hasAttribute("itemprop"))&&(T=S.createElement(p),S.head.insertBefore(T,S.querySelector("head > title"))),Pn(T,p,u),T[Re]=i,de(T),p=T;break e;case"link":var L=Hw("link","href",S).get(p+(u.href||""));if(L){for(var G=0;G<L.length;G++)if(T=L[G],T.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&T.getAttribute("rel")===(u.rel==null?null:u.rel)&&T.getAttribute("title")===(u.title==null?null:u.title)&&T.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){L.splice(G,1);break t}}T=S.createElement(p),Pn(T,p,u),S.head.appendChild(T);break;case"meta":if(L=Hw("meta","content",S).get(p+(u.content||""))){for(G=0;G<L.length;G++)if(T=L[G],T.getAttribute("content")===(u.content==null?null:""+u.content)&&T.getAttribute("name")===(u.name==null?null:u.name)&&T.getAttribute("property")===(u.property==null?null:u.property)&&T.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&T.getAttribute("charset")===(u.charSet==null?null:u.charSet)){L.splice(G,1);break t}}T=S.createElement(p),Pn(T,p,u),S.head.appendChild(T);break;default:throw Error(n(468,p))}T[Re]=i,de(T),p=T}i.stateNode=p}else Ww(S,i.type,i.stateNode);else i.stateNode=$w(S,p,i.memoizedProps);else T!==p?(T===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):T.count--,p===null?Ww(S,i.type,i.stateNode):$w(S,p,i.memoizedProps)):p===null&&i.stateNode!==null&&U1(i,i.memoizedProps,u.memoizedProps)}break;case 27:$a(l,i),Ha(i),p&512&&(tn||u===null||es(u,u.return)),u!==null&&p&4&&U1(i,i.memoizedProps,u.memoizedProps);break;case 5:if($a(l,i),Ha(i),p&512&&(tn||u===null||es(u,u.return)),i.flags&32){S=i.stateNode;try{ec(S,"")}catch(Ee){Or(i,i.return,Ee)}}p&4&&i.stateNode!=null&&(S=i.memoizedProps,U1(i,S,u!==null?u.memoizedProps:S)),p&1024&&(W1=!0);break;case 6:if($a(l,i),Ha(i),p&4){if(i.stateNode===null)throw Error(n(162));p=i.memoizedProps,u=i.stateNode;try{u.nodeValue=p}catch(Ee){Or(i,i.return,Ee)}}break;case 3:if(ch=null,S=zi,zi=oh(l.containerInfo),$a(l,i),zi=S,Ha(i),p&4&&u!==null&&u.memoizedState.isDehydrated)try{vf(l.containerInfo)}catch(Ee){Or(i,i.return,Ee)}W1&&(W1=!1,KS(i));break;case 4:p=zi,zi=oh(i.stateNode.containerInfo),$a(l,i),Ha(i),zi=p;break;case 12:$a(l,i),Ha(i);break;case 13:$a(l,i),Ha(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Q1=Ae()),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,V1(i,p)));break;case 22:S=i.memoizedState!==null;var se=u!==null&&u.memoizedState!==null,Se=Ms,Ie=tn;if(Ms=Se||S,tn=Ie||se,$a(l,i),tn=Ie,Ms=Se,Ha(i),p&8192)e:for(l=i.stateNode,l._visibility=S?l._visibility&-2:l._visibility|1,S&&(u===null||se||Ms||tn||ml(i)),u=null,l=i;;){if(l.tag===5||l.tag===26){if(u===null){se=u=l;try{if(T=se.stateNode,S)L=T.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{G=se.stateNode;var ze=se.memoizedProps.style,Ce=ze!=null&&ze.hasOwnProperty("display")?ze.display:null;G.style.display=Ce==null||typeof Ce=="boolean"?"":(""+Ce).trim()}}catch(Ee){Or(se,se.return,Ee)}}}else if(l.tag===6){if(u===null){se=l;try{se.stateNode.nodeValue=S?"":se.memoizedProps}catch(Ee){Or(se,se.return,Ee)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===i)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break e;for(;l.sibling===null;){if(l.return===null||l.return===i)break e;u===l&&(u=null),l=l.return}u===l&&(u=null),l.sibling.return=l.return,l=l.sibling}p&4&&(p=i.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,V1(i,u))));break;case 19:$a(l,i),Ha(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,V1(i,p)));break;case 30:break;case 21:break;default:$a(l,i),Ha(i)}}function Ha(i){var l=i.flags;if(l&2){try{for(var u,p=i.return;p!==null;){if($S(p)){u=p;break}p=p.return}if(u==null)throw Error(n(160));switch(u.tag){case 27:var S=u.stateNode,T=$1(i);Y0(i,T,S);break;case 5:var L=u.stateNode;u.flags&32&&(ec(L,""),u.flags&=-33);var G=$1(i);Y0(i,G,L);break;case 3:case 4:var se=u.stateNode.containerInfo,Se=$1(i);H1(i,Se,se);break;default:throw Error(n(161))}}catch(Ie){Or(i,i.return,Ie)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function KS(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;KS(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),i=i.sibling}}function fo(i,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)VS(i,l.alternate,l),l=l.sibling}function ml(i){for(i=i.child;i!==null;){var l=i;switch(l.tag){case 0:case 11:case 14:case 15:uo(4,l,l.return),ml(l);break;case 1:es(l,l.return);var u=l.stateNode;typeof u.componentWillUnmount=="function"&&zS(l,l.return,u),ml(l);break;case 27:uf(l.stateNode);case 26:case 5:es(l,l.return),ml(l);break;case 22:l.memoizedState===null&&ml(l);break;case 30:ml(l);break;default:ml(l)}i=i.sibling}}function ho(i,l,u){for(u=u&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var p=l.alternate,S=i,T=l,L=T.flags;switch(T.tag){case 0:case 11:case 15:ho(S,T,u),Ju(4,T);break;case 1:if(ho(S,T,u),p=T,S=p.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(Se){Or(p,p.return,Se)}if(p=T,S=p.updateQueue,S!==null){var G=p.stateNode;try{var se=S.shared.hiddenCallbacks;if(se!==null)for(S.shared.hiddenCallbacks=null,S=0;S<se.length;S++)Eb(se[S],G)}catch(Se){Or(p,p.return,Se)}}u&&L&64&&BS(T),ef(T,T.return);break;case 27:HS(T);case 26:case 5:ho(S,T,u),u&&p===null&&L&4&&US(T),ef(T,T.return);break;case 12:ho(S,T,u);break;case 13:ho(S,T,u),u&&L&4&&YS(S,T);break;case 22:T.memoizedState===null&&ho(S,T,u),ef(T,T.return);break;case 30:break;default:ho(S,T,u)}l=l.sibling}}function G1(i,l){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Bu(u))}function X1(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Bu(i))}function ts(i,l,u,p){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)QS(i,l,u,p),l=l.sibling}function QS(i,l,u,p){var S=l.flags;switch(l.tag){case 0:case 11:case 15:ts(i,l,u,p),S&2048&&Ju(9,l);break;case 1:ts(i,l,u,p);break;case 3:ts(i,l,u,p),S&2048&&(i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Bu(i)));break;case 12:if(S&2048){ts(i,l,u,p),i=l.stateNode;try{var T=l.memoizedProps,L=T.id,G=T.onPostCommit;typeof G=="function"&&G(L,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(se){Or(l,l.return,se)}}else ts(i,l,u,p);break;case 13:ts(i,l,u,p);break;case 23:break;case 22:T=l.stateNode,L=l.alternate,l.memoizedState!==null?T._visibility&2?ts(i,l,u,p):tf(i,l):T._visibility&2?ts(i,l,u,p):(T._visibility|=2,yc(i,l,u,p,(l.subtreeFlags&10256)!==0)),S&2048&&G1(L,l);break;case 24:ts(i,l,u,p),S&2048&&X1(l.alternate,l);break;default:ts(i,l,u,p)}}function yc(i,l,u,p,S){for(S=S&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var T=i,L=l,G=u,se=p,Se=L.flags;switch(L.tag){case 0:case 11:case 15:yc(T,L,G,se,S),Ju(8,L);break;case 23:break;case 22:var Ie=L.stateNode;L.memoizedState!==null?Ie._visibility&2?yc(T,L,G,se,S):tf(T,L):(Ie._visibility|=2,yc(T,L,G,se,S)),S&&Se&2048&&G1(L.alternate,L);break;case 24:yc(T,L,G,se,S),S&&Se&2048&&X1(L.alternate,L);break;default:yc(T,L,G,se,S)}l=l.sibling}}function tf(i,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var u=i,p=l,S=p.flags;switch(p.tag){case 22:tf(u,p),S&2048&&G1(p.alternate,p);break;case 24:tf(u,p),S&2048&&X1(p.alternate,p);break;default:tf(u,p)}l=l.sibling}}var rf=8192;function bc(i){if(i.subtreeFlags&rf)for(i=i.child;i!==null;)ZS(i),i=i.sibling}function ZS(i){switch(i.tag){case 26:bc(i),i.flags&rf&&i.memoizedState!==null&&X6(zi,i.memoizedState,i.memoizedProps);break;case 5:bc(i);break;case 3:case 4:var l=zi;zi=oh(i.stateNode.containerInfo),bc(i),zi=l;break;case 22:i.memoizedState===null&&(l=i.alternate,l!==null&&l.memoizedState!==null?(l=rf,rf=16777216,bc(i),rf=l):bc(i));break;default:bc(i)}}function JS(i){var l=i.alternate;if(l!==null&&(i=l.child,i!==null)){l.child=null;do l=i.sibling,i.sibling=null,i=l;while(i!==null)}}function nf(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var p=l[u];En=p,tw(p,i)}JS(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)ew(i),i=i.sibling}function ew(i){switch(i.tag){case 0:case 11:case 15:nf(i),i.flags&2048&&uo(9,i,i.return);break;case 3:nf(i);break;case 12:nf(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,q0(i)):nf(i);break;default:nf(i)}}function q0(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var p=l[u];En=p,tw(p,i)}JS(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:uo(8,l,l.return),q0(l);break;case 22:u=l.stateNode,u._visibility&2&&(u._visibility&=-3,q0(l));break;default:q0(l)}i=i.sibling}}function tw(i,l){for(;En!==null;){var u=En;switch(u.tag){case 0:case 11:case 15:uo(8,u,l);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Bu(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,En=p;else e:for(u=i;En!==null;){p=En;var S=p.sibling,T=p.return;if(GS(p),p===u){En=null;break e}if(S!==null){S.return=T,En=S;break e}En=T}}}var c6={getCacheForType:function(i){var l=Hn(xn),u=l.data.get(i);return u===void 0&&(u=i(),l.data.set(i,u)),u}},u6=typeof WeakMap=="function"?WeakMap:Map,gr=0,Fr=null,qt=null,rr=0,xr=0,Wa=null,po=!1,Sc=!1,Y1=!1,Ns=0,Gr=0,mo=0,gl=0,q1=0,pi=0,wc=0,af=null,wa=null,K1=!1,Q1=0,K0=1/0,Q0=null,go=null,Nn=0,xo=null,Tc=null,Cc=0,Z1=0,J1=null,rw=null,sf=0,eg=null;function Va(){if((gr&2)!==0&&rr!==0)return rr&-rr;if(B.T!==null){var i=fc;return i!==0?i:og()}return le()}function nw(){pi===0&&(pi=(rr&536870912)===0||fr?gn():536870912);var i=hi.current;return i!==null&&(i.flags|=32),pi}function Ga(i,l,u){(i===Fr&&(xr===2||xr===9)||i.cancelPendingCommit!==null)&&(Ec(i,0),vo(i,rr,pi,!1)),sa(i,u),((gr&2)===0||i!==Fr)&&(i===Fr&&((gr&2)===0&&(gl|=u),Gr===4&&vo(i,rr,pi,!1)),rs(i))}function aw(i,l,u){if((gr&6)!==0)throw Error(n(327));var p=!u&&(l&124)===0&&(l&i.expiredLanes)===0||tr(i,l),S=p?h6(i,l):ng(i,l,!0),T=p;do{if(S===0){Sc&&!p&&vo(i,l,0,!1);break}else{if(u=i.current.alternate,T&&!f6(u)){S=ng(i,l,!1),T=!1;continue}if(S===2){if(T=l,i.errorRecoveryDisabledLanes&T)var L=0;else L=i.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){l=L;e:{var G=i;S=af;var se=G.current.memoizedState.isDehydrated;if(se&&(Ec(G,L).flags|=256),L=ng(G,L,!1),L!==2){if(Y1&&!se){G.errorRecoveryDisabledLanes|=T,gl|=T,S=4;break e}T=wa,wa=S,T!==null&&(wa===null?wa=T:wa.push.apply(wa,T))}S=L}if(T=!1,S!==2)continue}}if(S===1){Ec(i,0),vo(i,l,0,!0);break}e:{switch(p=i,T=S,T){case 0:case 1:throw Error(n(345));case 4:if((l&4194048)!==l)break;case 6:vo(p,l,pi,!po);break e;case 2:wa=null;break;case 3:case 5:break;default:throw Error(n(329))}if((l&62914560)===l&&(S=Q1+300-Ae(),10<S)){if(vo(p,l,pi,!po),$t(p,0,!0)!==0)break e;p.timeoutHandle=Fw(iw.bind(null,p,u,wa,Q0,K1,l,pi,gl,wc,po,T,2,-0,0),S);break e}iw(p,u,wa,Q0,K1,l,pi,gl,wc,po,T,0,-0,0)}}break}while(!0);rs(i)}function iw(i,l,u,p,S,T,L,G,se,Se,Ie,ze,Ce,Ee){if(i.timeoutHandle=-1,ze=l.subtreeFlags,(ze&8192||(ze&16785408)===16785408)&&(hf={stylesheets:null,count:0,unsuspend:G6},ZS(l),ze=Y6(),ze!==null)){i.cancelPendingCommit=ze(dw.bind(null,i,l,T,u,p,S,L,G,se,Ie,1,Ce,Ee)),vo(i,T,L,!Se);return}dw(i,l,T,u,p,S,L,G,se)}function f6(i){for(var l=i;;){var u=l.tag;if((u===0||u===11||u===15)&&l.flags&16384&&(u=l.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var S=u[p],T=S.getSnapshot;S=S.value;try{if(!za(T(),S))return!1}catch{return!1}}if(u=l.child,l.subtreeFlags&16384&&u!==null)u.return=l,l=u;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function vo(i,l,u,p){l&=~q1,l&=~gl,i.suspendedLanes|=l,i.pingedLanes&=~l,p&&(i.warmLanes|=l),p=i.expirationTimes;for(var S=l;0<S;){var T=31-At(S),L=1<<T;p[T]=-1,S&=~L}u!==0&&La(i,u,l)}function Z0(){return(gr&6)===0?(of(0),!1):!0}function tg(){if(qt!==null){if(xr===0)var i=qt.return;else i=qt,_s=ul=null,v1(i),xc=null,Ku=0,i=qt;for(;i!==null;)IS(i.alternate,i),i=i.return;qt=null}}function Ec(i,l){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,R6(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),tg(),Fr=i,qt=u=Ts(i.current,null),rr=l,xr=0,Wa=null,po=!1,Sc=tr(i,l),Y1=!1,wc=pi=q1=gl=mo=Gr=0,wa=af=null,K1=!1,(l&8)!==0&&(l|=l&32);var p=i.entangledLanes;if(p!==0)for(i=i.entanglements,p&=l;0<p;){var S=31-At(p),T=1<<S;l|=i[S],p&=~T}return Ns=l,b0(),u}function sw(i,l){Vt=null,B.H=B0,l===Uu||l===R0?(l=Tb(),xr=3):l===bb?(l=Tb(),xr=4):xr=l===CS?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Wa=l,qt===null&&(Gr=1,W0(i,ci(l,i.current)))}function ow(){var i=B.H;return B.H=B0,i===null?B0:i}function lw(){var i=B.A;return B.A=c6,i}function rg(){Gr=4,po||(rr&4194048)!==rr&&hi.current!==null||(Sc=!0),(mo&134217727)===0&&(gl&134217727)===0||Fr===null||vo(Fr,rr,pi,!1)}function ng(i,l,u){var p=gr;gr|=2;var S=ow(),T=lw();(Fr!==i||rr!==l)&&(Q0=null,Ec(i,l)),l=!1;var L=Gr;e:do try{if(xr!==0&&qt!==null){var G=qt,se=Wa;switch(xr){case 8:tg(),L=6;break e;case 3:case 2:case 9:case 6:hi.current===null&&(l=!0);var Se=xr;if(xr=0,Wa=null,_c(i,G,se,Se),u&&Sc){L=0;break e}break;default:Se=xr,xr=0,Wa=null,_c(i,G,se,Se)}}d6(),L=Gr;break}catch(Ie){sw(i,Ie)}while(!0);return l&&i.shellSuspendCounter++,_s=ul=null,gr=p,B.H=S,B.A=T,qt===null&&(Fr=null,rr=0,b0()),L}function d6(){for(;qt!==null;)cw(qt)}function h6(i,l){var u=gr;gr|=2;var p=ow(),S=lw();Fr!==i||rr!==l?(Q0=null,K0=Ae()+500,Ec(i,l)):Sc=tr(i,l);e:do try{if(xr!==0&&qt!==null){l=qt;var T=Wa;t:switch(xr){case 1:xr=0,Wa=null,_c(i,l,T,1);break;case 2:case 9:if(Sb(T)){xr=0,Wa=null,uw(l);break}l=function(){xr!==2&&xr!==9||Fr!==i||(xr=7),rs(i)},T.then(l,l);break e;case 3:xr=7;break e;case 4:xr=5;break e;case 7:Sb(T)?(xr=0,Wa=null,uw(l)):(xr=0,Wa=null,_c(i,l,T,7));break;case 5:var L=null;switch(qt.tag){case 26:L=qt.memoizedState;case 5:case 27:var G=qt;if(!L||Vw(L)){xr=0,Wa=null;var se=G.sibling;if(se!==null)qt=se;else{var Se=G.return;Se!==null?(qt=Se,J0(Se)):qt=null}break t}}xr=0,Wa=null,_c(i,l,T,5);break;case 6:xr=0,Wa=null,_c(i,l,T,6);break;case 8:tg(),Gr=6;break e;default:throw Error(n(462))}}p6();break}catch(Ie){sw(i,Ie)}while(!0);return _s=ul=null,B.H=p,B.A=S,gr=u,qt!==null?0:(Fr=null,rr=0,b0(),Gr)}function p6(){for(;qt!==null&&!ve();)cw(qt)}function cw(i){var l=jS(i.alternate,i,Ns);i.memoizedProps=i.pendingProps,l===null?J0(i):qt=l}function uw(i){var l=i,u=l.alternate;switch(l.tag){case 15:case 0:l=OS(u,l,l.pendingProps,l.type,void 0,rr);break;case 11:l=OS(u,l,l.pendingProps,l.type.render,l.ref,rr);break;case 5:v1(l);default:IS(u,l),l=qt=fb(l,Ns),l=jS(u,l,Ns)}i.memoizedProps=i.pendingProps,l===null?J0(i):qt=l}function _c(i,l,u,p){_s=ul=null,v1(l),xc=null,Ku=0;var S=l.return;try{if(n6(i,S,l,u,rr)){Gr=1,W0(i,ci(u,i.current)),qt=null;return}}catch(T){if(S!==null)throw qt=S,T;Gr=1,W0(i,ci(u,i.current)),qt=null;return}l.flags&32768?(fr||p===1?i=!0:Sc||(rr&536870912)!==0?i=!1:(po=i=!0,(p===2||p===9||p===3||p===6)&&(p=hi.current,p!==null&&p.tag===13&&(p.flags|=16384))),fw(l,i)):J0(l)}function J0(i){var l=i;do{if((l.flags&32768)!==0){fw(l,po);return}i=l.return;var u=i6(l.alternate,l,Ns);if(u!==null){qt=u;return}if(l=l.sibling,l!==null){qt=l;return}qt=l=i}while(l!==null);Gr===0&&(Gr=5)}function fw(i,l){do{var u=s6(i.alternate,i);if(u!==null){u.flags&=32767,qt=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!l&&(i=i.sibling,i!==null)){qt=i;return}qt=i=u}while(i!==null);Gr=6,qt=null}function dw(i,l,u,p,S,T,L,G,se){i.cancelPendingCommit=null;do eh();while(Nn!==0);if((gr&6)!==0)throw Error(n(327));if(l!==null){if(l===i.current)throw Error(n(177));if(T=l.lanes|l.childLanes,T|=Xm,ja(i,u,T,L,G,se),i===Fr&&(qt=Fr=null,rr=0),Tc=l,xo=i,Cc=u,Z1=T,J1=S,rw=p,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,v6(mt,function(){return xw(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||p){p=B.T,B.T=null,S=ne.p,ne.p=2,L=gr,gr|=4;try{o6(i,l,u)}finally{gr=L,ne.p=S,B.T=p}}Nn=1,hw(),pw(),mw()}}function hw(){if(Nn===1){Nn=0;var i=xo,l=Tc,u=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||u){u=B.T,B.T=null;var p=ne.p;ne.p=2;var S=gr;gr|=4;try{qS(l,i);var T=mg,L=tb(i.containerInfo),G=T.focusedElem,se=T.selectionRange;if(L!==G&&G&&G.ownerDocument&&eb(G.ownerDocument.documentElement,G)){if(se!==null&&$m(G)){var Se=se.start,Ie=se.end;if(Ie===void 0&&(Ie=Se),"selectionStart"in G)G.selectionStart=Se,G.selectionEnd=Math.min(Ie,G.value.length);else{var ze=G.ownerDocument||document,Ce=ze&&ze.defaultView||window;if(Ce.getSelection){var Ee=Ce.getSelection(),jt=G.textContent.length,Ot=Math.min(se.start,jt),_r=se.end===void 0?Ot:Math.min(se.end,jt);!Ee.extend&&Ot>_r&&(L=_r,_r=Ot,Ot=L);var me=J2(G,Ot),ue=J2(G,_r);if(me&&ue&&(Ee.rangeCount!==1||Ee.anchorNode!==me.node||Ee.anchorOffset!==me.offset||Ee.focusNode!==ue.node||Ee.focusOffset!==ue.offset)){var be=ze.createRange();be.setStart(me.node,me.offset),Ee.removeAllRanges(),Ot>_r?(Ee.addRange(be),Ee.extend(ue.node,ue.offset)):(be.setEnd(ue.node,ue.offset),Ee.addRange(be))}}}}for(ze=[],Ee=G;Ee=Ee.parentNode;)Ee.nodeType===1&&ze.push({element:Ee,left:Ee.scrollLeft,top:Ee.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<ze.length;G++){var Be=ze[G];Be.element.scrollLeft=Be.left,Be.element.scrollTop=Be.top}}dh=!!pg,mg=pg=null}finally{gr=S,ne.p=p,B.T=u}}i.current=l,Nn=2}}function pw(){if(Nn===2){Nn=0;var i=xo,l=Tc,u=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||u){u=B.T,B.T=null;var p=ne.p;ne.p=2;var S=gr;gr|=4;try{VS(i,l.alternate,l)}finally{gr=S,ne.p=p,B.T=u}}Nn=3}}function mw(){if(Nn===4||Nn===3){Nn=0,Ge();var i=xo,l=Tc,u=Cc,p=rw;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Nn=5:(Nn=0,Tc=xo=null,gw(i,i.pendingLanes));var S=i.pendingLanes;if(S===0&&(go=null),Nt(u),l=l.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Et,l,void 0,(l.current.flags&128)===128)}catch{}if(p!==null){l=B.T,S=ne.p,ne.p=2,B.T=null;try{for(var T=i.onRecoverableError,L=0;L<p.length;L++){var G=p[L];T(G.value,{componentStack:G.stack})}}finally{B.T=l,ne.p=S}}(Cc&3)!==0&&eh(),rs(i),S=i.pendingLanes,(u&4194090)!==0&&(S&42)!==0?i===eg?sf++:(sf=0,eg=i):sf=0,of(0)}}function gw(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,Bu(l)))}function eh(i){return hw(),pw(),mw(),xw()}function xw(){if(Nn!==5)return!1;var i=xo,l=Z1;Z1=0;var u=Nt(Cc),p=B.T,S=ne.p;try{ne.p=32>u?32:u,B.T=null,u=J1,J1=null;var T=xo,L=Cc;if(Nn=0,Tc=xo=null,Cc=0,(gr&6)!==0)throw Error(n(331));var G=gr;if(gr|=4,ew(T.current),QS(T,T.current,L,u),gr=G,of(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Et,T)}catch{}return!0}finally{ne.p=S,B.T=p,gw(i,l)}}function vw(i,l,u){l=ci(u,l),l=M1(i.stateNode,l,2),i=so(i,l,2),i!==null&&(sa(i,2),rs(i))}function Or(i,l,u){if(i.tag===3)vw(i,i,u);else for(;l!==null;){if(l.tag===3){vw(l,i,u);break}else if(l.tag===1){var p=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(go===null||!go.has(p))){i=ci(u,i),u=wS(2),p=so(l,u,2),p!==null&&(TS(u,p,l,i),sa(p,2),rs(p));break}}l=l.return}}function ag(i,l,u){var p=i.pingCache;if(p===null){p=i.pingCache=new u6;var S=new Set;p.set(l,S)}else S=p.get(l),S===void 0&&(S=new Set,p.set(l,S));S.has(u)||(Y1=!0,S.add(u),i=m6.bind(null,i,l,u),l.then(i,i))}function m6(i,l,u){var p=i.pingCache;p!==null&&p.delete(l),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,Fr===i&&(rr&u)===u&&(Gr===4||Gr===3&&(rr&62914560)===rr&&300>Ae()-Q1?(gr&2)===0&&Ec(i,0):q1|=u,wc===rr&&(wc=0)),rs(i)}function yw(i,l){l===0&&(l=Li()),i=oc(i,l),i!==null&&(sa(i,l),rs(i))}function g6(i){var l=i.memoizedState,u=0;l!==null&&(u=l.retryLane),yw(i,u)}function x6(i,l){var u=0;switch(i.tag){case 13:var p=i.stateNode,S=i.memoizedState;S!==null&&(u=S.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(n(314))}p!==null&&p.delete(l),yw(i,u)}function v6(i,l){return rt(i,l)}var th=null,kc=null,ig=!1,rh=!1,sg=!1,xl=0;function rs(i){i!==kc&&i.next===null&&(kc===null?th=kc=i:kc=kc.next=i),rh=!0,ig||(ig=!0,b6())}function of(i,l){if(!sg&&rh){sg=!0;do for(var u=!1,p=th;p!==null;){if(i!==0){var S=p.pendingLanes;if(S===0)var T=0;else{var L=p.suspendedLanes,G=p.pingedLanes;T=(1<<31-At(42|i)+1)-1,T&=S&~(L&~G),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(u=!0,Tw(p,T))}else T=rr,T=$t(p,p===Fr?T:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(T&3)===0||tr(p,T)||(u=!0,Tw(p,T));p=p.next}while(u);sg=!1}}function y6(){bw()}function bw(){rh=ig=!1;var i=0;xl!==0&&(A6()&&(i=xl),xl=0);for(var l=Ae(),u=null,p=th;p!==null;){var S=p.next,T=Sw(p,l);T===0?(p.next=null,u===null?th=S:u.next=S,S===null&&(kc=u)):(u=p,(i!==0||(T&3)!==0)&&(rh=!0)),p=S}of(i)}function Sw(i,l){for(var u=i.suspendedLanes,p=i.pingedLanes,S=i.expirationTimes,T=i.pendingLanes&-62914561;0<T;){var L=31-At(T),G=1<<L,se=S[L];se===-1?((G&u)===0||(G&p)!==0)&&(S[L]=Wr(G,l)):se<=l&&(i.expiredLanes|=G),T&=~G}if(l=Fr,u=rr,u=$t(i,i===l?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p=i.callbackNode,u===0||i===l&&(xr===2||xr===9)||i.cancelPendingCommit!==null)return p!==null&&p!==null&&Ue(p),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||tr(i,u)){if(l=u&-u,l===i.callbackPriority)return l;switch(p!==null&&Ue(p),Nt(u)){case 2:case 8:u=Ct;break;case 32:u=mt;break;case 268435456:u=Ut;break;default:u=mt}return p=ww.bind(null,i),u=rt(u,p),i.callbackPriority=l,i.callbackNode=u,l}return p!==null&&p!==null&&Ue(p),i.callbackPriority=2,i.callbackNode=null,2}function ww(i,l){if(Nn!==0&&Nn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(eh()&&i.callbackNode!==u)return null;var p=rr;return p=$t(i,i===Fr?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p===0?null:(aw(i,p,l),Sw(i,Ae()),i.callbackNode!=null&&i.callbackNode===u?ww.bind(null,i):null)}function Tw(i,l){if(eh())return null;aw(i,l,!0)}function b6(){O6(function(){(gr&6)!==0?rt(yt,y6):bw()})}function og(){return xl===0&&(xl=gn()),xl}function Cw(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:h0(""+i)}function Ew(i,l){var u=l.ownerDocument.createElement("input");return u.name=l.name,u.value=l.value,i.id&&u.setAttribute("form",i.id),l.parentNode.insertBefore(u,l),i=new FormData(i),u.parentNode.removeChild(u),i}function S6(i,l,u,p,S){if(l==="submit"&&u&&u.stateNode===S){var T=Cw((S[Fe]||null).action),L=p.submitter;L&&(l=(l=L[Fe]||null)?Cw(l.formAction):L.getAttribute("formAction"),l!==null&&(T=l,L=null));var G=new x0("action","action",null,p,S);i.push({event:G,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(xl!==0){var se=L?Ew(S,L):new FormData(S);k1(u,{pending:!0,data:se,method:S.method,action:T},null,se)}}else typeof T=="function"&&(G.preventDefault(),se=L?Ew(S,L):new FormData(S),k1(u,{pending:!0,data:se,method:S.method,action:T},T,se))},currentTarget:S}]})}}for(var lg=0;lg<Gm.length;lg++){var cg=Gm[lg],w6=cg.toLowerCase(),T6=cg[0].toUpperCase()+cg.slice(1);Bi(w6,"on"+T6)}Bi(ab,"onAnimationEnd"),Bi(ib,"onAnimationIteration"),Bi(sb,"onAnimationStart"),Bi("dblclick","onDoubleClick"),Bi("focusin","onFocus"),Bi("focusout","onBlur"),Bi(z5,"onTransitionRun"),Bi(U5,"onTransitionStart"),Bi($5,"onTransitionCancel"),Bi(ob,"onTransitionEnd"),Xe("onMouseEnter",["mouseout","mouseover"]),Xe("onMouseLeave",["mouseout","mouseover"]),Xe("onPointerEnter",["pointerout","pointerover"]),Xe("onPointerLeave",["pointerout","pointerover"]),$e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$e("onBeforeInput",["compositionend","keypress","textInput","paste"]),$e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="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(" "),C6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lf));function _w(i,l){l=(l&4)!==0;for(var u=0;u<i.length;u++){var p=i[u],S=p.event;p=p.listeners;e:{var T=void 0;if(l)for(var L=p.length-1;0<=L;L--){var G=p[L],se=G.instance,Se=G.currentTarget;if(G=G.listener,se!==T&&S.isPropagationStopped())break e;T=G,S.currentTarget=Se;try{T(S)}catch(Ie){H0(Ie)}S.currentTarget=null,T=se}else for(L=0;L<p.length;L++){if(G=p[L],se=G.instance,Se=G.currentTarget,G=G.listener,se!==T&&S.isPropagationStopped())break e;T=G,S.currentTarget=Se;try{T(S)}catch(Ie){H0(Ie)}S.currentTarget=null,T=se}}}}function Kt(i,l){var u=l[ct];u===void 0&&(u=l[ct]=new Set);var p=i+"__bubble";u.has(p)||(kw(l,i,2,!1),u.add(p))}function ug(i,l,u){var p=0;l&&(p|=4),kw(u,i,p,l)}var nh="_reactListening"+Math.random().toString(36).slice(2);function fg(i){if(!i[nh]){i[nh]=!0,pe.forEach(function(u){u!=="selectionchange"&&(C6.has(u)||ug(u,!1,i),ug(u,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[nh]||(l[nh]=!0,ug("selectionchange",!1,l))}}function kw(i,l,u,p){switch(Qw(l)){case 2:var S=Q6;break;case 8:S=Z6;break;default:S=Eg}u=S.bind(null,l,u,i),S=void 0,!Fm||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(S=!0),p?S!==void 0?i.addEventListener(l,u,{capture:!0,passive:S}):i.addEventListener(l,u,!0):S!==void 0?i.addEventListener(l,u,{passive:S}):i.addEventListener(l,u,!1)}function dg(i,l,u,p,S){var T=p;if((l&1)===0&&(l&2)===0&&p!==null)e:for(;;){if(p===null)return;var L=p.tag;if(L===3||L===4){var G=p.stateNode.containerInfo;if(G===S)break;if(L===4)for(L=p.return;L!==null;){var se=L.tag;if((se===3||se===4)&&L.stateNode.containerInfo===S)return;L=L.return}for(;G!==null;){if(L=J(G),L===null)return;if(se=L.tag,se===5||se===6||se===26||se===27){p=T=L;continue e}G=G.parentNode}}p=p.return}N2(function(){var Se=T,Ie=Dm(u),ze=[];e:{var Ce=lb.get(i);if(Ce!==void 0){var Ee=x0,jt=i;switch(i){case"keypress":if(m0(u)===0)break e;case"keydown":case"keyup":Ee=v5;break;case"focusin":jt="focus",Ee=Lm;break;case"focusout":jt="blur",Ee=Lm;break;case"beforeblur":case"afterblur":Ee=Lm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ee=L2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ee=s5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ee=S5;break;case ab:case ib:case sb:Ee=c5;break;case ob:Ee=T5;break;case"scroll":case"scrollend":Ee=a5;break;case"wheel":Ee=E5;break;case"copy":case"cut":case"paste":Ee=f5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ee=B2;break;case"toggle":case"beforetoggle":Ee=k5}var Ot=(l&4)!==0,_r=!Ot&&(i==="scroll"||i==="scrollend"),me=Ot?Ce!==null?Ce+"Capture":null:Ce;Ot=[];for(var ue=Se,be;ue!==null;){var Be=ue;if(be=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||be===null||me===null||(Be=_u(ue,me),Be!=null&&Ot.push(cf(ue,Be,be))),_r)break;ue=ue.return}0<Ot.length&&(Ce=new Ee(Ce,jt,null,u,Ie),ze.push({event:Ce,listeners:Ot}))}}if((l&7)===0){e:{if(Ce=i==="mouseover"||i==="pointerover",Ee=i==="mouseout"||i==="pointerout",Ce&&u!==Om&&(jt=u.relatedTarget||u.fromElement)&&(J(jt)||jt[Ke]))break e;if((Ee||Ce)&&(Ce=Ie.window===Ie?Ie:(Ce=Ie.ownerDocument)?Ce.defaultView||Ce.parentWindow:window,Ee?(jt=u.relatedTarget||u.toElement,Ee=Se,jt=jt?J(jt):null,jt!==null&&(_r=s(jt),Ot=jt.tag,jt!==_r||Ot!==5&&Ot!==27&&Ot!==6)&&(jt=null)):(Ee=null,jt=Se),Ee!==jt)){if(Ot=L2,Be="onMouseLeave",me="onMouseEnter",ue="mouse",(i==="pointerout"||i==="pointerover")&&(Ot=B2,Be="onPointerLeave",me="onPointerEnter",ue="pointer"),_r=Ee==null?Ce:ge(Ee),be=jt==null?Ce:ge(jt),Ce=new Ot(Be,ue+"leave",Ee,u,Ie),Ce.target=_r,Ce.relatedTarget=be,Be=null,J(Ie)===Se&&(Ot=new Ot(me,ue+"enter",jt,u,Ie),Ot.target=be,Ot.relatedTarget=_r,Be=Ot),_r=Be,Ee&&jt)t:{for(Ot=Ee,me=jt,ue=0,be=Ot;be;be=Ac(be))ue++;for(be=0,Be=me;Be;Be=Ac(Be))be++;for(;0<ue-be;)Ot=Ac(Ot),ue--;for(;0<be-ue;)me=Ac(me),be--;for(;ue--;){if(Ot===me||me!==null&&Ot===me.alternate)break t;Ot=Ac(Ot),me=Ac(me)}Ot=null}else Ot=null;Ee!==null&&Aw(ze,Ce,Ee,Ot,!1),jt!==null&&_r!==null&&Aw(ze,_r,jt,Ot,!0)}}e:{if(Ce=Se?ge(Se):window,Ee=Ce.nodeName&&Ce.nodeName.toLowerCase(),Ee==="select"||Ee==="input"&&Ce.type==="file")var gt=X2;else if(V2(Ce))if(Y2)gt=L5;else{gt=P5;var Xt=N5}else Ee=Ce.nodeName,!Ee||Ee.toLowerCase()!=="input"||Ce.type!=="checkbox"&&Ce.type!=="radio"?Se&&Rm(Se.elementType)&&(gt=X2):gt=j5;if(gt&&(gt=gt(i,Se))){G2(ze,gt,u,Ie);break e}Xt&&Xt(i,Ce,Se),i==="focusout"&&Se&&Ce.type==="number"&&Se.memoizedProps.value!=null&&Am(Ce,"number",Ce.value)}switch(Xt=Se?ge(Se):window,i){case"focusin":(V2(Xt)||Xt.contentEditable==="true")&&(ac=Xt,Hm=Se,Nu=null);break;case"focusout":Nu=Hm=ac=null;break;case"mousedown":Wm=!0;break;case"contextmenu":case"mouseup":case"dragend":Wm=!1,rb(ze,u,Ie);break;case"selectionchange":if(B5)break;case"keydown":case"keyup":rb(ze,u,Ie)}var wt;if(Bm)e:{switch(i){case"compositionstart":var Mt="onCompositionStart";break e;case"compositionend":Mt="onCompositionEnd";break e;case"compositionupdate":Mt="onCompositionUpdate";break e}Mt=void 0}else nc?H2(i,u)&&(Mt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Mt="onCompositionStart");Mt&&(z2&&u.locale!=="ko"&&(nc||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&nc&&(wt=P2()):(ro=Ie,Nm="value"in ro?ro.value:ro.textContent,nc=!0)),Xt=ah(Se,Mt),0<Xt.length&&(Mt=new I2(Mt,i,null,u,Ie),ze.push({event:Mt,listeners:Xt}),wt?Mt.data=wt:(wt=W2(u),wt!==null&&(Mt.data=wt)))),(wt=R5?O5(i,u):D5(i,u))&&(Mt=ah(Se,"onBeforeInput"),0<Mt.length&&(Xt=new I2("onBeforeInput","beforeinput",null,u,Ie),ze.push({event:Xt,listeners:Mt}),Xt.data=wt)),S6(ze,i,Se,u,Ie)}_w(ze,l)})}function cf(i,l,u){return{instance:i,listener:l,currentTarget:u}}function ah(i,l){for(var u=l+"Capture",p=[];i!==null;){var S=i,T=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||T===null||(S=_u(i,u),S!=null&&p.unshift(cf(i,S,T)),S=_u(i,l),S!=null&&p.push(cf(i,S,T))),i.tag===3)return p;i=i.return}return[]}function Ac(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Aw(i,l,u,p,S){for(var T=l._reactName,L=[];u!==null&&u!==p;){var G=u,se=G.alternate,Se=G.stateNode;if(G=G.tag,se!==null&&se===p)break;G!==5&&G!==26&&G!==27||Se===null||(se=Se,S?(Se=_u(u,T),Se!=null&&L.unshift(cf(u,Se,se))):S||(Se=_u(u,T),Se!=null&&L.push(cf(u,Se,se)))),u=u.return}L.length!==0&&i.push({event:l,listeners:L})}var E6=/\r\n?/g,_6=/\u0000|\uFFFD/g;function Rw(i){return(typeof i=="string"?i:""+i).replace(E6,`
`).replace(_6,"")}function Ow(i,l){return l=Rw(l),Rw(i)===l}function ih(){}function Er(i,l,u,p,S,T){switch(u){case"children":typeof p=="string"?l==="body"||l==="textarea"&&p===""||ec(i,p):(typeof p=="number"||typeof p=="bigint")&&l!=="body"&&ec(i,""+p);break;case"className":ir(i,"class",p);break;case"tabIndex":ir(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":ir(i,u,p);break;case"style":M2(i,p,T);break;case"data":if(l!=="object"){ir(i,"data",p);break}case"src":case"href":if(p===""&&(l!=="a"||u!=="href")){i.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=h0(""+p),i.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){i.setAttribute(u,"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 T=="function"&&(u==="formAction"?(l!=="input"&&Er(i,l,"name",S.name,S,null),Er(i,l,"formEncType",S.formEncType,S,null),Er(i,l,"formMethod",S.formMethod,S,null),Er(i,l,"formTarget",S.formTarget,S,null)):(Er(i,l,"encType",S.encType,S,null),Er(i,l,"method",S.method,S,null),Er(i,l,"target",S.target,S,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=h0(""+p),i.setAttribute(u,p);break;case"onClick":p!=null&&(i.onclick=ih);break;case"onScroll":p!=null&&Kt("scroll",i);break;case"onScrollEnd":p!=null&&Kt("scrollend",i);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(n(61));if(u=p.__html,u!=null){if(S.children!=null)throw Error(n(60));i.innerHTML=u}}break;case"multiple":i.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":i.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){i.removeAttribute("xlink:href");break}u=h0(""+p),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""+p):i.removeAttribute(u);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":p&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":p===!0?i.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,p):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?i.setAttribute(u,p):i.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?i.removeAttribute(u):i.setAttribute(u,p);break;case"popover":Kt("beforetoggle",i),Kt("toggle",i),ar(i,"popover",p);break;case"xlinkActuate":St(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":St(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":St(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":St(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":St(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":St(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":St(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":St(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":St(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":ar(i,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=r5.get(u)||u,ar(i,u,p))}}function hg(i,l,u,p,S,T){switch(u){case"style":M2(i,p,T);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(n(61));if(u=p.__html,u!=null){if(S.children!=null)throw Error(n(60));i.innerHTML=u}}break;case"children":typeof p=="string"?ec(i,p):(typeof p=="number"||typeof p=="bigint")&&ec(i,""+p);break;case"onScroll":p!=null&&Kt("scroll",i);break;case"onScrollEnd":p!=null&&Kt("scrollend",i);break;case"onClick":p!=null&&(i.onclick=ih);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!we.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(S=u.endsWith("Capture"),l=u.slice(2,S?u.length-7:void 0),T=i[Fe]||null,T=T!=null?T[u]:null,typeof T=="function"&&i.removeEventListener(l,T,S),typeof p=="function")){typeof T!="function"&&T!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(l,p,S);break e}u in i?i[u]=p:p===!0?i.setAttribute(u,""):ar(i,u,p)}}}function Pn(i,l,u){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Kt("error",i),Kt("load",i);var p=!1,S=!1,T;for(T in u)if(u.hasOwnProperty(T)){var L=u[T];if(L!=null)switch(T){case"src":p=!0;break;case"srcSet":S=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,l));default:Er(i,l,T,L,u,null)}}S&&Er(i,l,"srcSet",u.srcSet,u,null),p&&Er(i,l,"src",u.src,u,null);return;case"input":Kt("invalid",i);var G=T=L=S=null,se=null,Se=null;for(p in u)if(u.hasOwnProperty(p)){var Ie=u[p];if(Ie!=null)switch(p){case"name":S=Ie;break;case"type":L=Ie;break;case"checked":se=Ie;break;case"defaultChecked":Se=Ie;break;case"value":T=Ie;break;case"defaultValue":G=Ie;break;case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(n(137,l));break;default:Er(i,l,p,Ie,u,null)}}A2(i,T,G,se,Se,L,S,!1),f0(i);return;case"select":Kt("invalid",i),p=L=T=null;for(S in u)if(u.hasOwnProperty(S)&&(G=u[S],G!=null))switch(S){case"value":T=G;break;case"defaultValue":L=G;break;case"multiple":p=G;default:Er(i,l,S,G,u,null)}l=T,u=L,i.multiple=!!p,l!=null?Jl(i,!!p,l,!1):u!=null&&Jl(i,!!p,u,!0);return;case"textarea":Kt("invalid",i),T=S=p=null;for(L in u)if(u.hasOwnProperty(L)&&(G=u[L],G!=null))switch(L){case"value":p=G;break;case"defaultValue":S=G;break;case"children":T=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error(n(91));break;default:Er(i,l,L,G,u,null)}O2(i,p,S,T),f0(i);return;case"option":for(se in u)if(u.hasOwnProperty(se)&&(p=u[se],p!=null))switch(se){case"selected":i.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Er(i,l,se,p,u,null)}return;case"dialog":Kt("beforetoggle",i),Kt("toggle",i),Kt("cancel",i),Kt("close",i);break;case"iframe":case"object":Kt("load",i);break;case"video":case"audio":for(p=0;p<lf.length;p++)Kt(lf[p],i);break;case"image":Kt("error",i),Kt("load",i);break;case"details":Kt("toggle",i);break;case"embed":case"source":case"link":Kt("error",i),Kt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Se in u)if(u.hasOwnProperty(Se)&&(p=u[Se],p!=null))switch(Se){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,l));default:Er(i,l,Se,p,u,null)}return;default:if(Rm(l)){for(Ie in u)u.hasOwnProperty(Ie)&&(p=u[Ie],p!==void 0&&hg(i,l,Ie,p,u,void 0));return}}for(G in u)u.hasOwnProperty(G)&&(p=u[G],p!=null&&Er(i,l,G,p,u,null))}function k6(i,l,u,p){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,T=null,L=null,G=null,se=null,Se=null,Ie=null;for(Ee in u){var ze=u[Ee];if(u.hasOwnProperty(Ee)&&ze!=null)switch(Ee){case"checked":break;case"value":break;case"defaultValue":se=ze;default:p.hasOwnProperty(Ee)||Er(i,l,Ee,null,p,ze)}}for(var Ce in p){var Ee=p[Ce];if(ze=u[Ce],p.hasOwnProperty(Ce)&&(Ee!=null||ze!=null))switch(Ce){case"type":T=Ee;break;case"name":S=Ee;break;case"checked":Se=Ee;break;case"defaultChecked":Ie=Ee;break;case"value":L=Ee;break;case"defaultValue":G=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(n(137,l));break;default:Ee!==ze&&Er(i,l,Ce,Ee,p,ze)}}km(i,L,G,se,Se,Ie,T,S);return;case"select":Ee=L=G=Ce=null;for(T in u)if(se=u[T],u.hasOwnProperty(T)&&se!=null)switch(T){case"value":break;case"multiple":Ee=se;default:p.hasOwnProperty(T)||Er(i,l,T,null,p,se)}for(S in p)if(T=p[S],se=u[S],p.hasOwnProperty(S)&&(T!=null||se!=null))switch(S){case"value":Ce=T;break;case"defaultValue":G=T;break;case"multiple":L=T;default:T!==se&&Er(i,l,S,T,p,se)}l=G,u=L,p=Ee,Ce!=null?Jl(i,!!u,Ce,!1):!!p!=!!u&&(l!=null?Jl(i,!!u,l,!0):Jl(i,!!u,u?[]:"",!1));return;case"textarea":Ee=Ce=null;for(G in u)if(S=u[G],u.hasOwnProperty(G)&&S!=null&&!p.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:Er(i,l,G,null,p,S)}for(L in p)if(S=p[L],T=u[L],p.hasOwnProperty(L)&&(S!=null||T!=null))switch(L){case"value":Ce=S;break;case"defaultValue":Ee=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(n(91));break;default:S!==T&&Er(i,l,L,S,p,T)}R2(i,Ce,Ee);return;case"option":for(var jt in u)if(Ce=u[jt],u.hasOwnProperty(jt)&&Ce!=null&&!p.hasOwnProperty(jt))switch(jt){case"selected":i.selected=!1;break;default:Er(i,l,jt,null,p,Ce)}for(se in p)if(Ce=p[se],Ee=u[se],p.hasOwnProperty(se)&&Ce!==Ee&&(Ce!=null||Ee!=null))switch(se){case"selected":i.selected=Ce&&typeof Ce!="function"&&typeof Ce!="symbol";break;default:Er(i,l,se,Ce,p,Ee)}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 u)Ce=u[Ot],u.hasOwnProperty(Ot)&&Ce!=null&&!p.hasOwnProperty(Ot)&&Er(i,l,Ot,null,p,Ce);for(Se in p)if(Ce=p[Se],Ee=u[Se],p.hasOwnProperty(Se)&&Ce!==Ee&&(Ce!=null||Ee!=null))switch(Se){case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(n(137,l));break;default:Er(i,l,Se,Ce,p,Ee)}return;default:if(Rm(l)){for(var _r in u)Ce=u[_r],u.hasOwnProperty(_r)&&Ce!==void 0&&!p.hasOwnProperty(_r)&&hg(i,l,_r,void 0,p,Ce);for(Ie in p)Ce=p[Ie],Ee=u[Ie],!p.hasOwnProperty(Ie)||Ce===Ee||Ce===void 0&&Ee===void 0||hg(i,l,Ie,Ce,p,Ee);return}}for(var me in u)Ce=u[me],u.hasOwnProperty(me)&&Ce!=null&&!p.hasOwnProperty(me)&&Er(i,l,me,null,p,Ce);for(ze in p)Ce=p[ze],Ee=u[ze],!p.hasOwnProperty(ze)||Ce===Ee||Ce==null&&Ee==null||Er(i,l,ze,Ce,p,Ee)}var pg=null,mg=null;function sh(i){return i.nodeType===9?i:i.ownerDocument}function Dw(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Mw(i,l){if(i===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&l==="foreignObject"?0:i}function gg(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var xg=null;function A6(){var i=window.event;return i&&i.type==="popstate"?i===xg?!1:(xg=i,!0):(xg=null,!1)}var Fw=typeof setTimeout=="function"?setTimeout:void 0,R6=typeof clearTimeout=="function"?clearTimeout:void 0,Nw=typeof Promise=="function"?Promise:void 0,O6=typeof queueMicrotask=="function"?queueMicrotask:typeof Nw<"u"?function(i){return Nw.resolve(null).then(i).catch(D6)}:Fw;function D6(i){setTimeout(function(){throw i})}function yo(i){return i==="head"}function Pw(i,l){var u=l,p=0,S=0;do{var T=u.nextSibling;if(i.removeChild(u),T&&T.nodeType===8)if(u=T.data,u==="/$"){if(0<p&&8>p){u=p;var L=i.ownerDocument;if(u&1&&uf(L.documentElement),u&2&&uf(L.body),u&4)for(u=L.head,uf(u),L=u.firstChild;L;){var G=L.nextSibling,se=L.nodeName;L[V]||se==="SCRIPT"||se==="STYLE"||se==="LINK"&&L.rel.toLowerCase()==="stylesheet"||u.removeChild(L),L=G}}if(S===0){i.removeChild(T),vf(l);return}S--}else u==="$"||u==="$?"||u==="$!"?S++:p=u.charCodeAt(0)-48;else p=0;u=T}while(u);vf(l)}function vg(i){var l=i.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var u=l;switch(l=l.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":vg(u),X(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function M6(i,l,u,p){for(;i.nodeType===1;){var S=u;if(i.nodeName.toLowerCase()!==l.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[V])switch(l){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(T=i.getAttribute("rel"),T==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(T!==S.rel||i.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||i.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||i.getAttribute("title")!==(S.title==null?null:S.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(T=i.getAttribute("src"),(T!==(S.src==null?null:S.src)||i.getAttribute("type")!==(S.type==null?null:S.type)||i.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&T&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(l==="input"&&i.type==="hidden"){var T=S.name==null?null:""+S.name;if(S.type==="hidden"&&i.getAttribute("name")===T)return i}else return i;if(i=Ui(i.nextSibling),i===null)break}return null}function F6(i,l,u){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Ui(i.nextSibling),i===null))return null;return i}function yg(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function N6(i,l){var u=i.ownerDocument;if(i.data!=="$?"||u.readyState==="complete")l();else{var p=function(){l(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function Ui(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return i}var bg=null;function jw(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(l===0)return i;l--}else u==="/$"&&l++}i=i.previousSibling}return null}function Lw(i,l,u){switch(l=sh(u),i){case"html":if(i=l.documentElement,!i)throw Error(n(452));return i;case"head":if(i=l.head,!i)throw Error(n(453));return i;case"body":if(i=l.body,!i)throw Error(n(454));return i;default:throw Error(n(451))}}function uf(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);X(i)}var mi=new Map,Iw=new Set;function oh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ps=ne.d;ne.d={f:P6,r:j6,D:L6,C:I6,L:B6,m:z6,X:$6,S:U6,M:H6};function P6(){var i=Ps.f(),l=Z0();return i||l}function j6(i){var l=re(i);l!==null&&l.tag===5&&l.type==="form"?aS(l):Ps.r(i)}var Rc=typeof document>"u"?null:document;function Bw(i,l,u){var p=Rc;if(p&&typeof l=="string"&&l){var S=li(l);S='link[rel="'+i+'"][href="'+S+'"]',typeof u=="string"&&(S+='[crossorigin="'+u+'"]'),Iw.has(S)||(Iw.add(S),i={rel:i,crossOrigin:u,href:l},p.querySelector(S)===null&&(l=p.createElement("link"),Pn(l,"link",i),de(l),p.head.appendChild(l)))}}function L6(i){Ps.D(i),Bw("dns-prefetch",i,null)}function I6(i,l){Ps.C(i,l),Bw("preconnect",i,l)}function B6(i,l,u){Ps.L(i,l,u);var p=Rc;if(p&&i&&l){var S='link[rel="preload"][as="'+li(l)+'"]';l==="image"&&u&&u.imageSrcSet?(S+='[imagesrcset="'+li(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(S+='[imagesizes="'+li(u.imageSizes)+'"]')):S+='[href="'+li(i)+'"]';var T=S;switch(l){case"style":T=Oc(i);break;case"script":T=Dc(i)}mi.has(T)||(i=h({rel:"preload",href:l==="image"&&u&&u.imageSrcSet?void 0:i,as:l},u),mi.set(T,i),p.querySelector(S)!==null||l==="style"&&p.querySelector(ff(T))||l==="script"&&p.querySelector(df(T))||(l=p.createElement("link"),Pn(l,"link",i),de(l),p.head.appendChild(l)))}}function z6(i,l){Ps.m(i,l);var u=Rc;if(u&&i){var p=l&&typeof l.as=="string"?l.as:"script",S='link[rel="modulepreload"][as="'+li(p)+'"][href="'+li(i)+'"]',T=S;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=Dc(i)}if(!mi.has(T)&&(i=h({rel:"modulepreload",href:i},l),mi.set(T,i),u.querySelector(S)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(df(T)))return}p=u.createElement("link"),Pn(p,"link",i),de(p),u.head.appendChild(p)}}}function U6(i,l,u){Ps.S(i,l,u);var p=Rc;if(p&&i){var S=ke(p).hoistableStyles,T=Oc(i);l=l||"default";var L=S.get(T);if(!L){var G={loading:0,preload:null};if(L=p.querySelector(ff(T)))G.loading=5;else{i=h({rel:"stylesheet",href:i,"data-precedence":l},u),(u=mi.get(T))&&Sg(i,u);var se=L=p.createElement("link");de(se),Pn(se,"link",i),se._p=new Promise(function(Se,Ie){se.onload=Se,se.onerror=Ie}),se.addEventListener("load",function(){G.loading|=1}),se.addEventListener("error",function(){G.loading|=2}),G.loading|=4,lh(L,l,p)}L={type:"stylesheet",instance:L,count:1,state:G},S.set(T,L)}}}function $6(i,l){Ps.X(i,l);var u=Rc;if(u&&i){var p=ke(u).hoistableScripts,S=Dc(i),T=p.get(S);T||(T=u.querySelector(df(S)),T||(i=h({src:i,async:!0},l),(l=mi.get(S))&&wg(i,l),T=u.createElement("script"),de(T),Pn(T,"link",i),u.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},p.set(S,T))}}function H6(i,l){Ps.M(i,l);var u=Rc;if(u&&i){var p=ke(u).hoistableScripts,S=Dc(i),T=p.get(S);T||(T=u.querySelector(df(S)),T||(i=h({src:i,async:!0,type:"module"},l),(l=mi.get(S))&&wg(i,l),T=u.createElement("script"),de(T),Pn(T,"link",i),u.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},p.set(S,T))}}function zw(i,l,u,p){var S=(S=ae.current)?oh(S):null;if(!S)throw Error(n(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(l=Oc(u.href),u=ke(S).hoistableStyles,p=u.get(l),p||(p={type:"style",instance:null,count:0,state:null},u.set(l,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=Oc(u.href);var T=ke(S).hoistableStyles,L=T.get(i);if(L||(S=S.ownerDocument||S,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},T.set(i,L),(T=S.querySelector(ff(i)))&&!T._p&&(L.instance=T,L.state.loading=5),mi.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},mi.set(i,u),T||W6(S,i,u,L.state))),l&&p===null)throw Error(n(528,""));return L}if(l&&p!==null)throw Error(n(529,""));return null;case"script":return l=u.async,u=u.src,typeof u=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Dc(u),u=ke(S).hoistableScripts,p=u.get(l),p||(p={type:"script",instance:null,count:0,state:null},u.set(l,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,i))}}function Oc(i){return'href="'+li(i)+'"'}function ff(i){return'link[rel="stylesheet"]['+i+"]"}function Uw(i){return h({},i,{"data-precedence":i.precedence,precedence:null})}function W6(i,l,u,p){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?p.loading=1:(l=i.createElement("link"),p.preload=l,l.addEventListener("load",function(){return p.loading|=1}),l.addEventListener("error",function(){return p.loading|=2}),Pn(l,"link",u),de(l),i.head.appendChild(l))}function Dc(i){return'[src="'+li(i)+'"]'}function df(i){return"script[async]"+i}function $w(i,l,u){if(l.count++,l.instance===null)switch(l.type){case"style":var p=i.querySelector('style[data-href~="'+li(u.href)+'"]');if(p)return l.instance=p,de(p),p;var S=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),de(p),Pn(p,"style",S),lh(p,u.precedence,i),l.instance=p;case"stylesheet":S=Oc(u.href);var T=i.querySelector(ff(S));if(T)return l.state.loading|=4,l.instance=T,de(T),T;p=Uw(u),(S=mi.get(S))&&Sg(p,S),T=(i.ownerDocument||i).createElement("link"),de(T);var L=T;return L._p=new Promise(function(G,se){L.onload=G,L.onerror=se}),Pn(T,"link",p),l.state.loading|=4,lh(T,u.precedence,i),l.instance=T;case"script":return T=Dc(u.src),(S=i.querySelector(df(T)))?(l.instance=S,de(S),S):(p=u,(S=mi.get(T))&&(p=h({},u),wg(p,S)),i=i.ownerDocument||i,S=i.createElement("script"),de(S),Pn(S,"link",p),i.head.appendChild(S),l.instance=S);case"void":return null;default:throw Error(n(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(p=l.instance,l.state.loading|=4,lh(p,u.precedence,i));return l.instance}function lh(i,l,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=p.length?p[p.length-1]:null,T=S,L=0;L<p.length;L++){var G=p[L];if(G.dataset.precedence===l)T=G;else if(T!==S)break}T?T.parentNode.insertBefore(i,T.nextSibling):(l=u.nodeType===9?u.head:u,l.insertBefore(i,l.firstChild))}function Sg(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function wg(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var ch=null;function Hw(i,l,u){if(ch===null){var p=new Map,S=ch=new Map;S.set(u,p)}else S=ch,p=S.get(u),p||(p=new Map,S.set(u,p));if(p.has(i))return p;for(p.set(i,null),u=u.getElementsByTagName(i),S=0;S<u.length;S++){var T=u[S];if(!(T[V]||T[Re]||i==="link"&&T.getAttribute("rel")==="stylesheet")&&T.namespaceURI!=="http://www.w3.org/2000/svg"){var L=T.getAttribute(l)||"";L=i+L;var G=p.get(L);G?G.push(T):p.set(L,[T])}}return p}function Ww(i,l,u){i=i.ownerDocument||i,i.head.insertBefore(u,l==="title"?i.querySelector("head > title"):null)}function V6(i,l,u){if(u===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function Vw(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var hf=null;function G6(){}function X6(i,l,u){if(hf===null)throw Error(n(475));var p=hf;if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var S=Oc(u.href),T=i.querySelector(ff(S));if(T){i=T._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(p.count++,p=uh.bind(p),i.then(p,p)),l.state.loading|=4,l.instance=T,de(T);return}T=i.ownerDocument||i,u=Uw(u),(S=mi.get(S))&&Sg(u,S),T=T.createElement("link"),de(T);var L=T;L._p=new Promise(function(G,se){L.onload=G,L.onerror=se}),Pn(T,"link",u),l.instance=T}p.stylesheets===null&&(p.stylesheets=new Map),p.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(p.count++,l=uh.bind(p),i.addEventListener("load",l),i.addEventListener("error",l))}}function Y6(){if(hf===null)throw Error(n(475));var i=hf;return i.stylesheets&&i.count===0&&Tg(i,i.stylesheets),0<i.count?function(l){var u=setTimeout(function(){if(i.stylesheets&&Tg(i,i.stylesheets),i.unsuspend){var p=i.unsuspend;i.unsuspend=null,p()}},6e4);return i.unsuspend=l,function(){i.unsuspend=null,clearTimeout(u)}}:null}function uh(){if(this.count--,this.count===0){if(this.stylesheets)Tg(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var fh=null;function Tg(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,fh=new Map,l.forEach(q6,i),fh=null,uh.call(i))}function q6(i,l){if(!(l.state.loading&4)){var u=fh.get(i);if(u)var p=u.get(null);else{u=new Map,fh.set(i,u);for(var S=i.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T<S.length;T++){var L=S[T];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(u.set(L.dataset.precedence,L),p=L)}p&&u.set(null,p)}S=l.instance,L=S.getAttribute("data-precedence"),T=u.get(L)||p,T===p&&u.set(null,S),u.set(L,S),this.count++,p=uh.bind(this),S.addEventListener("load",p),S.addEventListener("error",p),T?T.parentNode.insertBefore(S,T.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(S,i.firstChild)),l.state.loading|=4}}var pf={$$typeof:E,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function K6(i,l,u,p,S,T,L,G){this.tag=1,this.containerInfo=i,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=ii(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.hiddenUpdates=ii(null),this.identifierPrefix=p,this.onUncaughtError=S,this.onCaughtError=T,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map}function Gw(i,l,u,p,S,T,L,G,se,Se,Ie,ze){return i=new K6(i,l,u,L,G,se,Se,ze),l=1,T===!0&&(l|=24),T=Ua(3,null,null,l),i.current=T,T.stateNode=i,l=a1(),l.refCount++,i.pooledCache=l,l.refCount++,T.memoizedState={element:p,isDehydrated:u,cache:l},l1(T),i}function Xw(i){return i?(i=lc,i):lc}function Yw(i,l,u,p,S,T){S=Xw(S),p.context===null?p.context=S:p.pendingContext=S,p=io(l),p.payload={element:u},T=T===void 0?null:T,T!==null&&(p.callback=T),u=so(i,p,l),u!==null&&(Ga(u,i,l),Hu(u,i,l))}function qw(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<l?u:l}}function Cg(i,l){qw(i,l),(i=i.alternate)&&qw(i,l)}function Kw(i){if(i.tag===13){var l=oc(i,67108864);l!==null&&Ga(l,i,67108864),Cg(i,67108864)}}var dh=!0;function Q6(i,l,u,p){var S=B.T;B.T=null;var T=ne.p;try{ne.p=2,Eg(i,l,u,p)}finally{ne.p=T,B.T=S}}function Z6(i,l,u,p){var S=B.T;B.T=null;var T=ne.p;try{ne.p=8,Eg(i,l,u,p)}finally{ne.p=T,B.T=S}}function Eg(i,l,u,p){if(dh){var S=_g(p);if(S===null)dg(i,l,p,hh,u),Zw(i,p);else if(e8(S,i,l,u,p))p.stopPropagation();else if(Zw(i,p),l&4&&-1<J6.indexOf(i)){for(;S!==null;){var T=re(S);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var L=ht(T.pendingLanes);if(L!==0){var G=T;for(G.pendingLanes|=2,G.entangledLanes|=2;L;){var se=1<<31-At(L);G.entanglements[1]|=se,L&=~se}rs(T),(gr&6)===0&&(K0=Ae()+500,of(0))}}break;case 13:G=oc(T,2),G!==null&&Ga(G,T,2),Z0(),Cg(T,2)}if(T=_g(p),T===null&&dg(i,l,p,hh,u),T===S)break;S=T}S!==null&&p.stopPropagation()}else dg(i,l,p,null,u)}}function _g(i){return i=Dm(i),kg(i)}var hh=null;function kg(i){if(hh=null,i=J(i),i!==null){var l=s(i);if(l===null)i=null;else{var u=l.tag;if(u===13){if(i=o(l),i!==null)return i;i=null}else if(u===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return hh=i,null}function Qw(i){switch(i){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(st()){case yt:return 2;case Ct:return 8;case mt:case qe:return 32;case Ut:return 268435456;default:return 32}default:return 32}}var Ag=!1,bo=null,So=null,wo=null,mf=new Map,gf=new Map,To=[],J6="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 Zw(i,l){switch(i){case"focusin":case"focusout":bo=null;break;case"dragenter":case"dragleave":So=null;break;case"mouseover":case"mouseout":wo=null;break;case"pointerover":case"pointerout":mf.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":gf.delete(l.pointerId)}}function xf(i,l,u,p,S,T){return i===null||i.nativeEvent!==T?(i={blockedOn:l,domEventName:u,eventSystemFlags:p,nativeEvent:T,targetContainers:[S]},l!==null&&(l=re(l),l!==null&&Kw(l)),i):(i.eventSystemFlags|=p,l=i.targetContainers,S!==null&&l.indexOf(S)===-1&&l.push(S),i)}function e8(i,l,u,p,S){switch(l){case"focusin":return bo=xf(bo,i,l,u,p,S),!0;case"dragenter":return So=xf(So,i,l,u,p,S),!0;case"mouseover":return wo=xf(wo,i,l,u,p,S),!0;case"pointerover":var T=S.pointerId;return mf.set(T,xf(mf.get(T)||null,i,l,u,p,S)),!0;case"gotpointercapture":return T=S.pointerId,gf.set(T,xf(gf.get(T)||null,i,l,u,p,S)),!0}return!1}function Jw(i){var l=J(i.target);if(l!==null){var u=s(l);if(u!==null){if(l=u.tag,l===13){if(l=o(u),l!==null){i.blockedOn=l,oe(i.priority,function(){if(u.tag===13){var p=Va();p=Ii(p);var S=oc(u,p);S!==null&&Ga(S,u,p),Cg(u,p)}});return}}else if(l===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function ph(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var u=_g(i.nativeEvent);if(u===null){u=i.nativeEvent;var p=new u.constructor(u.type,u);Om=p,u.target.dispatchEvent(p),Om=null}else return l=re(u),l!==null&&Kw(l),i.blockedOn=u,!1;l.shift()}return!0}function eT(i,l,u){ph(i)&&u.delete(l)}function t8(){Ag=!1,bo!==null&&ph(bo)&&(bo=null),So!==null&&ph(So)&&(So=null),wo!==null&&ph(wo)&&(wo=null),mf.forEach(eT),gf.forEach(eT)}function mh(i,l){i.blockedOn===l&&(i.blockedOn=null,Ag||(Ag=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,t8)))}var gh=null;function tT(i){gh!==i&&(gh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){gh===i&&(gh=null);for(var l=0;l<i.length;l+=3){var u=i[l],p=i[l+1],S=i[l+2];if(typeof p!="function"){if(kg(p||u)===null)continue;break}var T=re(u);T!==null&&(i.splice(l,3),l-=3,k1(T,{pending:!0,data:S,method:u.method,action:p},p,S))}}))}function vf(i){function l(se){return mh(se,i)}bo!==null&&mh(bo,i),So!==null&&mh(So,i),wo!==null&&mh(wo,i),mf.forEach(l),gf.forEach(l);for(var u=0;u<To.length;u++){var p=To[u];p.blockedOn===i&&(p.blockedOn=null)}for(;0<To.length&&(u=To[0],u.blockedOn===null);)Jw(u),u.blockedOn===null&&To.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var S=u[p],T=u[p+1],L=S[Fe]||null;if(typeof T=="function")L||tT(u);else if(L){var G=null;if(T&&T.hasAttribute("formAction")){if(S=T,L=T[Fe]||null)G=L.formAction;else if(kg(S)!==null)continue}else G=L.action;typeof G=="function"?u[p+1]=G:(u.splice(p,3),p-=3),tT(u)}}}function Rg(i){this._internalRoot=i}xh.prototype.render=Rg.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(n(409));var u=l.current,p=Va();Yw(u,p,i,l,null,null)},xh.prototype.unmount=Rg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;Yw(i.current,2,null,i,null,null),Z0(),l[Ke]=null}};function xh(i){this._internalRoot=i}xh.prototype.unstable_scheduleHydration=function(i){if(i){var l=le();i={blockedOn:null,target:i,priority:l};for(var u=0;u<To.length&&l!==0&&l<To[u].priority;u++);To.splice(u,0,i),u===0&&Jw(i)}};var rT=t.version;if(rT!=="19.1.1")throw Error(n(527,rT,"19.1.1"));ne.findDOMNode=function(i){var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=f(l),i=i!==null?d(i):null,i=i===null?null:i.stateNode,i};var r8={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vh.isDisabled&&vh.supportsFiber)try{Et=vh.inject(r8),pt=vh}catch{}}return bf.createRoot=function(i,l){if(!a(i))throw Error(n(299));var u=!1,p="",S=vS,T=yS,L=bS,G=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(S=l.onUncaughtError),l.onCaughtError!==void 0&&(T=l.onCaughtError),l.onRecoverableError!==void 0&&(L=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(G=l.unstable_transitionCallbacks)),l=Gw(i,1,!1,null,null,u,p,S,T,L,G,null),i[Ke]=l.current,fg(i),new Rg(l)},bf.hydrateRoot=function(i,l,u){if(!a(i))throw Error(n(299));var p=!1,S="",T=vS,L=yS,G=bS,se=null,Se=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onUncaughtError!==void 0&&(T=u.onUncaughtError),u.onCaughtError!==void 0&&(L=u.onCaughtError),u.onRecoverableError!==void 0&&(G=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(se=u.unstable_transitionCallbacks),u.formState!==void 0&&(Se=u.formState)),l=Gw(i,1,!0,l,u??null,p,S,T,L,G,se,Se),l.context=Xw(null),u=l.current,p=Va(),p=Ii(p),S=io(p),S.callback=null,so(u,S,p),u=p,l.current.lanes=u,sa(l,u),rs(l),i[Ke]=l.current,fg(i),new xh(l)},bf.version="19.1.1",bf}var dT;function d8(){if(dT)return Mg.exports;dT=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(),Mg.exports=f8(),Mg.exports}var h8=d8();const p8=Cv(h8);/**
 * react-router v7.8.1
 *
 * 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 K4=e=>{throw TypeError(e)},m8=(e,t,r)=>t.has(e)||K4("Cannot "+r),jg=(e,t,r)=>(m8(e,t,"read from private field"),r?r.call(e):t.get(e)),g8=(e,t,r)=>t.has(e)?K4("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),hT="popstate";function x8(e={}){function t(n,a){let{pathname:s,search:o,hash:c}=n.location;return ad("",{pathname:s,search:o,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:jo(a)}return y8(t,r,null,e)}function Zt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function v8(){return Math.random().toString(36).substring(2,10)}function pT(e,t){return{usr:e.state,key:e.key,idx:t}}function ad(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Vo(t):t,state:r,key:t&&t.key||n||v8()}}function jo({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 Vo(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 y8(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:s=!1}=n,o=a.history,c="POP",f=null,d=h();d==null&&(d=0,o.replaceState({...o.state,idx:d},""));function h(){return(o.state||{idx:null}).idx}function g(){c="POP";let w=h(),C=w==null?null:w-d;d=w,f&&f({action:c,location:v.location,delta:C})}function x(w,C){c="PUSH";let k=ad(v.location,w,C);d=h()+1;let E=pT(k,d),D=v.createHref(k);try{o.pushState(E,"",D)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(D)}s&&f&&f({action:c,location:v.location,delta:1})}function y(w,C){c="REPLACE";let k=ad(v.location,w,C);d=h();let E=pT(k,d),D=v.createHref(k);o.replaceState(E,"",D),s&&f&&f({action:c,location:v.location,delta:0})}function b(w){return Q4(w)}let v={get action(){return c},get location(){return e(a,o)},listen(w){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(hT,g),f=w,()=>{a.removeEventListener(hT,g),f=null}},createHref(w){return t(a,w)},createURL:b,encodeLocation(w){let C=b(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:x,replace:y,go(w){return o.go(w)}};return v}function Q4(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Zt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:jo(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}var Nf,mT=class{constructor(e){if(g8(this,Nf,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(jg(this,Nf).has(e))return jg(this,Nf).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){jg(this,Nf).set(e,t)}};Nf=new WeakMap;var b8=new Set(["lazy","caseSensitive","path","id","index","children"]);function S8(e){return b8.has(e)}var w8=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function T8(e){return w8.has(e)}function C8(e){return e.index===!0}function id(e,t,r=[],n={},a=!1){return e.map((s,o)=>{let c=[...r,String(o)],f=typeof s.id=="string"?s.id:c.join("-");if(Zt(s.index!==!0||!s.children,"Cannot specify children on an index route"),Zt(a||!n[f],`Found a route id collision on id "${f}".  Route id's must be globally unique within Data Router usages`),C8(s)){let d={...s,...t(s),id:f};return n[f]=d,d}else{let d={...s,...t(s),id:f,children:void 0};return n[f]=d,s.children&&(d.children=id(s.children,t,c,n,a)),d}})}function Oo(e,t,r="/"){return Vh(e,t,r,!1)}function Vh(e,t,r,n){let a=typeof t=="string"?Vo(t):t,s=Ri(a.pathname||"/",r);if(s==null)return null;let o=Z4(e);_8(o);let c=null;for(let f=0;c==null&&f<o.length;++f){let d=L8(s);c=P8(o[f],d,n)}return c}function E8(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function Z4(e,t=[],r=[],n="",a=!1){let s=(o,c,f=a,d)=>{let h={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(n)&&f)return;Zt(h.relativePath.startsWith(n),`Absolute route path "${h.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(n.length)}let g=ps([n,h.relativePath]),x=r.concat(h);o.children&&o.children.length>0&&(Zt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Z4(o.children,t,x,g,f)),!(o.path==null&&!o.index)&&t.push({path:g,score:F8(g,o.index),routesMeta:x})};return e.forEach((o,c)=>{if(o.path===""||!o.path?.includes("?"))s(o,c);else for(let f of J4(o.path))s(o,c,!0,f)}),t}function J4(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return a?[s,""]:[s];let o=J4(n.join("/")),c=[];return c.push(...o.map(f=>f===""?s:[s,f].join("/"))),a&&c.push(...o),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function _8(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:N8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var k8=/^:[\w-]+$/,A8=3,R8=2,O8=1,D8=10,M8=-2,gT=e=>e==="*";function F8(e,t){let r=e.split("/"),n=r.length;return r.some(gT)&&(n+=M8),t&&(n+=R8),r.filter(a=>!gT(a)).reduce((a,s)=>a+(k8.test(s)?A8:s===""?O8:D8),n)}function N8(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function P8(e,t,r=!1){let{routesMeta:n}=e,a={},s="/",o=[];for(let c=0;c<n.length;++c){let f=n[c],d=c===n.length-1,h=s==="/"?t:t.slice(s.length)||"/",g=sp({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},h),x=f.route;if(!g&&d&&r&&!n[n.length-1].route.index&&(g=sp({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!g)return null;Object.assign(a,g.params),o.push({params:a,pathname:ps([s,g.pathname]),pathnameBase:U8(ps([s,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(s=ps([s,g.pathnameBase]))}return o}function sp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=j8(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let s=a[0],o=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:n.reduce((d,{paramName:h,isOptional:g},x)=>{if(h==="*"){let b=c[x]||"";o=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const y=c[x];return g&&!y?d[h]=void 0:d[h]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:o,pattern:e}}function j8(e,t=!1,r=!0){sn(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,f)=>(n.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function L8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sn(!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 Ri(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 I8({basename:e,pathname:t}){return t==="/"?e:ps([e,t])}function B8(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Vo(e):e;return{pathname:r?r.startsWith("/")?r:z8(r,t):t,search:$8(n),hash:H8(a)}}function z8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Lg(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 e_(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _v(e){let t=e_(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function kv(e,t,r,n=!1){let a;typeof e=="string"?a=Vo(e):(a={...e},Zt(!a.pathname||!a.pathname.includes("?"),Lg("?","pathname","search",a)),Zt(!a.pathname||!a.pathname.includes("#"),Lg("#","pathname","hash",a)),Zt(!a.search||!a.search.includes("#"),Lg("#","search","hash",a)));let s=e===""||a.pathname==="",o=s?"/":a.pathname,c;if(o==null)c=r;else{let g=t.length-1;if(!n&&o.startsWith("..")){let x=o.split("/");for(;x[0]==="..";)x.shift(),g-=1;a.pathname=x.join("/")}c=g>=0?t[g]:"/"}let f=B8(a,c),d=o&&o!=="/"&&o.endsWith("/"),h=(s||o===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(d||h)&&(f.pathname+="/"),f}var ps=e=>e.join("/").replace(/\/\/+/g,"/"),U8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,H8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,op=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function sd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var t_=["POST","PUT","PATCH","DELETE"],W8=new Set(t_),V8=["GET",...t_],G8=new Set(V8),X8=new Set([301,302,303,307,308]),Y8=new Set([307,308]),Ig={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},q8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Sf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},K8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Av=e=>K8.test(e),Q8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),r_="remix-router-transitions",n_=Symbol("ResetLoaderData");function Z8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Zt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],a=e.mapRouteProperties||Q8,s={},o=id(e.routes,a,void 0,s),c,f=e.basename||"/",d=e.dataStrategy||nO,h={unstable_middleware:!1,...e.future},g=null,x=new Set,y=null,b=null,v=null,w=e.hydrationData!=null,C=Oo(o,e.history.location,f),k=!1,E=null,D;if(C==null&&!e.patchRoutesOnNavigation){let le=wi(404,{pathname:e.history.location.pathname}),{matches:oe,route:fe}=AT(o);D=!0,C=oe,E={[fe.id]:le}}else if(C&&!e.hydrationData&&La(C,o,e.history.location.pathname).active&&(C=null),C)if(C.some(le=>le.route.lazy))D=!1;else if(!C.some(le=>le.route.loader))D=!0;else{let le=e.hydrationData?e.hydrationData.loaderData:null,oe=e.hydrationData?e.hydrationData.errors:null;if(oe){let fe=C.findIndex(Re=>oe[Re.route.id]!==void 0);D=C.slice(0,fe+1).every(Re=>!Tx(Re.route,le,oe))}else D=C.every(fe=>!Tx(fe.route,le,oe))}else{D=!1,C=[];let le=La(null,o,e.history.location.pathname);le.active&&le.matches&&(k=!0,C=le.matches)}let M,A={historyAction:e.history.action,location:e.history.location,matches:C,initialized:D,navigation:Ig,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},O="POP",N=!1,F,P=!1,j=new Map,R=null,W=!1,Y=!1,Z=new Set,B=new Map,ne=0,ce=-1,U=new Map,H=new Set,ie=new Map,z=new Map,K=new Set,Q=new Map,ee,ae=null;function xe(){if(g=e.history.listen(({action:le,location:oe,delta:fe})=>{if(ee){ee(),ee=void 0;return}sn(Q.size===0||fe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let Re=Wr({currentLocation:A.location,nextLocation:oe,historyAction:le});if(Re&&fe!=null){let Fe=new Promise(Ke=>{ee=Ke});e.history.go(fe*-1),tr(Re,{state:"blocked",location:oe,proceed(){tr(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),Fe.then(()=>e.history.go(fe))},reset(){let Ke=new Map(A.blockers);Ke.set(Re,Sf),he({blockers:Ke})}});return}return Ue(le,oe)}),r){mO(t,j);let le=()=>gO(t,j);t.addEventListener("pagehide",le),R=()=>t.removeEventListener("pagehide",le)}return A.initialized||Ue("POP",A.location,{initialHydration:!0}),M}function ye(){g&&g(),R&&R(),x.clear(),F&&F.abort(),A.fetchers.forEach((le,oe)=>At(oe)),A.blockers.forEach((le,oe)=>$t(oe))}function Te(le){return x.add(le),()=>x.delete(le)}function he(le,oe={}){le.matches&&(le.matches=le.matches.map(Fe=>{let Ke=s[Fe.route.id],ct=Fe.route;return ct.element!==Ke.element||ct.errorElement!==Ke.errorElement||ct.hydrateFallbackElement!==Ke.hydrateFallbackElement?{...Fe,route:Ke}:Fe})),A={...A,...le};let fe=[],Re=[];A.fetchers.forEach((Fe,Ke)=>{Fe.state==="idle"&&(K.has(Ke)?fe.push(Ke):Re.push(Ke))}),K.forEach(Fe=>{!A.fetchers.has(Fe)&&!B.has(Fe)&&fe.push(Fe)}),[...x].forEach(Fe=>Fe(A,{deletedFetchers:fe,viewTransitionOpts:oe.viewTransitionOpts,flushSync:oe.flushSync===!0})),fe.forEach(Fe=>At(Fe)),Re.forEach(Fe=>A.fetchers.delete(Fe))}function Ve(le,oe,{flushSync:fe}={}){let Re=A.actionData!=null&&A.navigation.formMethod!=null&&_a(A.navigation.formMethod)&&A.navigation.state==="loading"&&le.state?._isRedirect!==!0,Fe;oe.actionData?Object.keys(oe.actionData).length>0?Fe=oe.actionData:Fe=null:Re?Fe=A.actionData:Fe=null;let Ke=oe.loaderData?_T(A.loaderData,oe.loaderData,oe.matches||[],oe.errors):A.loaderData,ct=A.blockers;ct.size>0&&(ct=new Map(ct),ct.forEach((V,X)=>ct.set(X,Sf)));let ft=W?!1:ja(le,oe.matches||A.matches),I=N===!0||A.navigation.formMethod!=null&&_a(A.navigation.formMethod)&&le.state?._isRedirect!==!0;c&&(o=c,c=void 0),W||O==="POP"||(O==="PUSH"?e.history.push(le,le.state):O==="REPLACE"&&e.history.replace(le,le.state));let q;if(O==="POP"){let V=j.get(A.location.pathname);V&&V.has(le.pathname)?q={currentLocation:A.location,nextLocation:le}:j.has(le.pathname)&&(q={currentLocation:le,nextLocation:A.location})}else if(P){let V=j.get(A.location.pathname);V?V.add(le.pathname):(V=new Set([le.pathname]),j.set(A.location.pathname,V)),q={currentLocation:A.location,nextLocation:le}}he({...oe,actionData:Fe,loaderData:Ke,historyAction:O,location:le,initialized:!0,navigation:Ig,revalidation:"idle",restoreScrollPosition:ft,preventScrollReset:I,blockers:ct},{viewTransitionOpts:q,flushSync:fe===!0}),O="POP",N=!1,P=!1,W=!1,Y=!1,ae?.resolve(),ae=null}async function te(le,oe){if(typeof le=="number"){e.history.go(le);return}let fe=wx(A.location,A.matches,f,le,oe?.fromRouteId,oe?.relative),{path:Re,submission:Fe,error:Ke}=xT(!1,fe,oe),ct=A.location,ft=ad(A.location,Re,oe&&oe.state);ft={...ft,...e.history.encodeLocation(ft)};let I=oe&&oe.replace!=null?oe.replace:void 0,q="PUSH";I===!0?q="REPLACE":I===!1||Fe!=null&&_a(Fe.formMethod)&&Fe.formAction===A.location.pathname+A.location.search&&(q="REPLACE");let V=oe&&"preventScrollReset"in oe?oe.preventScrollReset===!0:void 0,X=(oe&&oe.flushSync)===!0,J=Wr({currentLocation:ct,nextLocation:ft,historyAction:q});if(J){tr(J,{state:"blocked",location:ft,proceed(){tr(J,{state:"proceeding",proceed:void 0,reset:void 0,location:ft}),te(le,oe)},reset(){let re=new Map(A.blockers);re.set(J,Sf),he({blockers:re})}});return}await Ue(q,ft,{submission:Fe,pendingError:Ke,preventScrollReset:V,replace:oe&&oe.replace,enableViewTransition:oe&&oe.viewTransition,flushSync:X})}function rt(){ae||(ae=xO()),vt(),he({revalidation:"loading"});let le=ae.promise;return A.navigation.state==="submitting"?le:A.navigation.state==="idle"?(Ue(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),le):(Ue(O||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:P===!0}),le)}async function Ue(le,oe,fe){F&&F.abort(),F=null,O=le,W=(fe&&fe.startUninterruptedRevalidation)===!0,sa(A.location,A.matches),N=(fe&&fe.preventScrollReset)===!0,P=(fe&&fe.enableViewTransition)===!0;let Re=c||o,Fe=fe&&fe.overrideNavigation,Ke=fe?.initialHydration&&A.matches&&A.matches.length>0&&!k?A.matches:Oo(Re,oe,f),ct=(fe&&fe.flushSync)===!0;if(Ke&&A.initialized&&!Y&&uO(A.location,oe)&&!(fe&&fe.submission&&_a(fe.submission.formMethod))){Ve(oe,{matches:Ke},{flushSync:ct});return}let ft=La(Ke,Re,oe.pathname);if(ft.active&&ft.matches&&(Ke=ft.matches),!Ke){let{error:ke,notFoundMatches:de,route:pe}=gn(oe.pathname);Ve(oe,{matches:de,loaderData:{},errors:{[pe.id]:ke}},{flushSync:ct});return}F=new AbortController;let I=$c(e.history,oe,F.signal,fe&&fe.submission),q=e.unstable_getContext?await e.unstable_getContext():new mT,V;if(fe&&fe.pendingError)V=[Do(Ke).route.id,{type:"error",error:fe.pendingError}];else if(fe&&fe.submission&&_a(fe.submission.formMethod)){let ke=await ve(I,oe,fe.submission,Ke,q,ft.active,fe&&fe.initialHydration===!0,{replace:fe.replace,flushSync:ct});if(ke.shortCircuited)return;if(ke.pendingActionResult){let[de,pe]=ke.pendingActionResult;if(Xa(pe)&&sd(pe.error)&&pe.error.status===404){F=null,Ve(oe,{matches:ke.matches,loaderData:{},errors:{[de]:pe.error}});return}}Ke=ke.matches||Ke,V=ke.pendingActionResult,Fe=Bg(oe,fe.submission),ct=!1,ft.active=!1,I=$c(e.history,I.url,I.signal)}let{shortCircuited:X,matches:J,loaderData:re,errors:ge}=await Ge(I,oe,Ke,q,ft.active,Fe,fe&&fe.submission,fe&&fe.fetcherSubmission,fe&&fe.replace,fe&&fe.initialHydration===!0,ct,V);X||(F=null,Ve(oe,{matches:J||Ke,...kT(V),loaderData:re,errors:ge}))}async function ve(le,oe,fe,Re,Fe,Ke,ct,ft={}){vt();let I=hO(oe,fe);if(he({navigation:I},{flushSync:ft.flushSync===!0}),Ke){let X=await Ia(Re,oe.pathname,le.signal);if(X.type==="aborted")return{shortCircuited:!0};if(X.type==="error"){let J=Do(X.partialMatches).route.id;return{matches:X.partialMatches,pendingActionResult:[J,{type:"error",error:X.error}]}}else if(X.matches)Re=X.matches;else{let{notFoundMatches:J,error:re,route:ge}=gn(oe.pathname);return{matches:J,pendingActionResult:[ge.id,{type:"error",error:re}]}}}let q,V=Gh(Re,oe);if(!V.route.action&&!V.route.lazy)q={type:"error",error:wi(405,{method:le.method,pathname:oe.pathname,routeId:V.route.id})};else{let X=qc(a,s,le,Re,V,ct?[]:n,Fe),J=await Ut(le,X,Fe,null);if(q=J[V.route.id],!q){for(let re of Re)if(J[re.route.id]){q=J[re.route.id];break}}if(le.signal.aborted)return{shortCircuited:!0}}if(Cl(q)){let X;return ft&&ft.replace!=null?X=ft.replace:X=TT(q.response.headers.get("Location"),new URL(le.url),f)===A.location.pathname+A.location.search,await qe(le,q,!0,{submission:fe,replace:X}),{shortCircuited:!0}}if(Xa(q)){let X=Do(Re,V.route.id);return(ft&&ft.replace)!==!0&&(O="PUSH"),{matches:Re,pendingActionResult:[X.route.id,q,V.route.id]}}return{matches:Re,pendingActionResult:[V.route.id,q]}}async function Ge(le,oe,fe,Re,Fe,Ke,ct,ft,I,q,V,X){let J=Ke||Bg(oe,ct),re=ct||ft||OT(J),ge=!W&&!q;if(Fe){if(ge){let Mr=Ae(X);he({navigation:J,...Mr!==void 0?{actionData:Mr}:{}},{flushSync:V})}let St=await Ia(fe,oe.pathname,le.signal);if(St.type==="aborted")return{shortCircuited:!0};if(St.type==="error"){let Mr=Do(St.partialMatches).route.id;return{matches:St.partialMatches,loaderData:{},errors:{[Mr]:St.error}}}else if(St.matches)fe=St.matches;else{let{error:Mr,notFoundMatches:Ba,route:Tn}=gn(oe.pathname);return{matches:Ba,loaderData:{},errors:{[Tn.id]:Mr}}}}let ke=c||o,{dsMatches:de,revalidatingFetchers:pe}=vT(le,Re,a,s,e.history,A,fe,re,oe,q?[]:n,q===!0,Y,Z,K,ie,H,ke,f,e.patchRoutesOnNavigation!=null,X);if(ce=++ne,!e.dataStrategy&&!de.some(St=>St.shouldLoad)&&!de.some(St=>St.route.unstable_middleware)&&pe.length===0){let St=It();return Ve(oe,{matches:fe,loaderData:{},errors:X&&Xa(X[1])?{[X[0]]:X[1].error}:null,...kT(X),...St?{fetchers:new Map(A.fetchers)}:{}},{flushSync:V}),{shortCircuited:!0}}if(ge){let St={};if(!Fe){St.navigation=J;let Mr=Ae(X);Mr!==void 0&&(St.actionData=Mr)}pe.length>0&&(St.fetchers=st(pe)),he(St,{flushSync:V})}pe.forEach(St=>{ot(St.key),St.controller&&B.set(St.key,St.controller)});let we=()=>pe.forEach(St=>ot(St.key));F&&F.signal.addEventListener("abort",we);let{loaderResults:$e,fetcherResults:Xe}=await Dt(de,pe,le,Re);if(le.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",we),pe.forEach(St=>B.delete(St.key));let Je=yh($e);if(Je)return await qe(le,Je.result,!0,{replace:I}),{shortCircuited:!0};if(Je=yh(Xe),Je)return H.add(Je.key),await qe(le,Je.result,!0,{replace:I}),{shortCircuited:!0};let{loaderData:Ye,errors:et}=ET(A,fe,$e,X,pe,Xe);q&&A.errors&&(et={...A.errors,...et});let Rt=It(),ar=Rr(ce),ir=Rt||ar||pe.length>0;return{matches:fe,loaderData:Ye,errors:et,...ir?{fetchers:new Map(A.fetchers)}:{}}}function Ae(le){if(le&&!Xa(le[1]))return{[le[0]]:le[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function st(le){return le.forEach(oe=>{let fe=A.fetchers.get(oe.key),Re=wf(void 0,fe?fe.data:void 0);A.fetchers.set(oe.key,Re)}),new Map(A.fetchers)}async function yt(le,oe,fe,Re){ot(le);let Fe=(Re&&Re.flushSync)===!0,Ke=c||o,ct=wx(A.location,A.matches,f,fe,oe,Re?.relative),ft=Oo(Ke,ct,f),I=La(ft,Ke,ct);if(I.active&&I.matches&&(ft=I.matches),!ft){pt(le,oe,wi(404,{pathname:ct}),{flushSync:Fe});return}let{path:q,submission:V,error:X}=xT(!0,ct,Re);if(X){pt(le,oe,X,{flushSync:Fe});return}let J=e.unstable_getContext?await e.unstable_getContext():new mT,re=(Re&&Re.preventScrollReset)===!0;if(V&&_a(V.formMethod)){await Ct(le,oe,q,ft,J,I.active,Fe,re,V);return}ie.set(le,{routeId:oe,path:q}),await mt(le,oe,q,ft,J,I.active,Fe,re,V)}async function Ct(le,oe,fe,Re,Fe,Ke,ct,ft,I){vt(),ie.delete(le);let q=A.fetchers.get(le);Et(le,pO(I,q),{flushSync:ct});let V=new AbortController,X=$c(e.history,fe,V.signal,I);if(Ke){let ur=await Ia(Re,new URL(X.url).pathname,X.signal,le);if(ur.type==="aborted")return;if(ur.type==="error"){pt(le,oe,ur.error,{flushSync:ct});return}else if(ur.matches)Re=ur.matches;else{pt(le,oe,wi(404,{pathname:fe}),{flushSync:ct});return}}let J=Gh(Re,fe);if(!J.route.action&&!J.route.lazy){let ur=wi(405,{method:I.formMethod,pathname:fe,routeId:oe});pt(le,oe,ur,{flushSync:ct});return}B.set(le,V);let re=ne,ge=qc(a,s,X,Re,J,n,Fe),de=(await Ut(X,ge,Fe,le))[J.route.id];if(X.signal.aborted){B.get(le)===V&&B.delete(le);return}if(K.has(le)){if(Cl(de)||Xa(de)){Et(le,Ao(void 0));return}}else{if(Cl(de))if(B.delete(le),ce>re){Et(le,Ao(void 0));return}else return H.add(le),Et(le,wf(I)),qe(X,de,!1,{fetcherSubmission:I,preventScrollReset:ft});if(Xa(de)){pt(le,oe,de.error);return}}let pe=A.navigation.location||A.location,we=$c(e.history,pe,V.signal),$e=c||o,Xe=A.navigation.state!=="idle"?Oo($e,A.navigation.location,f):A.matches;Zt(Xe,"Didn't find any matches after fetcher action");let Je=++ne;U.set(le,Je);let Ye=wf(I,de.data);A.fetchers.set(le,Ye);let{dsMatches:et,revalidatingFetchers:Rt}=vT(we,Fe,a,s,e.history,A,Xe,I,pe,n,!1,Y,Z,K,ie,H,$e,f,e.patchRoutesOnNavigation!=null,[J.route.id,de]);Rt.filter(ur=>ur.key!==le).forEach(ur=>{let si=ur.key,va=A.fetchers.get(si),u0=wf(void 0,va?va.data:void 0);A.fetchers.set(si,u0),ot(si),ur.controller&&B.set(si,ur.controller)}),he({fetchers:new Map(A.fetchers)});let ar=()=>Rt.forEach(ur=>ot(ur.key));V.signal.addEventListener("abort",ar);let{loaderResults:ir,fetcherResults:St}=await Dt(et,Rt,we,Fe);if(V.signal.aborted)return;if(V.signal.removeEventListener("abort",ar),U.delete(le),B.delete(le),Rt.forEach(ur=>B.delete(ur.key)),A.fetchers.has(le)){let ur=Ao(de.data);A.fetchers.set(le,ur)}let Mr=yh(ir);if(Mr)return qe(we,Mr.result,!1,{preventScrollReset:ft});if(Mr=yh(St),Mr)return H.add(Mr.key),qe(we,Mr.result,!1,{preventScrollReset:ft});let{loaderData:Ba,errors:Tn}=ET(A,Xe,ir,void 0,Rt,St);Rr(Je),A.navigation.state==="loading"&&Je>ce?(Zt(O,"Expected pending action"),F&&F.abort(),Ve(A.navigation.location,{matches:Xe,loaderData:Ba,errors:Tn,fetchers:new Map(A.fetchers)})):(he({errors:Tn,loaderData:_T(A.loaderData,Ba,Xe,Tn),fetchers:new Map(A.fetchers)}),Y=!1)}async function mt(le,oe,fe,Re,Fe,Ke,ct,ft,I){let q=A.fetchers.get(le);Et(le,wf(I,q?q.data:void 0),{flushSync:ct});let V=new AbortController,X=$c(e.history,fe,V.signal);if(Ke){let pe=await Ia(Re,new URL(X.url).pathname,X.signal,le);if(pe.type==="aborted")return;if(pe.type==="error"){pt(le,oe,pe.error,{flushSync:ct});return}else if(pe.matches)Re=pe.matches;else{pt(le,oe,wi(404,{pathname:fe}),{flushSync:ct});return}}let J=Gh(Re,fe);B.set(le,V);let re=ne,ge=qc(a,s,X,Re,J,n,Fe),de=(await Ut(X,ge,Fe,le))[J.route.id];if(B.get(le)===V&&B.delete(le),!X.signal.aborted){if(K.has(le)){Et(le,Ao(void 0));return}if(Cl(de))if(ce>re){Et(le,Ao(void 0));return}else{H.add(le),await qe(X,de,!1,{preventScrollReset:ft});return}if(Xa(de)){pt(le,oe,de.error);return}Et(le,Ao(de.data))}}async function qe(le,oe,fe,{submission:Re,fetcherSubmission:Fe,preventScrollReset:Ke,replace:ct}={}){oe.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let ft=oe.response.headers.get("Location");Zt(ft,"Expected a Location header on the redirect Response"),ft=TT(ft,new URL(le.url),f);let I=ad(A.location,ft,{_isRedirect:!0});if(r){let ge=!1;if(oe.response.headers.has("X-Remix-Reload-Document"))ge=!0;else if(Av(ft)){const ke=Q4(ft,!0);ge=ke.origin!==t.location.origin||Ri(ke.pathname,f)==null}if(ge){ct?t.location.replace(ft):t.location.assign(ft);return}}F=null;let q=ct===!0||oe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:V,formAction:X,formEncType:J}=A.navigation;!Re&&!Fe&&V&&X&&J&&(Re=OT(A.navigation));let re=Re||Fe;if(Y8.has(oe.response.status)&&re&&_a(re.formMethod))await Ue(q,I,{submission:{...re,formAction:ft},preventScrollReset:Ke||N,enableViewTransition:fe?P:void 0});else{let ge=Bg(I,Re);await Ue(q,I,{overrideNavigation:ge,fetcherSubmission:Fe,preventScrollReset:Ke||N,enableViewTransition:fe?P:void 0})}}async function Ut(le,oe,fe,Re){let Fe,Ke={};try{Fe=await aO(d,le,oe,Re,fe,!1)}catch(ct){return oe.filter(ft=>ft.shouldLoad).forEach(ft=>{Ke[ft.route.id]={type:"error",error:ct}}),Ke}if(le.signal.aborted)return Ke;for(let[ct,ft]of Object.entries(Fe))if(fO(ft)){let I=ft.result;Ke[ct]={type:"redirect",response:lO(I,le,ct,oe,f)}}else Ke[ct]=await oO(ft);return Ke}async function Dt(le,oe,fe,Re){let Fe=Ut(fe,le,Re,null),Ke=Promise.all(oe.map(async I=>{if(I.matches&&I.match&&I.request&&I.controller){let V=(await Ut(I.request,I.matches,Re,I.key))[I.match.route.id];return{[I.key]:V}}else return Promise.resolve({[I.key]:{type:"error",error:wi(404,{pathname:I.path})}})})),ct=await Fe,ft=(await Ke).reduce((I,q)=>Object.assign(I,q),{});return{loaderResults:ct,fetcherResults:ft}}function vt(){Y=!0,ie.forEach((le,oe)=>{B.has(oe)&&Z.add(oe),ot(oe)})}function Et(le,oe,fe={}){A.fetchers.set(le,oe),he({fetchers:new Map(A.fetchers)},{flushSync:(fe&&fe.flushSync)===!0})}function pt(le,oe,fe,Re={}){let Fe=Do(A.matches,oe);At(le),he({errors:{[Fe.route.id]:fe},fetchers:new Map(A.fetchers)},{flushSync:(Re&&Re.flushSync)===!0})}function _t(le){return z.set(le,(z.get(le)||0)+1),K.has(le)&&K.delete(le),A.fetchers.get(le)||q8}function At(le){let oe=A.fetchers.get(le);B.has(le)&&!(oe&&oe.state==="loading"&&U.has(le))&&ot(le),ie.delete(le),U.delete(le),H.delete(le),K.delete(le),Z.delete(le),A.fetchers.delete(le)}function xt(le){let oe=(z.get(le)||0)-1;oe<=0?(z.delete(le),K.add(le)):z.set(le,oe),he({fetchers:new Map(A.fetchers)})}function ot(le){let oe=B.get(le);oe&&(oe.abort(),B.delete(le))}function nr(le){for(let oe of le){let fe=_t(oe),Re=Ao(fe.data);A.fetchers.set(oe,Re)}}function It(){let le=[],oe=!1;for(let fe of H){let Re=A.fetchers.get(fe);Zt(Re,`Expected fetcher: ${fe}`),Re.state==="loading"&&(H.delete(fe),le.push(fe),oe=!0)}return nr(le),oe}function Rr(le){let oe=[];for(let[fe,Re]of U)if(Re<le){let Fe=A.fetchers.get(fe);Zt(Fe,`Expected fetcher: ${fe}`),Fe.state==="loading"&&(ot(fe),U.delete(fe),oe.push(fe))}return nr(oe),oe.length>0}function ht(le,oe){let fe=A.blockers.get(le)||Sf;return Q.get(le)!==oe&&Q.set(le,oe),fe}function $t(le){A.blockers.delete(le),Q.delete(le)}function tr(le,oe){let fe=A.blockers.get(le)||Sf;Zt(fe.state==="unblocked"&&oe.state==="blocked"||fe.state==="blocked"&&oe.state==="blocked"||fe.state==="blocked"&&oe.state==="proceeding"||fe.state==="blocked"&&oe.state==="unblocked"||fe.state==="proceeding"&&oe.state==="unblocked",`Invalid blocker state transition: ${fe.state} -> ${oe.state}`);let Re=new Map(A.blockers);Re.set(le,oe),he({blockers:Re})}function Wr({currentLocation:le,nextLocation:oe,historyAction:fe}){if(Q.size===0)return;Q.size>1&&sn(!1,"A router only supports one blocker at a time");let Re=Array.from(Q.entries()),[Fe,Ke]=Re[Re.length-1],ct=A.blockers.get(Fe);if(!(ct&&ct.state==="proceeding")&&Ke({currentLocation:le,nextLocation:oe,historyAction:fe}))return Fe}function gn(le){let oe=wi(404,{pathname:le}),fe=c||o,{matches:Re,route:Fe}=AT(fe);return{notFoundMatches:Re,route:Fe,error:oe}}function Li(le,oe,fe){if(y=le,v=oe,b=fe||null,!w&&A.navigation===Ig){w=!0;let Re=ja(A.location,A.matches);Re!=null&&he({restoreScrollPosition:Re})}return()=>{y=null,v=null,b=null}}function ii(le,oe){return b&&b(le,oe.map(Re=>E8(Re,A.loaderData)))||le.key}function sa(le,oe){if(y&&v){let fe=ii(le,oe);y[fe]=v()}}function ja(le,oe){if(y){let fe=ii(le,oe),Re=y[fe];if(typeof Re=="number")return Re}return null}function La(le,oe,fe){if(e.patchRoutesOnNavigation)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:Vh(oe,fe,f,!0)}}else return{active:!0,matches:Vh(oe,fe,f,!0)||[]};return{active:!1,matches:null}}async function Ia(le,oe,fe,Re){if(!e.patchRoutesOnNavigation)return{type:"success",matches:le};let Fe=le;for(;;){let Ke=c==null,ct=c||o,ft=s;try{await e.patchRoutesOnNavigation({signal:fe,path:oe,matches:Fe,fetcherKey:Re,patch:(V,X)=>{fe.aborted||yT(V,X,ct,ft,a,!1)}})}catch(V){return{type:"error",error:V,partialMatches:Fe}}finally{Ke&&!fe.aborted&&(o=[...o])}if(fe.aborted)return{type:"aborted"};let I=Oo(ct,oe,f);if(I)return{type:"success",matches:I};let q=Vh(ct,oe,f,!0);if(!q||Fe.length===q.length&&Fe.every((V,X)=>V.route.id===q[X].route.id))return{type:"success",matches:null};Fe=q}}function Ii(le){s={},c=id(le,a,void 0,s)}function Nt(le,oe,fe=!1){let Re=c==null;yT(le,oe,c||o,s,a,fe),Re&&(o=[...o],he({}))}return M={get basename(){return f},get future(){return h},get state(){return A},get routes(){return o},get window(){return t},initialize:xe,subscribe:Te,enableScrollRestoration:Li,navigate:te,fetch:yt,revalidate:rt,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:_t,deleteFetcher:xt,dispose:ye,getBlocker:ht,deleteBlocker:$t,patchRoutes:Nt,_internalFetchControllers:B,_internalSetRoutes:Ii,_internalSetStateDoNotUseOrYouWillBreakYourApp(le){he(le)}},M}function J8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function wx(e,t,r,n,a,s){let o,c;if(a){o=[];for(let d of t)if(o.push(d),d.route.id===a){c=d;break}}else o=t,c=t[t.length-1];let f=kv(n||".",_v(o),Ri(e.pathname,r)||e.pathname,s==="path");if(n==null&&(f.search=e.search,f.hash=e.hash),(n==null||n===""||n===".")&&c){let d=Rv(f.search);if(c.route.index&&!d)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let h=new URLSearchParams(f.search),g=h.getAll("index");h.delete("index"),g.filter(y=>y).forEach(y=>h.append("index",y));let x=h.toString();f.search=x?`?${x}`:""}}return r!=="/"&&(f.pathname=I8({basename:r,pathname:f.pathname})),jo(f)}function xT(e,t,r){if(!r||!J8(r))return{path:t};if(r.formMethod&&!dO(r.formMethod))return{path:t,error:wi(405,{method:r.formMethod})};let n=()=>({path:t,error:wi(400,{type:"invalid-body"})}),s=(r.formMethod||"get").toUpperCase(),o=u_(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!_a(s))return n();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((x,[y,b])=>`${x}${y}=${b}
`,""):String(r.body);return{path:t,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!_a(s))return n();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return n()}}}Zt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=Ex(r.formData),f=r.formData;else if(r.body instanceof FormData)c=Ex(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=CT(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=CT(c)}catch{return n()}let d={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(_a(d.formMethod))return{path:t,submission:d};let h=Vo(t);return e&&h.search&&Rv(h.search)&&c.append("index",""),h.search=`?${c}`,{path:jo(h),submission:d}}function vT(e,t,r,n,a,s,o,c,f,d,h,g,x,y,b,v,w,C,k,E){let D=E?Xa(E[1])?E[1].error:E[1].data:void 0,M=a.createURL(s.location),A=a.createURL(f),O;if(h&&s.errors){let W=Object.keys(s.errors)[0];O=o.findIndex(Y=>Y.route.id===W)}else if(E&&Xa(E[1])){let W=E[0];O=o.findIndex(Y=>Y.route.id===W)-1}let N=E?E[1].statusCode:void 0,F=N&&N>=400,P={currentUrl:M,currentParams:s.matches[0]?.params||{},nextUrl:A,nextParams:o[0].params,...c,actionResult:D,actionStatus:N},j=o.map((W,Y)=>{let{route:Z}=W,B=null;if(O!=null&&Y>O?B=!1:Z.lazy?B=!0:Z.loader==null?B=!1:h?B=Tx(Z,s.loaderData,s.errors):eO(s.loaderData,s.matches[Y],W)&&(B=!0),B!==null)return Cx(r,n,e,W,d,t,B);let ne=F?!1:g||M.pathname+M.search===A.pathname+A.search||M.search!==A.search||tO(s.matches[Y],W),ce={...P,defaultShouldRevalidate:ne},U=lp(W,ce);return Cx(r,n,e,W,d,t,U,ce)}),R=[];return b.forEach((W,Y)=>{if(h||!o.some(z=>z.route.id===W.routeId)||y.has(Y))return;let Z=s.fetchers.get(Y),B=Z&&Z.state!=="idle"&&Z.data===void 0,ne=Oo(w,W.path,C);if(!ne){if(k&&B)return;R.push({key:Y,routeId:W.routeId,path:W.path,matches:null,match:null,request:null,controller:null});return}if(v.has(Y))return;let ce=Gh(ne,W.path),U=new AbortController,H=$c(a,W.path,U.signal),ie=null;if(x.has(Y))x.delete(Y),ie=qc(r,n,H,ne,ce,d,t);else if(B)g&&(ie=qc(r,n,H,ne,ce,d,t));else{let z={...P,defaultShouldRevalidate:F?!1:g};lp(ce,z)&&(ie=qc(r,n,H,ne,ce,d,t,z))}ie&&R.push({key:Y,routeId:W.routeId,path:W.path,matches:ie,match:ce,request:H,controller:U})}),{dsMatches:j,revalidatingFetchers:R}}function Tx(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&e.id in t,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function eO(e,t,r){let n=!t||r.route.id!==t.route.id,a=!e.hasOwnProperty(r.route.id);return n||a}function tO(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function lp(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function yT(e,t,r,n,a,s){let o;if(e){let d=n[e];Zt(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),o=d.children}else o=r;let c=[],f=[];if(t.forEach(d=>{let h=o.find(g=>a_(d,g));h?f.push({existingRoute:h,newRoute:d}):c.push(d)}),c.length>0){let d=id(c,a,[e||"_","patch",String(o?.length||"0")],n);o.push(...d)}if(s&&f.length>0)for(let d=0;d<f.length;d++){let{existingRoute:h,newRoute:g}=f[d],x=h,[y]=id([g],a,[],{},!0);Object.assign(x,{element:y.element?y.element:x.element,errorElement:y.errorElement?y.errorElement:x.errorElement,hydrateFallbackElement:y.hydrateFallbackElement?y.hydrateFallbackElement:x.hydrateFallbackElement})}}function a_(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>t.children?.some(a=>a_(r,a))):!1}var bT=new WeakMap,i_=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let a=r[t.id];if(Zt(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let s=a.lazy[e];if(!s)return;let o=bT.get(a);o||(o={},bT.set(a,o));let c=o[e];if(c)return c;let f=(async()=>{let d=S8(e),g=a[e]!==void 0&&e!=="hasErrorBoundary";if(d)sn(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),o[e]=Promise.resolve();else if(g)sn(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let x=await s();x!=null&&(Object.assign(a,{[e]:x}),Object.assign(a,n(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(x=>x===void 0)&&(a.lazy=void 0))})();return o[e]=f,f},ST=new WeakMap;function rO(e,t,r,n,a){let s=r[e.id];if(Zt(s,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let h=ST.get(s);if(h)return{lazyRoutePromise:h,lazyHandlerPromise:h};let g=(async()=>{Zt(typeof e.lazy=="function","No lazy route function found");let x=await e.lazy(),y={};for(let b in x){let v=x[b];if(v===void 0)continue;let w=T8(b),k=s[b]!==void 0&&b!=="hasErrorBoundary";w?sn(!w,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):k?sn(!k,`Route "${s.id}" has a static property "${b}" defined but its lazy function is also returning a value for this property. The lazy route property "${b}" will be ignored.`):y[b]=v}Object.assign(s,y),Object.assign(s,{...n(s),lazy:void 0})})();return ST.set(s,g),g.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:g}}let o=Object.keys(e.lazy),c=[],f;for(let h of o){if(a&&a.includes(h))continue;let g=i_({key:h,route:e,manifest:r,mapRouteProperties:n});g&&(c.push(g),h===t&&(f=g))}let d=c.length>0?Promise.all(c).then(()=>{}):void 0;return d?.catch(()=>{}),f?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:f}}async function wT(e){let t=e.matches.filter(a=>a.shouldLoad),r={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,s)=>{r[t[s].route.id]=a}),r}async function nO(e){if(!e.matches.some(r=>r.route.unstable_middleware))return wT(e);let t=!1;return o_(e,()=>(t=!0,wT(e)),(r,n)=>s_(r,n,e.matches,t))}function s_(e,t,r,n){if(n)return{[t]:{type:"error",result:e}};{let a=Math.min(r.findIndex(o=>o.route.id===t)||0,r.findIndex(o=>o.unstable_shouldCallHandler())||0);return{[Do(r,r[a].route.id).route.id]:{type:"error",result:e}}}}async function o_(e,t,r){let{matches:n,request:a,params:s,context:o}=e,c=n.flatMap(d=>d.route.unstable_middleware?d.route.unstable_middleware.map(h=>[d.route.id,h]):[]),f={};return await l_({request:a,params:s,context:o},c,t,r,f),f}async function l_(e,t,r,n,a={},s=0){let{request:o}=e;if(o.signal.aborted)throw o.signal.reason?o.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${o.method} ${o.url}`);let c=t[s];if(!c){let x=await r();Object.assign(a,x);return}let[f,d]=c,h=!1,g=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");h=!0;try{let x=await l_(e,t,r,n,a,s+1);Object.assign(a,x)}catch(x){let y=await n(x,f);Object.assign(a,y)}};try{let x=await d({request:e.request,params:e.params,context:e.context},g);typeof x<"u"&&console.warn("client middlewares are not intended to return values, the value will be ignored",x),h||await g()}catch(x){let y=await n(x,f);Object.assign(a,y)}}function c_(e,t,r,n,a){let s=i_({key:"unstable_middleware",route:n.route,manifest:t,mapRouteProperties:e}),o=rO(n.route,_a(r.method)?"action":"loader",t,e,a);return{middleware:s,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Cx(e,t,r,n,a,s,o,c=null){let f=!1,d=c_(e,t,r,n,a);return{...n,_lazyPromises:d,shouldLoad:o,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(h){return f=!0,c?typeof h=="boolean"?lp(n,{...c,defaultShouldRevalidate:h}):lp(n,c):o},resolve(h){return f||o||h&&!_a(r.method)&&(n.route.lazy||n.route.loader)?iO({request:r,match:n,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:h,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function qc(e,t,r,n,a,s,o,c=null){return n.map(f=>f.route.id!==a.route.id?{...f,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:c_(e,t,r,f,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Cx(e,t,r,f,s,o,!0,c))}async function aO(e,t,r,n,a,s){r.some(d=>d._lazyPromises?.middleware)&&await Promise.all(r.map(d=>d._lazyPromises?.middleware));let o={request:t,params:r[0].params,context:a,matches:r},f=await e({...o,fetcherKey:n,unstable_runClientMiddleware:d=>{let h=o,g=!1;return o_(h,()=>(g=!0,d({...h,fetcherKey:n,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}})),(x,y)=>s_(x,y,r,g))}});try{await Promise.all(r.flatMap(d=>[d._lazyPromises?.handler,d._lazyPromises?.route]))}catch{}return f}async function iO({request:e,match:t,lazyHandlerPromise:r,lazyRoutePromise:n,handlerOverride:a,scopedContext:s}){let o,c,f=_a(e.method),d=f?"action":"loader",h=g=>{let x,y=new Promise((w,C)=>x=C);c=()=>x(),e.signal.addEventListener("abort",c);let b=w=>typeof g!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):g({request:e,params:t.params,context:s},...w!==void 0?[w]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(C=>b(C)):b())}}catch(w){return{type:"error",result:w}}})();return Promise.race([v,y])};try{let g=f?t.route.action:t.route.loader;if(r||n)if(g){let x,[y]=await Promise.all([h(g).catch(b=>{x=b}),r,n]);if(x!==void 0)throw x;o=y}else{await r;let x=f?t.route.action:t.route.loader;if(x)[o]=await Promise.all([h(x),n]);else if(d==="action"){let y=new URL(e.url),b=y.pathname+y.search;throw wi(405,{method:e.method,pathname:b,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(g)o=await h(g);else{let x=new URL(e.url),y=x.pathname+x.search;throw wi(404,{pathname:y})}}catch(g){return{type:"error",result:g}}finally{c&&e.signal.removeEventListener("abort",c)}return o}async function sO(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function oO(e){let{result:t,type:r}=e;if(f_(t)){let n;try{n=await sO(t)}catch(a){return{type:"error",error:a}}return r==="error"?{type:"error",error:new op(t.status,t.statusText,n),statusCode:t.status,headers:t.headers}:{type:"data",data:n,statusCode:t.status,headers:t.headers}}return r==="error"?RT(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new op(t.init?.status||500,void 0,t.data),statusCode:sd(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:sd(t)?t.status:void 0}:RT(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function lO(e,t,r,n,a){let s=e.headers.get("Location");if(Zt(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Av(s)){let o=n.slice(0,n.findIndex(c=>c.route.id===r)+1);s=wx(new URL(t.url),o,a,s),e.headers.set("Location",s)}return e}function TT(e,t,r){if(Av(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),s=Ri(a.pathname,r)!=null;if(a.origin===t.origin&&s)return a.pathname+a.search+a.hash}return e}function $c(e,t,r,n){let a=e.createURL(u_(t)).toString(),s={signal:r};if(n&&_a(n.formMethod)){let{formMethod:o,formEncType:c}=n;s.method=o.toUpperCase(),c==="application/json"?(s.headers=new Headers({"Content-Type":c}),s.body=JSON.stringify(n.json)):c==="text/plain"?s.body=n.text:c==="application/x-www-form-urlencoded"&&n.formData?s.body=Ex(n.formData):s.body=n.formData}return new Request(a,s)}function Ex(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function CT(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function cO(e,t,r,n=!1,a=!1){let s={},o=null,c,f=!1,d={},h=r&&Xa(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let x=g.route.id,y=t[x];if(Zt(!Cl(y),"Cannot handle redirect results in processLoaderData"),Xa(y)){let b=y.error;if(h!==void 0&&(b=h,h=void 0),o=o||{},a)o[x]=b;else{let v=Do(e,x);o[v.route.id]==null&&(o[v.route.id]=b)}n||(s[x]=n_),f||(f=!0,c=sd(y.error)?y.error.status:500),y.headers&&(d[x]=y.headers)}else s[x]=y.data,y.statusCode&&y.statusCode!==200&&!f&&(c=y.statusCode),y.headers&&(d[x]=y.headers)}),h!==void 0&&r&&(o={[r[0]]:h},r[2]&&(s[r[2]]=void 0)),{loaderData:s,errors:o,statusCode:c||200,loaderHeaders:d}}function ET(e,t,r,n,a,s){let{loaderData:o,errors:c}=cO(t,r,n);return a.filter(f=>!f.matches||f.matches.some(d=>d.shouldLoad)).forEach(f=>{let{key:d,match:h,controller:g}=f;if(g&&g.signal.aborted)return;let x=s[d];if(Zt(x,"Did not find corresponding fetcher result"),Xa(x)){let y=Do(e.matches,h?.route.id);c&&c[y.route.id]||(c={...c,[y.route.id]:x.error}),e.fetchers.delete(d)}else if(Cl(x))Zt(!1,"Unhandled fetcher revalidation redirect");else{let y=Ao(x.data);e.fetchers.set(d,y)}}),{loaderData:o,errors:c}}function _T(e,t,r,n){let a=Object.entries(t).filter(([,s])=>s!==n_).reduce((s,[o,c])=>(s[o]=c,s),{});for(let s of r){let o=s.route.id;if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o)&&s.route.loader&&(a[o]=e[o]),n&&n.hasOwnProperty(o))break}return a}function kT(e){return e?Xa(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Do(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function AT(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function wi(e,{pathname:t,routeId:r,method:n,type:a,message:s}={}){let o="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(o="Bad Request",n&&t&&r?c=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(o="Forbidden",c=`Route "${r}" does not match URL "${t}"`):e===404?(o="Not Found",c=`No route matches URL "${t}"`):e===405&&(o="Method Not Allowed",n&&t&&r?c=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(c=`Invalid request method "${n.toUpperCase()}"`)),new op(e||500,o,new Error(c),!0)}function yh(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Cl(a))return{key:n,result:a}}}function u_(e){let t=typeof e=="string"?Vo(e):e;return jo({...t,hash:""})}function uO(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function fO(e){return f_(e.result)&&X8.has(e.result.status)}function Xa(e){return e.type==="error"}function Cl(e){return(e&&e.type)==="redirect"}function RT(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function f_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function dO(e){return G8.has(e.toUpperCase())}function _a(e){return W8.has(e.toUpperCase())}function Rv(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Gh(e,t){let r=typeof t=="string"?Vo(t).search:t.search;if(e[e.length-1].route.index&&Rv(r||""))return e[e.length-1];let n=e_(e);return n[n.length-1]}function OT(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:s,json:o}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(s!=null)return{formMethod:t,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function Bg(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function hO(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function wf(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function pO(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ao(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function mO(e,t){try{let r=e.sessionStorage.getItem(r_);if(r){let n=JSON.parse(r);for(let[a,s]of Object.entries(n||{}))s&&Array.isArray(s)&&t.set(a,new Set(s||[]))}}catch{}}function gO(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(r_,JSON.stringify(r))}catch(n){sn(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}function xO(){let e,t,r=new Promise((n,a)=>{e=async s=>{n(s);try{await r}catch{}},t=async s=>{a(s);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var Gl=_.createContext(null);Gl.displayName="DataRouter";var Ld=_.createContext(null);Ld.displayName="DataRouterState";_.createContext(!1);var Ov=_.createContext({isTransitioning:!1});Ov.displayName="ViewTransition";var d_=_.createContext(new Map);d_.displayName="Fetchers";var vO=_.createContext(null);vO.displayName="Await";var vs=_.createContext(null);vs.displayName="Navigation";var Bp=_.createContext(null);Bp.displayName="Location";var ys=_.createContext({outlet:null,matches:[],isDataRoute:!1});ys.displayName="Route";var Dv=_.createContext(null);Dv.displayName="RouteError";function yO(e,{relative:t}={}){Zt(Id(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=_.useContext(vs),{hash:a,pathname:s,search:o}=Bd(e,{relative:t}),c=s;return r!=="/"&&(c=s==="/"?r:ps([r,s])),n.createHref({pathname:c,search:o,hash:a})}function Id(){return _.useContext(Bp)!=null}function Zs(){return Zt(Id(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Bp).location}var h_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function p_(e){_.useContext(vs).static||_.useLayoutEffect(e)}function Mv(){let{isDataRoute:e}=_.useContext(ys);return e?NO():bO()}function bO(){Zt(Id(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(Gl),{basename:t,navigator:r}=_.useContext(vs),{matches:n}=_.useContext(ys),{pathname:a}=Zs(),s=JSON.stringify(_v(n)),o=_.useRef(!1);return p_(()=>{o.current=!0}),_.useCallback((f,d={})=>{if(sn(o.current,h_),!o.current)return;if(typeof f=="number"){r.go(f);return}let h=kv(f,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ps([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,s,a,e])}var SO=_.createContext(null);function wO(e){let t=_.useContext(ys).outlet;return t&&_.createElement(SO.Provider,{value:e},t)}function Bd(e,{relative:t}={}){let{matches:r}=_.useContext(ys),{pathname:n}=Zs(),a=JSON.stringify(_v(r));return _.useMemo(()=>kv(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function TO(e,t,r,n){Zt(Id(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=_.useContext(vs),{matches:s}=_.useContext(ys),o=s[s.length-1],c=o?o.params:{},f=o?o.pathname:"/",d=o?o.pathnameBase:"/",h=o&&o.route;{let C=h&&h.path||"";m_(f,!h||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${C}">) 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="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let g=Zs(),x;x=g;let y=x.pathname||"/",b=y;if(d!=="/"){let C=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(C.length).join("/")}let v=Oo(e,{pathname:b});return sn(h||v!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),sn(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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.`),AO(v&&v.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:ps([d,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:ps([d,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,r,n)}function CO(){let e=FO(),t=sd(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)",a={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:s},"ErrorBoundary")," or"," ",_.createElement("code",{style:s},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),r?_.createElement("pre",{style:a},r):null,o)}var EO=_.createElement(CO,null),_O=class extends _.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?_.createElement(ys.Provider,{value:this.props.routeContext},_.createElement(Dv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kO({routeContext:e,match:t,children:r}){let n=_.useContext(Gl);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(ys.Provider,{value:e},r)}function AO(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 a=e,s=r?.errors;if(s!=null){let f=a.findIndex(d=>d.route.id&&s?.[d.route.id]!==void 0);Zt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let o=!1,c=-1;if(r)for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=f),d.route.id){let{loaderData:h,errors:g}=r,x=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||x){o=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,d,h)=>{let g,x=!1,y=null,b=null;r&&(g=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||EO,o&&(c<0&&h===0?(m_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,b=null):c===h&&(x=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,h+1)),w=()=>{let C;return g?C=y:x?C=b:d.route.Component?C=_.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=f,_.createElement(kO,{match:d,routeContext:{outlet:f,matches:v,isDataRoute:r!=null},children:C})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?_.createElement(_O,{location:r.location,revalidation:r.revalidation,component:y,error:g,children:w(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):w()},null)}function Fv(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function RO(e){let t=_.useContext(Gl);return Zt(t,Fv(e)),t}function OO(e){let t=_.useContext(Ld);return Zt(t,Fv(e)),t}function DO(e){let t=_.useContext(ys);return Zt(t,Fv(e)),t}function Nv(e){let t=DO(e),r=t.matches[t.matches.length-1];return Zt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function MO(){return Nv("useRouteId")}function FO(){let e=_.useContext(Dv),t=OO("useRouteError"),r=Nv("useRouteError");return e!==void 0?e:t.errors?.[r]}function NO(){let{router:e}=RO("useNavigate"),t=Nv("useNavigate"),r=_.useRef(!1);return p_(()=>{r.current=!0}),_.useCallback(async(a,s={})=>{sn(r.current,h_),r.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var DT={};function m_(e,t,r){!t&&!DT[e]&&(DT[e]=!0,sn(!1,r))}var MT={};function FT(e,t){!e&&!MT[t]&&(MT[t]=!0,console.warn(t))}function PO(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&sn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:_.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&sn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&sn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var jO=["HydrateFallback","hydrateFallbackElement"],LO=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function IO({router:e,flushSync:t}){let[r,n]=_.useState(e.state),[a,s]=_.useState(),[o,c]=_.useState({isTransitioning:!1}),[f,d]=_.useState(),[h,g]=_.useState(),[x,y]=_.useState(),b=_.useRef(new Map),v=_.useCallback((E,{deletedFetchers:D,flushSync:M,viewTransitionOpts:A})=>{E.fetchers.forEach((N,F)=>{N.data!==void 0&&b.current.set(F,N.data)}),D.forEach(N=>b.current.delete(N)),FT(M===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let O=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(FT(A==null||O,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!A||!O){t&&M?t(()=>n(E)):_.startTransition(()=>n(E));return}if(t&&M){t(()=>{h&&(f&&f.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:A.currentLocation,nextLocation:A.nextLocation})});let N=e.window.document.startViewTransition(()=>{t(()=>n(E))});N.finished.finally(()=>{t(()=>{d(void 0),g(void 0),s(void 0),c({isTransitioning:!1})})}),t(()=>g(N));return}h?(f&&f.resolve(),h.skipTransition(),y({state:E,currentLocation:A.currentLocation,nextLocation:A.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}))},[e.window,t,h,f]);_.useLayoutEffect(()=>e.subscribe(v),[e,v]),_.useEffect(()=>{o.isTransitioning&&!o.flushSync&&d(new LO)},[o]),_.useEffect(()=>{if(f&&a&&e.window){let E=a,D=f.promise,M=e.window.document.startViewTransition(async()=>{_.startTransition(()=>n(E)),await D});M.finished.finally(()=>{d(void 0),g(void 0),s(void 0),c({isTransitioning:!1})}),g(M)}},[a,f,e.window]),_.useEffect(()=>{f&&a&&r.location.key===a.location.key&&f.resolve()},[f,h,r.location,a]),_.useEffect(()=>{!o.isTransitioning&&x&&(s(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),y(void 0))},[o.isTransitioning,x]);let w=_.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:E=>e.navigate(E),push:(E,D,M)=>e.navigate(E,{state:D,preventScrollReset:M?.preventScrollReset}),replace:(E,D,M)=>e.navigate(E,{replace:!0,state:D,preventScrollReset:M?.preventScrollReset})}),[e]),C=e.basename||"/",k=_.useMemo(()=>({router:e,navigator:w,static:!1,basename:C}),[e,w,C]);return _.createElement(_.Fragment,null,_.createElement(Gl.Provider,{value:k},_.createElement(Ld.Provider,{value:r},_.createElement(d_.Provider,{value:b.current},_.createElement(Ov.Provider,{value:o},_.createElement($O,{basename:C,location:r.location,navigationType:r.historyAction,navigator:w},_.createElement(BO,{routes:e.routes,future:e.future,state:r})))))),null)}var BO=_.memo(zO);function zO({routes:e,future:t,state:r}){return TO(e,void 0,r,t)}function UO(e){return wO(e.context)}function $O({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:s=!1}){Zt(!Id(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:o,navigator:a,static:s,future:{}}),[o,a,s]);typeof r=="string"&&(r=Vo(r));let{pathname:f="/",search:d="",hash:h="",state:g=null,key:x="default"}=r,y=_.useMemo(()=>{let b=Ri(f,o);return b==null?null:{location:{pathname:b,search:d,hash:h,state:g,key:x},navigationType:n}},[o,f,d,h,g,x,n]);return sn(y!=null,`<Router basename="${o}"> is not able to match the URL "${f}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:_.createElement(vs.Provider,{value:c},_.createElement(Bp.Provider,{children:t,value:y}))}var Xh="get",Yh="application/x-www-form-urlencoded";function zp(e){return e!=null&&typeof e.tagName=="string"}function HO(e){return zp(e)&&e.tagName.toLowerCase()==="button"}function WO(e){return zp(e)&&e.tagName.toLowerCase()==="form"}function VO(e){return zp(e)&&e.tagName.toLowerCase()==="input"}function GO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XO(e,t){return e.button===0&&(!t||t==="_self")&&!GO(e)}function _x(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function YO(e,t){let r=_x(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(s=>{r.append(a,s)})}),r}var bh=null;function qO(){if(bh===null)try{new FormData(document.createElement("form"),0),bh=!1}catch{bh=!0}return bh}var KO=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zg(e){return e!=null&&!KO.has(e)?(sn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yh}"`),null):e}function QO(e,t){let r,n,a,s,o;if(WO(e)){let c=e.getAttribute("action");n=c?Ri(c,t):null,r=e.getAttribute("method")||Xh,a=zg(e.getAttribute("enctype"))||Yh,s=new FormData(e)}else if(HO(e)||VO(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(n=f?Ri(f,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||Xh,a=zg(e.getAttribute("formenctype"))||zg(c.getAttribute("enctype"))||Yh,s=new FormData(c,e),!qO()){let{name:d,type:h,value:g}=e;if(h==="image"){let x=d?`${d}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else d&&s.append(d,g)}}else{if(zp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Xh,n=null,a=Yh,o=e}return s&&a==="text/plain"&&(o=s,s=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ZO(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&&Ri(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function JO(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 eD(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 tD(e,t,r){let n=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let o=await JO(s,r);return o.links?o.links():[]}return[]}));return iD(n.flat(1).filter(eD).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function NT(e,t,r,n,a,s){let o=(f,d)=>r[d]?f.route.id!==r[d].route.id:!0,c=(f,d)=>r[d].pathname!==f.pathname||r[d].route.path?.endsWith("*")&&r[d].params["*"]!==f.params["*"];return s==="assets"?t.filter((f,d)=>o(f,d)||c(f,d)):s==="data"?t.filter((f,d)=>{let h=n.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(o(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function rD(e,t,{includeHydrateFallback:r}={}){return nD(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function nD(e){return[...new Set(e)]}function aD(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function iD(e,t){let r=new Set;return new Set(t),e.reduce((n,a)=>{let s=JSON.stringify(aD(a));return r.has(s)||(r.add(s),n.push({key:s,link:a})),n},[])}function g_(){let e=_.useContext(Gl);return Pv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sD(){let e=_.useContext(Ld);return Pv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var jv=_.createContext(void 0);jv.displayName="FrameworkContext";function x_(){let e=_.useContext(jv);return Pv(e,"You must render this element inside a <HydratedRouter> element"),e}function oD(e,t){let r=_.useContext(jv),[n,a]=_.useState(!1),[s,o]=_.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:h,onTouchStart:g}=t,x=_.useRef(null);_.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let v=C=>{C.forEach(k=>{o(k.isIntersecting)})},w=new IntersectionObserver(v,{threshold:.5});return x.current&&w.observe(x.current),()=>{w.disconnect()}}},[e]),_.useEffect(()=>{if(n){let v=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(v)}}},[n]);let y=()=>{a(!0)},b=()=>{a(!1),o(!1)};return r?e!=="intent"?[s,x,{}]:[s,x,{onFocus:Tf(c,y),onBlur:Tf(f,b),onMouseEnter:Tf(d,y),onMouseLeave:Tf(h,b),onTouchStart:Tf(g,y)}]:[!1,x,{}]}function Tf(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function lD({page:e,...t}){let{router:r}=g_(),n=_.useMemo(()=>Oo(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?_.createElement(uD,{page:e,matches:n,...t}):null}function cD(e){let{manifest:t,routeModules:r}=x_(),[n,a]=_.useState([]);return _.useEffect(()=>{let s=!1;return tD(e,t,r).then(o=>{s||a(o)}),()=>{s=!0}},[e,t,r]),n}function uD({page:e,matches:t,...r}){let n=Zs(),{manifest:a,routeModules:s}=x_(),{basename:o}=g_(),{loaderData:c,matches:f}=sD(),d=_.useMemo(()=>NT(e,t,f,a,n,"data"),[e,t,f,a,n]),h=_.useMemo(()=>NT(e,t,f,a,n,"assets"),[e,t,f,a,n]),g=_.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let b=new Set,v=!1;if(t.forEach(C=>{let k=a.routes[C.route.id];!k||!k.hasLoader||(!d.some(E=>E.route.id===C.route.id)&&C.route.id in c&&s[C.route.id]?.shouldRevalidate||k.hasClientLoader?v=!0:b.add(C.route.id))}),b.size===0)return[];let w=ZO(e,o,"data");return v&&b.size>0&&w.searchParams.set("_routes",t.filter(C=>b.has(C.route.id)).map(C=>C.route.id).join(",")),[w.pathname+w.search]},[o,c,n,a,d,t,e,s]),x=_.useMemo(()=>rD(h,a),[h,a]),y=cD(h);return _.createElement(_.Fragment,null,g.map(b=>_.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...r})),x.map(b=>_.createElement("link",{key:b,rel:"modulepreload",href:b,...r})),y.map(({key:b,link:v})=>_.createElement("link",{key:b,nonce:r.nonce,...v})))}function fD(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var v_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{v_&&(window.__reactRouterVersion="7.8.1")}catch{}function dD(e,t){return Z8({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:x8({window:t?.window}),hydrationData:hD(),routes:e,mapRouteProperties:PO,hydrationRouteProperties:jO,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function hD(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:pD(e.errors)}),e}function pD(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new op(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let s=window[a.__subType];if(typeof s=="function")try{let o=new s(a.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let s=new Error(a.message);s.stack="",r[n]=s}}else r[n]=a;return r}var y_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,b_=_.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:s,replace:o,state:c,target:f,to:d,preventScrollReset:h,viewTransition:g,...x},y){let{basename:b}=_.useContext(vs),v=typeof d=="string"&&y_.test(d),w,C=!1;if(typeof d=="string"&&v&&(w=d,v_))try{let F=new URL(window.location.href),P=d.startsWith("//")?new URL(F.protocol+d):new URL(d),j=Ri(P.pathname,b);P.origin===F.origin&&j!=null?d=j+P.search+P.hash:C=!0}catch{sn(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let k=yO(d,{relative:a}),[E,D,M]=oD(n,x),A=vD(d,{replace:o,state:c,target:f,preventScrollReset:h,relative:a,viewTransition:g});function O(F){t&&t(F),F.defaultPrevented||A(F)}let N=_.createElement("a",{...x,...M,href:w||k,onClick:C||s?t:O,ref:fD(y,D),target:f,"data-discover":!v&&r==="render"?"true":void 0});return E&&!v?_.createElement(_.Fragment,null,N,_.createElement(lD,{page:k})):N});b_.displayName="Link";var mD=_.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:a=!1,style:s,to:o,viewTransition:c,children:f,...d},h){let g=Bd(o,{relative:d.relative}),x=Zs(),y=_.useContext(Ld),{navigator:b,basename:v}=_.useContext(vs),w=y!=null&&CD(g)&&c===!0,C=b.encodeLocation?b.encodeLocation(g).pathname:g.pathname,k=x.pathname,E=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;r||(k=k.toLowerCase(),E=E?E.toLowerCase():null,C=C.toLowerCase()),E&&v&&(E=Ri(E,v)||E);const D=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let M=k===C||!a&&k.startsWith(C)&&k.charAt(D)==="/",A=E!=null&&(E===C||!a&&E.startsWith(C)&&E.charAt(C.length)==="/"),O={isActive:M,isPending:A,isTransitioning:w},N=M?t:void 0,F;typeof n=="function"?F=n(O):F=[n,M?"active":null,A?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let P=typeof s=="function"?s(O):s;return _.createElement(b_,{...d,"aria-current":N,className:F,ref:h,style:P,to:o,viewTransition:c},typeof f=="function"?f(O):f)});mD.displayName="NavLink";var gD=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:s,method:o=Xh,action:c,onSubmit:f,relative:d,preventScrollReset:h,viewTransition:g,...x},y)=>{let b=wD(),v=TD(c,{relative:d}),w=o.toLowerCase()==="get"?"get":"post",C=typeof c=="string"&&y_.test(c),k=E=>{if(f&&f(E),E.defaultPrevented)return;E.preventDefault();let D=E.nativeEvent.submitter,M=D?.getAttribute("formmethod")||o;b(D||E.currentTarget,{fetcherKey:t,method:M,navigate:r,replace:a,state:s,relative:d,preventScrollReset:h,viewTransition:g})};return _.createElement("form",{ref:y,method:w,action:v,onSubmit:n?f:k,...x,"data-discover":!C&&e==="render"?"true":void 0})});gD.displayName="Form";function xD(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function S_(e){let t=_.useContext(Gl);return Zt(t,xD(e)),t}function vD(e,{target:t,replace:r,state:n,preventScrollReset:a,relative:s,viewTransition:o}={}){let c=Mv(),f=Zs(),d=Bd(e,{relative:s});return _.useCallback(h=>{if(XO(h,t)){h.preventDefault();let g=r!==void 0?r:jo(f)===jo(d);c(e,{replace:g,state:n,preventScrollReset:a,relative:s,viewTransition:o})}},[f,c,d,r,n,t,e,a,s,o])}function yD(e){sn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=_.useRef(_x(e)),r=_.useRef(!1),n=Zs(),a=_.useMemo(()=>YO(n.search,r.current?null:t.current),[n.search]),s=Mv(),o=_.useCallback((c,f)=>{const d=_x(typeof c=="function"?c(new URLSearchParams(a)):c);r.current=!0,s("?"+d,f)},[s,a]);return[a,o]}var bD=0,SD=()=>`__${String(++bD)}__`;function wD(){let{router:e}=S_("useSubmit"),{basename:t}=_.useContext(vs),r=MO();return _.useCallback(async(n,a={})=>{let{action:s,method:o,encType:c,formData:f,body:d}=QO(n,t);if(a.navigate===!1){let h=a.fetcherKey||SD();await e.fetch(h,r,a.action||s,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||o,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||o,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function TD(e,{relative:t}={}){let{basename:r}=_.useContext(vs),n=_.useContext(ys);Zt(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),s={...Bd(e||".",{relative:t})},o=Zs();if(e==null){s.search=o.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(h=>h==="")){c.delete("index"),f.filter(g=>g).forEach(g=>c.append("index",g));let h=c.toString();s.search=h?`?${h}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:ps([r,s.pathname])),jo(s)}function CD(e,{relative:t}={}){let r=_.useContext(Ov);Zt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=S_("useViewTransitionState"),a=Bd(e,{relative:t});if(!r.isTransitioning)return!1;let s=Ri(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=Ri(r.nextLocation.pathname,n)||r.nextLocation.pathname;return sp(a.pathname,o)!=null||sp(a.pathname,s)!=null}var Lv=q4();const Sh=Cv(Lv);function ED(e){return _.createElement(IO,{flushSync:Lv.flushSync,...e})}function Hs(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const Gi="$$material";function cp(){return cp=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},cp.apply(null,arguments)}function _D(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function kD(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var AD=(function(){function e(r){var n=this;this._insertTag=function(a){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,s),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kD(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=_D(a);try{s.insertRule(n,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Gn="-ms-",up="-moz-",dr="-webkit-",w_="comm",Iv="rule",Bv="decl",RD="@import",T_="@keyframes",OD="@layer",DD=Math.abs,Up=String.fromCharCode,MD=Object.assign;function FD(e,t){return Ln(e,0)^45?(((t<<2^Ln(e,0))<<2^Ln(e,1))<<2^Ln(e,2))<<2^Ln(e,3):0}function C_(e){return e.trim()}function ND(e,t){return(e=t.exec(e))?e[0]:e}function hr(e,t,r){return e.replace(t,r)}function kx(e,t){return e.indexOf(t)}function Ln(e,t){return e.charCodeAt(t)|0}function od(e,t,r){return e.slice(t,r)}function cs(e){return e.length}function zv(e){return e.length}function wh(e,t){return t.push(e),e}function PD(e,t){return e.map(t).join("")}var $p=1,iu=1,E_=0,Na=0,mn=0,mu="";function Hp(e,t,r,n,a,s,o){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:$p,column:iu,length:o,return:""}}function Cf(e,t){return MD(Hp("",null,null,"",null,null,0),e,{length:-e.length},t)}function jD(){return mn}function LD(){return mn=Na>0?Ln(mu,--Na):0,iu--,mn===10&&(iu=1,$p--),mn}function ei(){return mn=Na<E_?Ln(mu,Na++):0,iu++,mn===10&&(iu=1,$p++),mn}function ms(){return Ln(mu,Na)}function qh(){return Na}function zd(e,t){return od(mu,e,t)}function ld(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function __(e){return $p=iu=1,E_=cs(mu=e),Na=0,[]}function k_(e){return mu="",e}function Kh(e){return C_(zd(Na-1,Ax(e===91?e+2:e===40?e+1:e)))}function ID(e){for(;(mn=ms())&&mn<33;)ei();return ld(e)>2||ld(mn)>3?"":" "}function BD(e,t){for(;--t&&ei()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return zd(e,qh()+(t<6&&ms()==32&&ei()==32))}function Ax(e){for(;ei();)switch(mn){case e:return Na;case 34:case 39:e!==34&&e!==39&&Ax(mn);break;case 40:e===41&&Ax(e);break;case 92:ei();break}return Na}function zD(e,t){for(;ei()&&e+mn!==57;)if(e+mn===84&&ms()===47)break;return"/*"+zd(t,Na-1)+"*"+Up(e===47?e:ei())}function UD(e){for(;!ld(ms());)ei();return zd(e,Na)}function $D(e){return k_(Qh("",null,null,null,[""],e=__(e),0,[0],e))}function Qh(e,t,r,n,a,s,o,c,f){for(var d=0,h=0,g=o,x=0,y=0,b=0,v=1,w=1,C=1,k=0,E="",D=a,M=s,A=n,O=E;w;)switch(b=k,k=ei()){case 40:if(b!=108&&Ln(O,g-1)==58){kx(O+=hr(Kh(k),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:O+=Kh(k);break;case 9:case 10:case 13:case 32:O+=ID(b);break;case 92:O+=BD(qh()-1,7);continue;case 47:switch(ms()){case 42:case 47:wh(HD(zD(ei(),qh()),t,r),f);break;default:O+="/"}break;case 123*v:c[d++]=cs(O)*C;case 125*v:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+h:C==-1&&(O=hr(O,/\f/g,"")),y>0&&cs(O)-g&&wh(y>32?jT(O+";",n,r,g-1):jT(hr(O," ","")+";",n,r,g-2),f);break;case 59:O+=";";default:if(wh(A=PT(O,t,r,d,h,a,c,E,D=[],M=[],g),s),k===123)if(h===0)Qh(O,t,A,A,D,s,g,c,M);else switch(x===99&&Ln(O,3)===110?100:x){case 100:case 108:case 109:case 115:Qh(e,A,A,n&&wh(PT(e,A,A,0,0,a,c,E,a,D=[],g),M),a,M,g,c,n?D:M);break;default:Qh(O,A,A,A,[""],M,0,c,M)}}d=h=y=0,v=C=1,E=O="",g=o;break;case 58:g=1+cs(O),y=b;default:if(v<1){if(k==123)--v;else if(k==125&&v++==0&&LD()==125)continue}switch(O+=Up(k),k*v){case 38:C=h>0?1:(O+="\f",-1);break;case 44:c[d++]=(cs(O)-1)*C,C=1;break;case 64:ms()===45&&(O+=Kh(ei())),x=ms(),h=g=cs(E=O+=UD(qh())),k++;break;case 45:b===45&&cs(O)==2&&(v=0)}}return s}function PT(e,t,r,n,a,s,o,c,f,d,h){for(var g=a-1,x=a===0?s:[""],y=zv(x),b=0,v=0,w=0;b<n;++b)for(var C=0,k=od(e,g+1,g=DD(v=o[b])),E=e;C<y;++C)(E=C_(v>0?x[C]+" "+k:hr(k,/&\f/g,x[C])))&&(f[w++]=E);return Hp(e,t,r,a===0?Iv:c,f,d,h)}function HD(e,t,r){return Hp(e,t,r,w_,Up(jD()),od(e,2,-2),0)}function jT(e,t,r,n){return Hp(e,t,r,Bv,od(e,0,n),od(e,n+1,-1),n)}function Kc(e,t){for(var r="",n=zv(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function WD(e,t,r,n){switch(e.type){case OD:if(e.children.length)break;case RD:case Bv:return e.return=e.return||e.value;case w_:return"";case T_:return e.return=e.value+"{"+Kc(e.children,n)+"}";case Iv:e.value=e.props.join(",")}return cs(r=Kc(e.children,n))?e.return=e.value+"{"+r+"}":""}function VD(e){var t=zv(e);return function(r,n,a,s){for(var o="",c=0;c<t;c++)o+=e[c](r,n,a,s)||"";return o}}function GD(e){return function(t){t.root||(t=t.return)&&e(t)}}function A_(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var XD=function(t,r,n){for(var a=0,s=0;a=s,s=ms(),a===38&&s===12&&(r[n]=1),!ld(s);)ei();return zd(t,Na)},YD=function(t,r){var n=-1,a=44;do switch(ld(a)){case 0:a===38&&ms()===12&&(r[n]=1),t[n]+=XD(Na-1,r,n);break;case 2:t[n]+=Kh(a);break;case 4:if(a===44){t[++n]=ms()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Up(a)}while(a=ei());return t},qD=function(t,r){return k_(YD(__(t),r))},LT=new WeakMap,KD=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!LT.get(n))&&!a){LT.set(t,!0);for(var s=[],o=qD(r,s),c=n.props,f=0,d=0;f<o.length;f++)for(var h=0;h<c.length;h++,d++)t.props[d]=s[f]?o[f].replace(/&\f/g,c[h]):c[h]+" "+o[f]}}},QD=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function R_(e,t){switch(FD(e,t)){case 5103:return dr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dr+e+up+e+Gn+e+e;case 6828:case 4268:return dr+e+Gn+e+e;case 6165:return dr+e+Gn+"flex-"+e+e;case 5187:return dr+e+hr(e,/(\w+).+(:[^]+)/,dr+"box-$1$2"+Gn+"flex-$1$2")+e;case 5443:return dr+e+Gn+"flex-item-"+hr(e,/flex-|-self/,"")+e;case 4675:return dr+e+Gn+"flex-line-pack"+hr(e,/align-content|flex-|-self/,"")+e;case 5548:return dr+e+Gn+hr(e,"shrink","negative")+e;case 5292:return dr+e+Gn+hr(e,"basis","preferred-size")+e;case 6060:return dr+"box-"+hr(e,"-grow","")+dr+e+Gn+hr(e,"grow","positive")+e;case 4554:return dr+hr(e,/([^-])(transform)/g,"$1"+dr+"$2")+e;case 6187:return hr(hr(hr(e,/(zoom-|grab)/,dr+"$1"),/(image-set)/,dr+"$1"),e,"")+e;case 5495:case 3959:return hr(e,/(image-set\([^]*)/,dr+"$1$`$1");case 4968:return hr(hr(e,/(.+:)(flex-)?(.*)/,dr+"box-pack:$3"+Gn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dr+e+e;case 4095:case 3583:case 4068:case 2532:return hr(e,/(.+)-inline(.+)/,dr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(cs(e)-1-t>6)switch(Ln(e,t+1)){case 109:if(Ln(e,t+4)!==45)break;case 102:return hr(e,/(.+:)(.+)-([^]+)/,"$1"+dr+"$2-$3$1"+up+(Ln(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~kx(e,"stretch")?R_(hr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ln(e,t+1)!==115)break;case 6444:switch(Ln(e,cs(e)-3-(~kx(e,"!important")&&10))){case 107:return hr(e,":",":"+dr)+e;case 101:return hr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dr+(Ln(e,14)===45?"inline-":"")+"box$3$1"+dr+"$2$3$1"+Gn+"$2box$3")+e}break;case 5936:switch(Ln(e,t+11)){case 114:return dr+e+Gn+hr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dr+e+Gn+hr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dr+e+Gn+hr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dr+e+Gn+e+e}return e}var ZD=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Bv:t.return=R_(t.value,t.length);break;case T_:return Kc([Cf(t,{value:hr(t.value,"@","@"+dr)})],a);case Iv:if(t.length)return PD(t.props,function(s){switch(ND(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kc([Cf(t,{props:[hr(s,/:(read-\w+)/,":"+up+"$1")]})],a);case"::placeholder":return Kc([Cf(t,{props:[hr(s,/:(plac\w+)/,":"+dr+"input-$1")]}),Cf(t,{props:[hr(s,/:(plac\w+)/,":"+up+"$1")]}),Cf(t,{props:[hr(s,/:(plac\w+)/,Gn+"input-$1")]})],a)}return""})}},JD=[ZD],eM=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var w=v.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=t.stylisPlugins||JD,s={},o,c=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var w=v.getAttribute("data-emotion").split(" "),C=1;C<w.length;C++)s[w[C]]=!0;c.push(v)});var f,d=[KD,QD];{var h,g=[WD,GD(function(v){h.insert(v)})],x=VD(d.concat(a,g)),y=function(w){return Kc($D(w),x)};f=function(w,C,k,E){h=k,y(w?w+"{"+C.styles+"}":C.styles),E&&(b.inserted[C.name]=!0)}}var b={key:r,sheet:new AD({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:f};return b.sheet.hydrate(c),b},Ug={exports:{}},mr={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var IT;function tM(){if(IT)return mr;IT=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function E(M){if(typeof M=="object"&&M!==null){var A=M.$$typeof;switch(A){case t:switch(M=M.type,M){case f:case d:case n:case s:case a:case g:return M;default:switch(M=M&&M.$$typeof,M){case c:case h:case b:case y:case o:return M;default:return A}}case r:return A}}}function D(M){return E(M)===d}return mr.AsyncMode=f,mr.ConcurrentMode=d,mr.ContextConsumer=c,mr.ContextProvider=o,mr.Element=t,mr.ForwardRef=h,mr.Fragment=n,mr.Lazy=b,mr.Memo=y,mr.Portal=r,mr.Profiler=s,mr.StrictMode=a,mr.Suspense=g,mr.isAsyncMode=function(M){return D(M)||E(M)===f},mr.isConcurrentMode=D,mr.isContextConsumer=function(M){return E(M)===c},mr.isContextProvider=function(M){return E(M)===o},mr.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},mr.isForwardRef=function(M){return E(M)===h},mr.isFragment=function(M){return E(M)===n},mr.isLazy=function(M){return E(M)===b},mr.isMemo=function(M){return E(M)===y},mr.isPortal=function(M){return E(M)===r},mr.isProfiler=function(M){return E(M)===s},mr.isStrictMode=function(M){return E(M)===a},mr.isSuspense=function(M){return E(M)===g},mr.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===d||M===s||M===a||M===g||M===x||typeof M=="object"&&M!==null&&(M.$$typeof===b||M.$$typeof===y||M.$$typeof===o||M.$$typeof===c||M.$$typeof===h||M.$$typeof===w||M.$$typeof===C||M.$$typeof===k||M.$$typeof===v)},mr.typeOf=E,mr}var BT;function rM(){return BT||(BT=1,Ug.exports=tM()),Ug.exports}var $g,zT;function nM(){if(zT)return $g;zT=1;var e=rM(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=n,s[e.Memo]=a;function o(b){return e.isMemo(b)?a:s[b.$$typeof]||t}var c=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,x=Object.prototype;function y(b,v,w){if(typeof v!="string"){if(x){var C=g(v);C&&C!==x&&y(b,C,w)}var k=f(v);d&&(k=k.concat(d(v)));for(var E=o(b),D=o(v),M=0;M<k.length;++M){var A=k[M];if(!r[A]&&!(w&&w[A])&&!(D&&D[A])&&!(E&&E[A])){var O=h(v,A);try{c(b,A,O)}catch{}}}}return b}return $g=y,$g}nM();var aM=!0;function O_(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var Uv=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||aM===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},$v=function(t,r,n){Uv(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function iM(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oM=/[A-Z]|^ms/g,lM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,D_=function(t){return t.charCodeAt(1)===45},UT=function(t){return t!=null&&typeof t!="boolean"},Hg=A_(function(e){return D_(e)?e:e.replace(oM,"-$&").toLowerCase()}),$T=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(lM,function(n,a,s){return us={name:a,styles:s,next:us},a})}return sM[t]!==1&&!D_(t)&&typeof r=="number"&&r!==0?r+"px":r};function cd(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return us={name:a.name,styles:a.styles,next:us},a.name;var s=r;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)us={name:o.name,styles:o.styles,next:us},o=o.next;var c=s.styles+";";return c}return cM(e,t,r)}case"function":{if(e!==void 0){var f=us,d=r(e);return us=f,cd(e,t,d)}break}}var h=r;if(t==null)return h;var g=t[h];return g!==void 0?g:h}function cM(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=cd(e,t,r[a])+";";else for(var s in r){var o=r[s];if(typeof o!="object"){var c=o;t!=null&&t[c]!==void 0?n+=s+"{"+t[c]+"}":UT(c)&&(n+=Hg(s)+":"+$T(s,c)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var f=0;f<o.length;f++)UT(o[f])&&(n+=Hg(s)+":"+$T(s,o[f])+";");else{var d=cd(e,t,o);switch(s){case"animation":case"animationName":{n+=Hg(s)+":"+d+";";break}default:n+=s+"{"+d+"}"}}}return n}var HT=/label:\s*([^\s;{]+)\s*(;|$)/g,us;function Ud(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";us=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,a+=cd(r,t,s);else{var o=s;a+=o[0]}for(var c=1;c<e.length;c++)if(a+=cd(r,t,e[c]),n){var f=s;a+=f[c]}HT.lastIndex=0;for(var d="",h;(h=HT.exec(a))!==null;)d+="-"+h[1];var g=iM(a)+d;return{name:g,styles:a,next:us}}var uM=function(t){return t()},M_=ip.useInsertionEffect?ip.useInsertionEffect:!1,F_=M_||uM,WT=M_||_.useLayoutEffect,N_=_.createContext(typeof HTMLElement<"u"?eM({key:"css"}):null);N_.Provider;var Hv=function(t){return _.forwardRef(function(r,n){var a=_.useContext(N_);return t(r,a,n)})},$d=_.createContext({}),Wv={}.hasOwnProperty,Rx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fM=function(t,r){var n={};for(var a in r)Wv.call(r,a)&&(n[a]=r[a]);return n[Rx]=t,n},dM=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Uv(r,n,a),F_(function(){return $v(r,n,a)}),null},hM=Hv(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Rx],s=[n],o="";typeof e.className=="string"?o=O_(t.registered,s,e.className):e.className!=null&&(o=e.className+" ");var c=Ud(s,void 0,_.useContext($d));o+=t.key+"-"+c.name;var f={};for(var d in e)Wv.call(e,d)&&d!=="css"&&d!==Rx&&(f[d]=e[d]);return f.className=o,r&&(f.ref=r),_.createElement(_.Fragment,null,_.createElement(dM,{cache:t,serialized:c,isStringTag:typeof a=="string"}),_.createElement(a,f))}),pM=hM,VT=function(t,r){var n=arguments;if(r==null||!Wv.call(r,"css"))return _.createElement.apply(void 0,n);var a=n.length,s=new Array(a);s[0]=pM,s[1]=fM(t,r);for(var o=2;o<a;o++)s[o]=n[o];return _.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(VT||(VT={}));var mM=Hv(function(e,t){var r=e.styles,n=Ud([r],void 0,_.useContext($d)),a=_.useRef();return WT(function(){var s=t.key+"-global",o=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,f=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),f!==null&&(c=!0,f.setAttribute("data-emotion",s),o.hydrate([f])),a.current=[o,c],function(){o.flush()}},[t]),WT(function(){var s=a.current,o=s[0],c=s[1];if(c){s[1]=!1;return}if(n.next!==void 0&&$v(t,n.next,!0),o.tags.length){var f=o.tags[o.tags.length-1].nextElementSibling;o.before=f,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function gu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ud(t)}function Go(){var e=gu.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var gM=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xM=A_(function(e){return gM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vM=xM,yM=function(t){return t!=="theme"},GT=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?vM:yM},XT=function(t,r,n){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(o){return t.__emotion_forwardProp(o)&&s(o)}:s}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},bM=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Uv(r,n,a),F_(function(){return $v(r,n,a)}),null},SM=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,s,o;r!==void 0&&(s=r.label,o=r.target);var c=XT(t,r,n),f=c||GT(a),d=!f("as");return function(){var h=arguments,g=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&g.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)g.push.apply(g,h);else{var x=h[0];g.push(x[0]);for(var y=h.length,b=1;b<y;b++)g.push(h[b],x[b])}var v=Hv(function(w,C,k){var E=d&&w.as||a,D="",M=[],A=w;if(w.theme==null){A={};for(var O in w)A[O]=w[O];A.theme=_.useContext($d)}typeof w.className=="string"?D=O_(C.registered,M,w.className):w.className!=null&&(D=w.className+" ");var N=Ud(g.concat(M),C.registered,A);D+=C.key+"-"+N.name,o!==void 0&&(D+=" "+o);var F=d&&c===void 0?GT(E):f,P={};for(var j in w)d&&j==="as"||F(j)&&(P[j]=w[j]);return P.className=D,k&&(P.ref=k),_.createElement(_.Fragment,null,_.createElement(bM,{cache:C,serialized:N,isStringTag:typeof E=="string"}),_.createElement(E,P))});return v.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=g,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(w,C){var k=e(w,cp({},r,C,{shouldForwardProp:XT(v,C,!0)}));return k.apply(void 0,g)},v}},wM=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ox=SM.bind(null);wM.forEach(function(e){Ox[e]=Ox(e)});function TM(e){return e==null||Object.keys(e).length===0}function P_(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(TM(a)?r:a):t;return m.jsx(mM,{styles:n})}function j_(e,t){return Ox(e,t)}function CM(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const YT=[];function Po(e){return YT[0]=e,Ud(YT)}var Wg={exports:{}},kr={};/**
 * @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 qT;function EM(){if(qT)return kr;qT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case a:case n:case f:case d:case x:return v;default:switch(v=v&&v.$$typeof,v){case o:case c:case g:case h:return v;case s:return v;default:return w}}case t:return w}}}return kr.ContextConsumer=s,kr.ContextProvider=o,kr.Element=e,kr.ForwardRef=c,kr.Fragment=r,kr.Lazy=g,kr.Memo=h,kr.Portal=t,kr.Profiler=a,kr.StrictMode=n,kr.Suspense=f,kr.SuspenseList=d,kr.isContextConsumer=function(v){return b(v)===s},kr.isContextProvider=function(v){return b(v)===o},kr.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},kr.isForwardRef=function(v){return b(v)===c},kr.isFragment=function(v){return b(v)===r},kr.isLazy=function(v){return b(v)===g},kr.isMemo=function(v){return b(v)===h},kr.isPortal=function(v){return b(v)===t},kr.isProfiler=function(v){return b(v)===a},kr.isStrictMode=function(v){return b(v)===n},kr.isSuspense=function(v){return b(v)===f},kr.isSuspenseList=function(v){return b(v)===d},kr.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===a||v===n||v===f||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===h||v.$$typeof===o||v.$$typeof===s||v.$$typeof===c||v.$$typeof===y||v.getModuleId!==void 0)},kr.typeOf=b,kr}var KT;function _M(){return KT||(KT=1,Wg.exports=EM()),Wg.exports}var L_=_M();function ds(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function I_(e){if(_.isValidElement(e)||L_.isValidElementType(e)||!ds(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=I_(e[r])}),t}function Jn(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ds(e)&&ds(t)&&Object.keys(t).forEach(a=>{_.isValidElement(t[a])||L_.isValidElementType(t[a])?n[a]=t[a]:ds(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ds(e[a])?n[a]=Jn(e[a],t[a],r):r.clone?n[a]=ds(t[a])?I_(t[a]):t[a]:n[a]=t[a]}),n}const kM=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function AM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...a}=e,s=kM(t),o=Object.keys(s);function c(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${r})`}function f(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-n/100}${r})`}function d(x,y){const b=o.indexOf(y);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${r}) and (max-width:${(b!==-1&&typeof t[o[b]]=="number"?t[o[b]]:y)-n/100}${r})`}function h(x){return o.indexOf(x)+1<o.length?d(x,o[o.indexOf(x)+1]):c(x)}function g(x){const y=o.indexOf(x);return y===0?c(o[1]):y===o.length-1?f(o[y]):d(x,o[o.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:o,values:s,up:c,down:f,between:d,only:h,not:g,unit:r,...a}}function QT(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,a)=>{const s=/min-width:\s*([0-9.]+)/;return+(n.match(s)?.[1]||0)-+(a.match(s)?.[1]||0)});return r.length?r.reduce((n,a)=>{const s=t[a];return delete n[a],n[a]=s,n},{...t}):t}function RM(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function OM(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,a]=r,s=Number.isNaN(+n)?n||0:+n;return e.containerQueries(a).up(s)}function DM(e){const t=(s,o)=>s.replace("@media",o?`@container ${o}`:"@container");function r(s,o){s.up=(...c)=>t(e.breakpoints.up(...c),o),s.down=(...c)=>t(e.breakpoints.down(...c),o),s.between=(...c)=>t(e.breakpoints.between(...c),o),s.only=(...c)=>t(e.breakpoints.only(...c),o),s.not=(...c)=>{const f=t(e.breakpoints.not(...c),o);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const n={},a=s=>(r(n,s),n);return r(a),{...e,containerQueries:a}}const MM={borderRadius:4};function Hf(e,t){return t?Jn(e,t,{clone:!1}):e}const Wp={xs:0,sm:600,md:900,lg:1200,xl:1536},ZT={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Wp[e]}px)`},FM={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Wp[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ws(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||ZT;return t.reduce((o,c,f)=>(o[s.up(s.keys[f])]=r(t[f]),o),{})}if(typeof t=="object"){const s=n.breakpoints||ZT;return Object.keys(t).reduce((o,c)=>{if(RM(s.keys,c)){const f=OM(n.containerQueries?n:FM,c);f&&(o[f]=r(t[c],c))}else if(Object.keys(s.values||Wp).includes(c)){const f=s.up(c);o[f]=r(t[c],c)}else{const f=c;o[f]=t[f]}return o},{})}return r(t)}function NM(e={}){return e.keys?.reduce((r,n)=>{const a=e.up(n);return r[a]={},r},{})||{}}function JT(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Oe(e){if(typeof e!="string")throw new Error(Hs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function fp(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=fs(e,r)||n,t&&(a=t(a,n,e)),a}function ln(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,s=o=>{if(o[t]==null)return null;const c=o[t],f=o.theme,d=fs(f,n)||{};return Ws(o,c,g=>{let x=fp(d,a,g);return g===x&&typeof g=="string"&&(x=fp(d,a,`${t}${g==="default"?"":Oe(g)}`,g)),r===!1?x:{[r]:x}})};return s.propTypes={},s.filterProps=[t],s}function PM(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const jM={m:"margin",p:"padding"},LM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},eC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IM=PM(e=>{if(e.length>2)if(eC[e])e=eC[e];else return[e];const[t,r]=e.split(""),n=jM[t],a=LM[r]||"";return Array.isArray(a)?a.map(s=>n+s):[n+a]}),Vv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vv,...Gv];function Hd(e,t,r,n){const a=fs(e,t,!0)??r;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const o=Math.abs(s),c=a[o];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function Xv(e){return Hd(e,"spacing",8)}function Wd(e,t){return typeof t=="string"||t==null?t:e(t)}function BM(e,t){return r=>e.reduce((n,a)=>(n[a]=Wd(t,r),n),{})}function zM(e,t,r,n){if(!t.includes(r))return null;const a=IM(r),s=BM(a,n),o=e[r];return Ws(e,o,s)}function B_(e,t){const r=Xv(e.theme);return Object.keys(e).map(n=>zM(e,t,n,r)).reduce(Hf,{})}function Xr(e){return B_(e,Vv)}Xr.propTypes={};Xr.filterProps=Vv;function Yr(e){return B_(e,Gv)}Yr.propTypes={};Yr.filterProps=Gv;function z_(e=8,t=Xv({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(s=>{const o=t(s);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function Vp(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(s=>{n[s]=a}),n),{}),r=n=>Object.keys(n).reduce((a,s)=>t[s]?Hf(a,t[s](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Ei(e){return typeof e!="number"?e:`${e}px solid`}function Ni(e,t){return ln({prop:e,themeKey:"borders",transform:t})}const UM=Ni("border",Ei),$M=Ni("borderTop",Ei),HM=Ni("borderRight",Ei),WM=Ni("borderBottom",Ei),VM=Ni("borderLeft",Ei),GM=Ni("borderColor"),XM=Ni("borderTopColor"),YM=Ni("borderRightColor"),qM=Ni("borderBottomColor"),KM=Ni("borderLeftColor"),QM=Ni("outline",Ei),ZM=Ni("outlineColor"),Gp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hd(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Wd(t,n)});return Ws(e,e.borderRadius,r)}return null};Gp.propTypes={};Gp.filterProps=["borderRadius"];Vp(UM,$M,HM,WM,VM,GM,XM,YM,qM,KM,Gp,QM,ZM);const Xp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hd(e.theme,"spacing",8),r=n=>({gap:Wd(t,n)});return Ws(e,e.gap,r)}return null};Xp.propTypes={};Xp.filterProps=["gap"];const Yp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hd(e.theme,"spacing",8),r=n=>({columnGap:Wd(t,n)});return Ws(e,e.columnGap,r)}return null};Yp.propTypes={};Yp.filterProps=["columnGap"];const qp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hd(e.theme,"spacing",8),r=n=>({rowGap:Wd(t,n)});return Ws(e,e.rowGap,r)}return null};qp.propTypes={};qp.filterProps=["rowGap"];const JM=ln({prop:"gridColumn"}),eF=ln({prop:"gridRow"}),tF=ln({prop:"gridAutoFlow"}),rF=ln({prop:"gridAutoColumns"}),nF=ln({prop:"gridAutoRows"}),aF=ln({prop:"gridTemplateColumns"}),iF=ln({prop:"gridTemplateRows"}),sF=ln({prop:"gridTemplateAreas"}),oF=ln({prop:"gridArea"});Vp(Xp,Yp,qp,JM,eF,tF,rF,nF,aF,iF,sF,oF);function Qc(e,t){return t==="grey"?t:e}const lF=ln({prop:"color",themeKey:"palette",transform:Qc}),cF=ln({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qc}),uF=ln({prop:"backgroundColor",themeKey:"palette",transform:Qc});Vp(lF,cF,uF);function Ka(e){return e<=1&&e!==0?`${e*100}%`:e}const fF=ln({prop:"width",transform:Ka}),Yv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Wp[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ka(r)}};return Ws(e,e.maxWidth,t)}return null};Yv.filterProps=["maxWidth"];const dF=ln({prop:"minWidth",transform:Ka}),hF=ln({prop:"height",transform:Ka}),pF=ln({prop:"maxHeight",transform:Ka}),mF=ln({prop:"minHeight",transform:Ka});ln({prop:"size",cssProperty:"width",transform:Ka});ln({prop:"size",cssProperty:"height",transform:Ka});const gF=ln({prop:"boxSizing"});Vp(fF,Yv,dF,hF,pF,mF,gF);const Vd={border:{themeKey:"borders",transform:Ei},borderTop:{themeKey:"borders",transform:Ei},borderRight:{themeKey:"borders",transform:Ei},borderBottom:{themeKey:"borders",transform:Ei},borderLeft:{themeKey:"borders",transform:Ei},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ei},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gp},color:{themeKey:"palette",transform:Qc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qc},backgroundColor:{themeKey:"palette",transform:Qc},p:{style:Yr},pt:{style:Yr},pr:{style:Yr},pb:{style:Yr},pl:{style:Yr},px:{style:Yr},py:{style:Yr},padding:{style:Yr},paddingTop:{style:Yr},paddingRight:{style:Yr},paddingBottom:{style:Yr},paddingLeft:{style:Yr},paddingX:{style:Yr},paddingY:{style:Yr},paddingInline:{style:Yr},paddingInlineStart:{style:Yr},paddingInlineEnd:{style:Yr},paddingBlock:{style:Yr},paddingBlockStart:{style:Yr},paddingBlockEnd:{style:Yr},m:{style:Xr},mt:{style:Xr},mr:{style:Xr},mb:{style:Xr},ml:{style:Xr},mx:{style:Xr},my:{style:Xr},margin:{style:Xr},marginTop:{style:Xr},marginRight:{style:Xr},marginBottom:{style:Xr},marginLeft:{style:Xr},marginX:{style:Xr},marginY:{style:Xr},marginInline:{style:Xr},marginInlineStart:{style:Xr},marginInlineEnd:{style:Xr},marginBlock:{style:Xr},marginBlockStart:{style:Xr},marginBlockEnd:{style:Xr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xp},rowGap:{style:qp},columnGap:{style:Yp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ka},maxWidth:{style:Yv},minWidth:{transform:Ka},height:{transform:Ka},maxHeight:{transform:Ka},minHeight:{transform:Ka},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function xF(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function vF(e,t){return typeof e=="function"?e(t):e}function yF(){function e(r,n,a,s){const o={[r]:n,theme:a},c=s[r];if(!c)return{[r]:n};const{cssProperty:f=r,themeKey:d,transform:h,style:g}=c;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const x=fs(a,d)||{};return g?g(o):Ws(o,n,b=>{let v=fp(x,h,b);return b===v&&typeof b=="string"&&(v=fp(x,h,`${r}${b==="default"?"":Oe(b)}`,b)),f===!1?v:{[f]:v}})}function t(r){const{sx:n,theme:a={},nested:s}=r||{};if(!n)return null;const o=a.unstable_sxConfig??Vd;function c(f){let d=f;if(typeof f=="function")d=f(a);else if(typeof f!="object")return f;if(!d)return null;const h=NM(a.breakpoints),g=Object.keys(h);let x=h;return Object.keys(d).forEach(y=>{const b=vF(d[y],a);if(b!=null)if(typeof b=="object")if(o[y])x=Hf(x,e(y,b,a,o));else{const v=Ws({theme:a},b,w=>({[y]:w}));xF(v,b)?x[y]=t({sx:b,theme:a,nested:!0}):x=Hf(x,v)}else x=Hf(x,e(y,b,a,o))}),!s&&a.modularCssLayers?{"@layer sx":QT(a,JT(g,x))}:QT(a,JT(g,x))}return Array.isArray(n)?n.map(c):c(n)}return t}const Lo=yF();Lo.filterProps=["sx"];function bF(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Gd(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:s={},...o}=e,c=AM(r),f=z_(a);let d=Jn({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:f,shape:{...MM,...s}},o);return d=DM(d),d.applyStyles=bF,d=t.reduce((h,g)=>Jn(h,g),d),d.unstable_sxConfig={...Vd,...o?.unstable_sxConfig},d.unstable_sx=function(g){return Lo({sx:g,theme:this})},d}function SF(e){return Object.keys(e).length===0}function Kp(e=null){const t=_.useContext($d);return!t||SF(t)?e:t}const wF=Gd();function Xd(e=wF){return Kp(e)}function Vg(e){const t=Po(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function U_({styles:e,themeId:t,defaultTheme:r={}}){const n=Xd(r),a=t&&n[t]||n;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(s)?s=s.map(o=>Vg(typeof o=="function"?o(a):o)):s=Vg(s)),m.jsx(P_,{styles:s})}const TF=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Vd;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function qv(e){const{sx:t,...r}=e,{systemProps:n,otherProps:a}=TF(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...o)=>{const c=t(...o);return ds(c)?{...n,...c}:n}:s={...n,...t},{...a,sx:s}}const tC=e=>e,CF=()=>{let e=tC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tC}}},$_=CF();function H_(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=H_(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function We(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=H_(e))&&(n&&(n+=" "),n+=t);return n}function EF(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:a}=e,s=j_("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Lo);return _.forwardRef(function(f,d){const h=Xd(r),{className:g,component:x="div",...y}=qv(f);return m.jsx(s,{as:x,ref:d,className:We(g,a?a(n):n),theme:t&&h[t]||h,...y})})}const _F={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nt(e,t,r="Mui"){const n=_F[t];return n?`${r}-${n}`:`${$_.generate(e)}-${t}`}function it(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=nt(e,a,r)}),n}function W_(e){const{variants:t,...r}=e,n={variants:t,style:Po(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Po(a.style))}),n}const kF=Gd();function Gg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function El(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function AF(e){return e?(t,r)=>r[e]:null}function RF(e,t,r){e.theme=DF(e.theme)?r:e.theme[t]||e.theme}function Zh(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(a=>Zh(e,a,r));if(Array.isArray(n?.variants)){let a;if(n.isProcessed)a=r?El(n.style,r):n.style;else{const{variants:s,...o}=n;a=r?El(Po(o),r):o}return V_(e,n.variants,[a],r)}return n?.isProcessed?r?El(Po(n.style),r):n.style:r?El(Po(n),r):n}function V_(e,t,r=[],n=void 0){let a;e:for(let s=0;s<t.length;s+=1){const o=t[s];if(typeof o.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(a))continue}else for(const c in o.props)if(e[c]!==o.props[c]&&e.ownerState?.[c]!==o.props[c])continue e;typeof o.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?El(Po(o.style(a)),n):o.style(a))):r.push(n?El(Po(o.style),n):o.style)}return r}function G_(e={}){const{themeId:t,defaultTheme:r=kF,rootShouldForwardProp:n=Gg,slotShouldForwardProp:a=Gg}=e;function s(c){RF(c,t,r)}return(c,f={})=>{CM(c,A=>A.filter(O=>O!==Lo));const{name:d,slot:h,skipVariantsResolver:g,skipSx:x,overridesResolver:y=AF(FF(h)),...b}=f,v=d&&d.startsWith("Mui")||h?"components":"custom",w=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,C=x||!1;let k=Gg;h==="Root"||h==="root"?k=n:h?k=a:MF(c)&&(k=void 0);const E=j_(c,{shouldForwardProp:k,label:OF(),...b}),D=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(N){return Zh(N,A,N.theme.modularCssLayers?v:void 0)};if(ds(A)){const O=W_(A);return function(F){return O.variants?Zh(F,O,F.theme.modularCssLayers?v:void 0):F.theme.modularCssLayers?El(O.style,v):O.style}}return A},M=(...A)=>{const O=[],N=A.map(D),F=[];if(O.push(s),d&&y&&F.push(function(W){const Z=W.theme.components?.[d]?.styleOverrides;if(!Z)return null;const B={};for(const ne in Z)B[ne]=Zh(W,Z[ne],W.theme.modularCssLayers?"theme":void 0);return y(W,B)}),d&&!w&&F.push(function(W){const Z=W.theme?.components?.[d]?.variants;return Z?V_(W,Z,[],W.theme.modularCssLayers?"theme":void 0):null}),C||F.push(Lo),Array.isArray(N[0])){const R=N.shift(),W=new Array(O.length).fill(""),Y=new Array(F.length).fill("");let Z;Z=[...W,...R,...Y],Z.raw=[...W,...R.raw,...Y],O.unshift(Z)}const P=[...O,...N,...F],j=E(...P);return c.muiName&&(j.muiName=c.muiName),j};return E.withConfig&&(M.withConfig=E.withConfig),M}}function OF(e,t){return void 0}function DF(e){for(const t in e)return!1;return!0}function MF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function FF(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const X_=G_();function ud(e,t,r=!1){const n={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const s=a;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const o=e[s],c=t[s];if(!c)n[s]=o||{};else if(!o)n[s]=c;else{n[s]={...c};for(const f in o)if(Object.prototype.hasOwnProperty.call(o,f)){const d=f;n[s][d]=ud(o[d],c[d],r)}}}else s==="className"&&r&&t.className?n.className=We(e?.className,t?.className):s==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[s]===void 0&&(n[s]=e[s])}return n}function Y_(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:ud(t.components[r].defaultProps,n)}function q_({props:e,name:t,defaultTheme:r,themeId:n}){let a=Xd(r);return n&&(a=a[n]||a),Y_({theme:a,name:t,props:e})}const ga=typeof window<"u"?_.useLayoutEffect:_.useEffect;function NF(e,t,r,n,a){const[s,o]=_.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return ga(()=>{if(!r)return;const c=r(e),f=()=>{o(c.matches)};return f(),c.addEventListener("change",f),()=>{c.removeEventListener("change",f)}},[e,r]),s}const PF={...ip},K_=PF.useSyncExternalStore;function jF(e,t,r,n,a){const s=_.useCallback(()=>t,[t]),o=_.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:h}=n(e);return()=>h}return s},[s,e,n,a,r]),[c,f]=_.useMemo(()=>{if(r===null)return[s,()=>()=>{}];const h=r(e);return[()=>h.matches,g=>(h.addEventListener("change",g),()=>{h.removeEventListener("change",g)})]},[s,r,e]);return K_(f,c,o)}function Q_(e={}){const{themeId:t}=e;return function(n,a={}){let s=Kp();s&&t&&(s=s[t]||s);const o=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:f=o?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:h=!1}=Y_({name:"MuiUseMediaQuery",props:a,theme:s});let g=typeof n=="function"?n(s):n;return g=g.replace(/^@media( ?)/m,""),g.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(K_!==void 0?jF:NF)(g,c,f,d,h)}}Q_();function LF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Kv(e,t=0,r=1){return LF(e,t,r)}function IF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Io(e){if(e.type)return e;if(e.charAt(0)==="#")return Io(IF(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Hs(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Hs(10,a))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:a}}const BF=e=>{const t=Io(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Pf=(e,t)=>{try{return BF(e)}catch{return e}};function Qp(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((a,s)=>s<3?parseInt(a,10):a):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Z_(e){e=Io(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),o=(d,h=(d+r/30)%12)=>a-s*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const f=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(c+="a",f.push(t[3])),Qp({type:c,values:f})}function Dx(e){e=Io(e);let t=e.type==="hsl"||e.type==="hsla"?Io(Z_(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zF(e,t){const r=Dx(e),n=Dx(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function fd(e,t){return e=Io(e),t=Kv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Qp(e)}function vl(e,t,r){try{return fd(e,t)}catch{return e}}function Zp(e,t){if(e=Io(e),t=Kv(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Qp(e)}function vr(e,t,r){try{return Zp(e,t)}catch{return e}}function Jp(e,t){if(e=Io(e),t=Kv(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Qp(e)}function yr(e,t,r){try{return Jp(e,t)}catch{return e}}function dd(e,t=.15){return Dx(e)>.5?Zp(e,t):Jp(e,t)}function Th(e,t,r){try{return dd(e,t)}catch{return e}}const J_=_.createContext(null);function Qv(){return _.useContext(J_)}const UF=typeof Symbol=="function"&&Symbol.for,$F=UF?Symbol.for("mui.nested"):"__THEME_NESTED__";function HF(e,t){return typeof t=="function"?t(e):{...e,...t}}function WF(e){const{children:t,theme:r}=e,n=Qv(),a=_.useMemo(()=>{const s=n===null?{...r}:HF(n,r);return s!=null&&(s[$F]=n!==null),s},[r,n]);return m.jsx(J_.Provider,{value:a,children:t})}const ek=_.createContext();function VF({value:e,...t}){return m.jsx(ek.Provider,{value:e??!0,...t})}const Xo=()=>_.useContext(ek)??!1,tk=_.createContext(void 0);function GF({value:e,children:t}){return m.jsx(tk.Provider,{value:e,children:t})}function XF(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?ud(a.defaultProps,n,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?ud(a,n,t.components.mergeClassNameAndStyle):n}function YF({props:e,name:t}){const r=_.useContext(tk);return XF({props:e,name:t,theme:{components:r}})}let rC=0;function qF(e){const[t,r]=_.useState(e),n=e||t;return _.useEffect(()=>{t==null&&(rC+=1,r(`mui-${rC}`))},[t]),n}const KF={...ip},nC=KF.useId;function Yo(e){if(nC!==void 0){const t=nC();return e??t}return qF(e)}function QF(e){const t=Kp(),r=Yo()||"",{modularCssLayers:n}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||t!==null?a="":typeof n=="string"?a=n.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,ga(()=>{const s=document.querySelector("head");if(!s)return;const o=s.firstChild;if(a){if(o&&o.hasAttribute?.("data-mui-layer-order")&&o.getAttribute("data-mui-layer-order")===r)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",r),c.textContent=a,s.prepend(c)}else s.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[a,r]),a?m.jsx(U_,{styles:a}):null}const aC={};function iC(e,t,r,n=!1){return _.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const s=r(a),o=e?{...t,[e]:s}:s;return n?()=>o:o}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function rk(e){const{children:t,theme:r,themeId:n}=e,a=Kp(aC),s=Qv()||aC,o=iC(n,a,r),c=iC(n,s,r,!0),f=(n?o[n]:o).direction==="rtl",d=QF(o);return m.jsx(WF,{theme:c,children:m.jsx($d.Provider,{value:o,children:m.jsx(VF,{value:f,children:m.jsxs(GF,{value:n?o[n].components:o.components,children:[d,t]})})})})}const sC={theme:void 0};function ZF(e){let t,r;return function(a){let s=t;return(s===void 0||a.theme!==r)&&(sC.theme=a.theme,s=W_(e(sC)),t=s,r=a.theme),s}}const Zv="mode",Jv="color-scheme",JF="data-color-scheme";function eN(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=Zv,colorSchemeStorageKey:s=Jv,attribute:o=JF,colorSchemeNode:c="document.documentElement",nonce:f}=e||{};let d="",h=o;if(o==="class"&&(h=".%s"),o==="data"&&(h="[data-%s]"),h.startsWith(".")){const x=h.substring(1);d+=`${c}.classList.remove('${x}'.replace('%s', light), '${x}'.replace('%s', dark));
      ${c}.classList.add('${x}'.replace('%s', colorScheme));`}const g=h.match(/\[([^\]]+)\]/);if(g){const[x,y]=g[1].split("=");y||(d+=`${c}.removeAttribute('${x}'.replace('%s', light));
      ${c}.removeAttribute('${x}'.replace('%s', dark));`),d+=`
      ${c}.setAttribute('${x}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else d+=`${c}.setAttribute('${h}', colorScheme);`;return m.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${a}') || '${t}';
  const dark = localStorage.getItem('${s}-dark') || '${n}';
  const light = localStorage.getItem('${s}-light') || '${r}';
  if (mode === 'system') {
    // handle system mode
    const mql = window.matchMedia('(prefers-color-scheme: dark)');
    if (mql.matches) {
      colorScheme = dark
    } else {
      colorScheme = light
    }
  }
  if (mode === 'light') {
    colorScheme = light;
  }
  if (mode === 'dark') {
    colorScheme = dark;
  }
  if (colorScheme) {
    ${d}
  }
} catch(e){}})();`}},"mui-color-scheme-init")}function tN(){}const rN=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let n;try{n=t.localStorage.getItem(e)}catch{}return n||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return tN;const n=a=>{const s=a.newValue;a.key===e&&r(s)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function Xg(){}function oC(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function nk(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function nN(e){return nk(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function aN(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:a=[],modeStorageKey:s=Zv,colorSchemeStorageKey:o=Jv,storageWindow:c=typeof window>"u"?void 0:window,storageManager:f=rN,noSsr:d=!1}=e,h=a.join(","),g=a.length>1,x=_.useMemo(()=>f?.({key:s,storageWindow:c}),[f,s,c]),y=_.useMemo(()=>f?.({key:`${o}-light`,storageWindow:c}),[f,o,c]),b=_.useMemo(()=>f?.({key:`${o}-dark`,storageWindow:c}),[f,o,c]),[v,w]=_.useState(()=>{const N=x?.get(t)||t,F=y?.get(r)||r,P=b?.get(n)||n;return{mode:N,systemMode:oC(N),lightColorScheme:F,darkColorScheme:P}}),[C,k]=_.useState(d||!g);_.useEffect(()=>{k(!0)},[]);const E=nN(v),D=_.useCallback(N=>{w(F=>{if(N===F.mode)return F;const P=N??t;return x?.set(P),{...F,mode:P,systemMode:oC(P)}})},[x,t]),M=_.useCallback(N=>{N?typeof N=="string"?N&&!h.includes(N)?console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`):w(F=>{const P={...F};return nk(F,j=>{j==="light"&&(y?.set(N),P.lightColorScheme=N),j==="dark"&&(b?.set(N),P.darkColorScheme=N)}),P}):w(F=>{const P={...F},j=N.light===null?r:N.light,R=N.dark===null?n:N.dark;return j&&(h.includes(j)?(P.lightColorScheme=j,y?.set(j)):console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`)),R&&(h.includes(R)?(P.darkColorScheme=R,b?.set(R)):console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`)),P}):w(F=>(y?.set(r),b?.set(n),{...F,lightColorScheme:r,darkColorScheme:n}))},[h,y,b,r,n]),A=_.useCallback(N=>{v.mode==="system"&&w(F=>{const P=N?.matches?"dark":"light";return F.systemMode===P?F:{...F,systemMode:P}})},[v.mode]),O=_.useRef(A);return O.current=A,_.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const N=(...P)=>O.current(...P),F=window.matchMedia("(prefers-color-scheme: dark)");return F.addListener(N),N(F),()=>{F.removeListener(N)}},[g]),_.useEffect(()=>{if(g){const N=x?.subscribe(j=>{(!j||["light","dark","system"].includes(j))&&D(j||t)})||Xg,F=y?.subscribe(j=>{(!j||h.match(j))&&M({light:j})})||Xg,P=b?.subscribe(j=>{(!j||h.match(j))&&M({dark:j})})||Xg;return()=>{N(),F(),P()}}},[M,D,h,t,c,g,x,y,b]),{...v,mode:C?v.mode:void 0,systemMode:C?v.systemMode:void 0,colorScheme:C?E:void 0,setMode:D,setColorScheme:M}}const iN="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function sN(e){const{themeId:t,theme:r={},modeStorageKey:n=Zv,colorSchemeStorageKey:a=Jv,disableTransitionOnChange:s=!1,defaultColorScheme:o,resolveTheme:c}=e,f={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=_.createContext(void 0),h=()=>_.useContext(d)||f,g={},x={};function y(C){const{children:k,theme:E,modeStorageKey:D=n,colorSchemeStorageKey:M=a,disableTransitionOnChange:A=s,storageManager:O,storageWindow:N=typeof window>"u"?void 0:window,documentNode:F=typeof document>"u"?void 0:document,colorSchemeNode:P=typeof document>"u"?void 0:document.documentElement,disableNestedContext:j=!1,disableStyleSheetGeneration:R=!1,defaultMode:W="system",forceThemeRerender:Y=!1,noSsr:Z}=C,B=_.useRef(!1),ne=Qv(),ce=_.useContext(d),U=!!ce&&!j,H=_.useMemo(()=>E||(typeof r=="function"?r():r),[E]),ie=H[t],z=ie||H,{colorSchemes:K=g,components:Q=x,cssVarPrefix:ee}=z,ae=Object.keys(K).filter(Et=>!!K[Et]).join(","),xe=_.useMemo(()=>ae.split(","),[ae]),ye=typeof o=="string"?o:o.light,Te=typeof o=="string"?o:o.dark,he=K[ye]&&K[Te]?W:K[z.defaultColorScheme]?.palette?.mode||z.palette?.mode,{mode:Ve,setMode:te,systemMode:rt,lightColorScheme:Ue,darkColorScheme:ve,colorScheme:Ge,setColorScheme:Ae}=aN({supportedColorSchemes:xe,defaultLightColorScheme:ye,defaultDarkColorScheme:Te,modeStorageKey:D,colorSchemeStorageKey:M,defaultMode:he,storageManager:O,storageWindow:N,noSsr:Z});let st=Ve,yt=Ge;U&&(st=ce.mode,yt=ce.colorScheme);let Ct=yt||z.defaultColorScheme;z.vars&&!Y&&(Ct=z.defaultColorScheme);const mt=_.useMemo(()=>{const Et=z.generateThemeVars?.()||z.vars,pt={...z,components:Q,colorSchemes:K,cssVarPrefix:ee,vars:Et};if(typeof pt.generateSpacing=="function"&&(pt.spacing=pt.generateSpacing()),Ct){const _t=K[Ct];_t&&typeof _t=="object"&&Object.keys(_t).forEach(At=>{_t[At]&&typeof _t[At]=="object"?pt[At]={...pt[At],..._t[At]}:pt[At]=_t[At]})}return c?c(pt):pt},[z,Ct,Q,K,ee]),qe=z.colorSchemeSelector;ga(()=>{if(yt&&P&&qe&&qe!=="media"){const Et=qe;let pt=qe;if(Et==="class"&&(pt=".%s"),Et==="data"&&(pt="[data-%s]"),Et?.startsWith("data-")&&!Et.includes("%s")&&(pt=`[${Et}="%s"]`),pt.startsWith("."))P.classList.remove(...xe.map(_t=>pt.substring(1).replace("%s",_t))),P.classList.add(pt.substring(1).replace("%s",yt));else{const _t=pt.replace("%s",yt).match(/\[([^\]]+)\]/);if(_t){const[At,xt]=_t[1].split("=");xt||xe.forEach(ot=>{P.removeAttribute(At.replace(yt,ot))}),P.setAttribute(At,xt?xt.replace(/"|'/g,""):"")}else P.setAttribute(pt,yt)}}},[yt,qe,P,xe]),_.useEffect(()=>{let Et;if(A&&B.current&&F){const pt=F.createElement("style");pt.appendChild(F.createTextNode(iN)),F.head.appendChild(pt),window.getComputedStyle(F.body),Et=setTimeout(()=>{F.head.removeChild(pt)},1)}return()=>{clearTimeout(Et)}},[yt,A,F]),_.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const Ut=_.useMemo(()=>({allColorSchemes:xe,colorScheme:yt,darkColorScheme:ve,lightColorScheme:Ue,mode:st,setColorScheme:Ae,setMode:te,systemMode:rt}),[xe,yt,ve,Ue,st,Ae,te,rt,mt.colorSchemeSelector]);let Dt=!0;(R||z.cssVariables===!1||U&&ne?.cssVarPrefix===ee)&&(Dt=!1);const vt=m.jsxs(_.Fragment,{children:[m.jsx(rk,{themeId:ie?t:void 0,theme:mt,children:k}),Dt&&m.jsx(P_,{styles:mt.generateStyleSheets?.()||[]})]});return U?vt:m.jsx(d.Provider,{value:Ut,children:vt})}const b=typeof o=="string"?o:o.light,v=typeof o=="string"?o:o.dark;return{CssVarsProvider:y,useColorScheme:h,getInitColorSchemeScript:C=>eN({colorSchemeStorageKey:a,defaultLightColorScheme:b,defaultDarkColorScheme:v,modeStorageKey:n,...C})}}function oN(e=""){function t(...n){if(!n.length)return"";const a=n[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...n.slice(1))})`:`, ${a}`}return(n,...a)=>`var(--${e?`${e}-`:""}${n}${t(...a)})`}const lC=(e,t,r,n=[])=>{let a=e;t.forEach((s,o)=>{o===t.length-1?Array.isArray(a)?a[Number(s)]=r:a&&typeof a=="object"&&(a[s]=r):a&&typeof a=="object"&&(a[s]||(a[s]=n.includes(s)?[]:{}),a=a[s])})},lN=(e,t,r)=>{function n(a,s=[],o=[]){Object.entries(a).forEach(([c,f])=>{(!r||r&&!r([...s,c]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?n(f,[...s,c],Array.isArray(f)?[...o,c]:o):t([...s,c],f,o))})}n(e)},cN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Yg(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},a={},s={},o={};return lN(e,(c,f,d)=>{if((typeof f=="string"||typeof f=="number")&&(!n||!n(c,f))){const h=`--${r?`${r}-`:""}${c.join("-")}`,g=cN(c,f);Object.assign(a,{[h]:g}),lC(s,c,`var(${h})`,d),lC(o,c,`var(${h}, ${g})`,d)}},c=>c[0]==="vars"),{css:a,vars:s,varsWithDefaults:o}}function uN(e,t={}){const{getSelector:r=C,disableCssColorScheme:n,colorSchemeSelector:a,enableContrastVars:s}=t,{colorSchemes:o={},components:c,defaultColorScheme:f="light",...d}=e,{vars:h,css:g,varsWithDefaults:x}=Yg(d,t);let y=x;const b={},{[f]:v,...w}=o;if(Object.entries(w||{}).forEach(([D,M])=>{const{vars:A,css:O,varsWithDefaults:N}=Yg(M,t);y=Jn(y,N),b[D]={css:O,vars:A}}),v){const{css:D,vars:M,varsWithDefaults:A}=Yg(v,t);y=Jn(y,A),b[f]={css:D,vars:M}}function C(D,M){let A=a;if(a==="class"&&(A=".%s"),a==="data"&&(A="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(A=`[${a}="%s"]`),D){if(A==="media")return e.defaultColorScheme===D?":root":{[`@media (prefers-color-scheme: ${o[D]?.palette?.mode||D})`]:{":root":M}};if(A)return e.defaultColorScheme===D?`:root, ${A.replace("%s",String(D))}`:A.replace("%s",String(D))}return":root"}return{vars:y,generateThemeVars:()=>{let D={...h};return Object.entries(b).forEach(([,{vars:M}])=>{D=Jn(D,M)}),D},generateStyleSheets:()=>{const D=[],M=e.defaultColorScheme||"light";function A(F,P){Object.keys(P).length&&D.push(typeof F=="string"?{[F]:{...P}}:F)}A(r(void 0,{...g}),g);const{[M]:O,...N}=b;if(O){const{css:F}=O,P=o[M]?.palette?.mode,j=!n&&P?{colorScheme:P,...F}:{...F};A(r(M,{...j}),j)}return Object.entries(N).forEach(([F,{css:P}])=>{const j=o[F]?.palette?.mode,R=!n&&j?{colorScheme:j,...P}:{...P};A(r(F,{...R}),R)}),s&&D.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),D}}}function fN(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function at(e,t,r=void 0){const n={};for(const a in e){const s=e[a];let o="",c=!0;for(let f=0;f<s.length;f+=1){const d=s[f];d&&(o+=(c===!0?"":" ")+t(d),c=!1,r&&r[d]&&(o+=" "+r[d]))}n[a]=o}return n}const dN=Gd(),hN=X_("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Oe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),pN=e=>q_({props:e,name:"MuiContainer",defaultTheme:dN}),mN=(e,t)=>{const r=f=>nt(t,f),{classes:n,fixed:a,disableGutters:s,maxWidth:o}=e,c={root:["root",o&&`maxWidth${Oe(String(o))}`,a&&"fixed",s&&"disableGutters"]};return at(c,r,n)};function gN(e={}){const{createStyledComponent:t=hN,useThemeProps:r=pN,componentName:n="MuiContainer"}=e,a=t(({theme:o,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}}),({theme:o,ownerState:c})=>c.fixed&&Object.keys(o.breakpoints.values).reduce((f,d)=>{const h=d,g=o.breakpoints.values[h];return g!==0&&(f[o.breakpoints.up(h)]={maxWidth:`${g}${o.breakpoints.unit}`}),f},{}),({theme:o,ownerState:c})=>({...c.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[o.breakpoints.up(c.maxWidth)]:{maxWidth:`${o.breakpoints.values[c.maxWidth]}${o.breakpoints.unit}`}}}));return _.forwardRef(function(c,f){const d=r(c),{className:h,component:g="div",disableGutters:x=!1,fixed:y=!1,maxWidth:b="lg",classes:v,...w}=d,C={...d,component:g,disableGutters:x,fixed:y,maxWidth:b},k=mN(C,n);return m.jsx(a,{as:g,ownerState:C,className:We(k.root,h),ref:f,...w})})}function Wf(e,t){return _.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const xN=(e,t)=>e.filter(r=>t.includes(r)),xu=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((a,s)=>{r((o,c)=>{s<=e.keys.length-1&&(s===0?Object.assign(o,c):o[e.up(e.keys[s])]=c)},a)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:xN(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const o=t[s];o!==void 0&&r((c,f)=>{n===s?Object.assign(c,f):c[e.up(s)]=f},o)}}):(typeof t=="number"||typeof t=="string")&&r((a,s)=>{Object.assign(a,s)},t)};function dp(e){return`--Grid-${e}Spacing`}function em(e){return`--Grid-parent-${e}Spacing`}const cC="--Grid-columns",Zc="--Grid-parent-columns",vN=({theme:e,ownerState:t})=>{const r={};return xu(e.breakpoints,t.size,(n,a)=>{let s={};a==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / var(${Zc}) - (var(${Zc}) - ${a}) * (var(${em("column")}) / var(${Zc})))`}),n(r,s)}),r},yN=({theme:e,ownerState:t})=>{const r={};return xu(e.breakpoints,t.offset,(n,a)=>{let s={};a==="auto"&&(s={marginLeft:"auto"}),typeof a=="number"&&(s={marginLeft:a===0?"0px":`calc(100% * ${a} / var(${Zc}) + var(${em("column")}) * ${a} / var(${Zc}))`}),n(r,s)}),r},bN=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={[cC]:12};return xu(e.breakpoints,t.columns,(n,a)=>{const s=a??12;n(r,{[cC]:s,"> *":{[Zc]:s}})}),r},SN=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return xu(e.breakpoints,t.rowSpacing,(n,a)=>{const s=typeof a=="string"?a:e.spacing?.(a);n(r,{[dp("row")]:s,"> *":{[em("row")]:s}})}),r},wN=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return xu(e.breakpoints,t.columnSpacing,(n,a)=>{const s=typeof a=="string"?a:e.spacing?.(a);n(r,{[dp("column")]:s,"> *":{[em("column")]:s}})}),r},TN=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return xu(e.breakpoints,t.direction,(n,a)=>{n(r,{flexDirection:a})}),r},CN=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${dp("row")}) var(${dp("column")})`}}),EN=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},_N=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([a,s])=>{r(s)&&n.push(`spacing-${a}-${String(s)}`)}),n}return[]},kN=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`];function AN(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(r=>{e[r]!==void 0&&delete e[r]})}const RN=Gd(),ON=X_("div",{name:"MuiGrid",slot:"Root"});function DN(e){return q_({props:e,name:"MuiGrid",defaultTheme:RN})}function MN(e={}){const{createStyledComponent:t=ON,useThemeProps:r=DN,useTheme:n=Xd,componentName:a="MuiGrid"}=e,s=(d,h)=>{const{container:g,direction:x,spacing:y,wrap:b,size:v}=d,w={root:["root",g&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...kN(x),...EN(v),...g?_N(y,h.breakpoints.keys[0]):[]]};return at(w,C=>nt(a,C),{})};function o(d,h,g=()=>!0){const x={};return d===null||(Array.isArray(d)?d.forEach((y,b)=>{y!==null&&g(y)&&h.keys[b]&&(x[h.keys[b]]=y)}):typeof d=="object"?Object.keys(d).forEach(y=>{const b=d[y];b!=null&&g(b)&&(x[y]=b)}):x[h.keys[0]]=d),x}const c=t(bN,wN,SN,vN,TN,CN,yN),f=_.forwardRef(function(h,g){const x=n(),y=r(h),b=qv(y);AN(b,x.breakpoints);const{className:v,children:w,columns:C=12,container:k=!1,component:E="div",direction:D="row",wrap:M="wrap",size:A={},offset:O={},spacing:N=0,rowSpacing:F=N,columnSpacing:P=N,unstable_level:j=0,...R}=b,W=o(A,x.breakpoints,ie=>ie!==!1),Y=o(O,x.breakpoints),Z=h.columns??(j?void 0:C),B=h.spacing??(j?void 0:N),ne=h.rowSpacing??h.spacing??(j?void 0:F),ce=h.columnSpacing??h.spacing??(j?void 0:P),U={...b,level:j,columns:Z,container:k,direction:D,wrap:M,spacing:B,rowSpacing:ne,columnSpacing:ce,size:W,offset:Y},H=s(U,x);return m.jsx(c,{ref:g,as:E,ownerState:U,className:We(H.root,v),...R,children:_.Children.map(w,ie=>_.isValidElement(ie)&&Wf(ie,["Grid"])&&k&&ie.props.container?_.cloneElement(ie,{unstable_level:ie.props?.unstable_level??j+1}):ie)})});return f.muiName="Grid",f}const hd={black:"#000",white:"#fff"},FN={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Mc={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Fc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ef={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Nc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Pc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},jc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function ak(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:hd.white,default:hd.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ik=ak();function sk(){return{text:{primary:hd.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:hd.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Mx=sk();function uC(e,t,r,n){const a=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Jp(e.main,a):t==="dark"&&(e.dark=Zp(e.main,s)))}function fC(e,t,r,n,a){const s=a.light||a,o=a.dark||a*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function NN(e="light"){return e==="dark"?{main:Nc[200],light:Nc[50],dark:Nc[400]}:{main:Nc[700],light:Nc[400],dark:Nc[800]}}function PN(e="light"){return e==="dark"?{main:Mc[200],light:Mc[50],dark:Mc[400]}:{main:Mc[500],light:Mc[300],dark:Mc[700]}}function jN(e="light"){return e==="dark"?{main:Fc[500],light:Fc[300],dark:Fc[700]}:{main:Fc[700],light:Fc[400],dark:Fc[800]}}function LN(e="light"){return e==="dark"?{main:Pc[400],light:Pc[300],dark:Pc[700]}:{main:Pc[700],light:Pc[500],dark:Pc[900]}}function IN(e="light"){return e==="dark"?{main:jc[400],light:jc[300],dark:jc[700]}:{main:jc[800],light:jc[500],dark:jc[900]}}function BN(e="light"){return e==="dark"?{main:Ef[400],light:Ef[300],dark:Ef[700]}:{main:"#ed6c02",light:Ef[500],dark:Ef[900]}}function zN(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ey(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:a,...s}=e,o=e.primary||NN(t),c=e.secondary||PN(t),f=e.error||jN(t),d=e.info||LN(t),h=e.success||IN(t),g=e.warning||BN(t);function x(w){return a?zN(w):zF(w,Mx.text.primary)>=r?Mx.text.primary:ik.text.primary}const y=({color:w,name:C,mainShade:k=500,lightShade:E=300,darkShade:D=700})=>{if(w={...w},!w.main&&w[k]&&(w.main=w[k]),!w.hasOwnProperty("main"))throw new Error(Hs(11,C?` (${C})`:"",k));if(typeof w.main!="string")throw new Error(Hs(12,C?` (${C})`:"",JSON.stringify(w.main)));return a?(fC(a,w,"light",E,n),fC(a,w,"dark",D,n)):(uC(w,"light",E,n),uC(w,"dark",D,n)),w.contrastText||(w.contrastText=x(w.main)),w};let b;return t==="light"?b=ak():t==="dark"&&(b=sk()),Jn({common:{...hd},mode:t,primary:y({color:o,name:"primary"}),secondary:y({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:f,name:"error"}),warning:y({color:g,name:"warning"}),info:y({color:d,name:"info"}),success:y({color:h,name:"success"}),grey:FN,contrastThreshold:r,getContrastText:x,augmentColor:y,tonalOffset:n,...b},s)}function UN(e){const t={};return Object.entries(e).forEach(n=>{const[a,s]=n;typeof s=="object"&&(t[a]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function $N(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function HN(e){return Math.round(e*1e5)/1e5}const dC={textTransform:"uppercase"},hC='"Roboto", "Helvetica", "Arial", sans-serif';function ok(e,t){const{fontFamily:r=hC,fontSize:n=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:d,pxToRem:h,...g}=typeof t=="function"?t(e):t,x=n/14,y=h||(w=>`${w/f*x}rem`),b=(w,C,k,E,D)=>({fontFamily:r,fontWeight:w,fontSize:y(C),lineHeight:k,...r===hC?{letterSpacing:`${HN(E/C)}em`}:{},...D,...d}),v={h1:b(a,96,1.167,-1.5),h2:b(a,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(o,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(o,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(o,14,1.75,.4,dC),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,dC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jn({htmlFontSize:f,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:c,...v},g,{clone:!1})}const WN=.2,VN=.14,GN=.12;function Br(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${WN})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${VN})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${GN})`].join(",")}const XN=["none",Br(0,2,1,-1,0,1,1,0,0,1,3,0),Br(0,3,1,-2,0,2,2,0,0,1,5,0),Br(0,3,3,-2,0,3,4,0,0,1,8,0),Br(0,2,4,-1,0,4,5,0,0,1,10,0),Br(0,3,5,-1,0,5,8,0,0,1,14,0),Br(0,3,5,-1,0,6,10,0,0,1,18,0),Br(0,4,5,-2,0,7,10,1,0,2,16,1),Br(0,5,5,-3,0,8,10,1,0,3,14,2),Br(0,5,6,-3,0,9,12,1,0,3,16,2),Br(0,6,6,-3,0,10,14,1,0,4,18,3),Br(0,6,7,-4,0,11,15,1,0,4,20,3),Br(0,7,8,-4,0,12,17,2,0,5,22,4),Br(0,7,8,-4,0,13,19,2,0,5,24,4),Br(0,7,9,-4,0,14,21,2,0,5,26,4),Br(0,8,9,-5,0,15,22,2,0,6,28,5),Br(0,8,10,-5,0,16,24,2,0,6,30,5),Br(0,8,11,-5,0,17,26,2,0,6,32,5),Br(0,9,11,-5,0,18,28,2,0,7,34,6),Br(0,9,12,-6,0,19,29,2,0,7,36,6),Br(0,10,13,-6,0,20,31,3,0,8,38,7),Br(0,10,13,-6,0,21,33,3,0,8,40,7),Br(0,10,14,-6,0,22,35,3,0,8,42,7),Br(0,11,14,-7,0,23,36,3,0,9,44,8),Br(0,11,15,-7,0,24,38,3,0,9,46,8)],YN={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lk={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pC(e){return`${Math.round(e)}ms`}function qN(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function KN(e){const t={...YN,...e.easing},r={...lk,...e.duration};return{getAutoHeightDuration:qN,create:(a=["all"],s={})=>{const{duration:o=r.standard,easing:c=t.easeInOut,delay:f=0,...d}=s;return(Array.isArray(a)?a:[a]).map(h=>`${h} ${typeof o=="string"?o:pC(o)} ${c} ${typeof f=="string"?f:pC(f)}`).join(",")},...e,easing:t,duration:r}}const QN={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ZN(e){return ds(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ck(e={}){const t={...e};function r(n){const a=Object.entries(n);for(let s=0;s<a.length;s++){const[o,c]=a[s];!ZN(c)||o.startsWith("unstable_")?delete n[o]:ds(c)&&(n[o]={...c},r(n[o]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function mC(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const JN=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function eP(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:fd(t,JN(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${mC(r)})`:Jp(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${mC(r)})`:Zp(t,r)}})}function Fx(e={},...t){const{breakpoints:r,mixins:n={},spacing:a,palette:s={},transitions:o={},typography:c={},shape:f,colorSpace:d,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Hs(20));const g=ey({...s,colorSpace:d}),x=Gd(e);let y=Jn(x,{mixins:$N(x.breakpoints,n),palette:g,shadows:XN.slice(),typography:ok(g,c),transitions:KN(o),zIndex:{...QN}});return y=Jn(y,h),y=t.reduce((b,v)=>Jn(b,v),y),y.unstable_sxConfig={...Vd,...h?.unstable_sxConfig},y.unstable_sx=function(v){return Lo({sx:v,theme:this})},y.toRuntimeSource=ck,eP(y),y}function Nx(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const tP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Nx(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function uk(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function fk(e){return e==="dark"?tP:[]}function rP(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:a,...s}=e,o=ey({...t,colorSpace:a});return{palette:o,opacity:{...uk(o.mode),...r},overlays:n||fk(o.mode),...s}}function nP(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const aP=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],iP=e=>(t,r)=>{const n=e.rootSelector||":root",a=e.colorSchemeSelector;let s=a;if(a==="class"&&(s=".%s"),a==="data"&&(s="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(s=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return aP(e.cssVarPrefix).forEach(c=>{o[c]=r[c],delete r[c]}),s==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:s?{[s.replace("%s",t)]:o,[`${n}, ${s.replace("%s",t)}`]:r}:{[n]:{...r,...o}}}if(s&&s!=="media")return`${n}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(s)return s.replace("%s",String(t))}return n};function sP(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function Pe(e,t,r){!e[t]&&r&&(e[t]=r)}function jf(e){return typeof e!="string"||!e.startsWith("hsl")?e:Z_(e)}function js(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Pf(jf(e[t])))}function oP(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ns=e=>{try{return e()}catch{}},lP=(e="mui")=>oN(e);function qg(e,t,r,n,a){if(!r)return;r=r===!0?{}:r;const s=a==="dark"?"dark":"light";if(!n){t[a]=rP({...r,palette:{mode:s,...r?.palette},colorSpace:e});return}const{palette:o,...c}=Fx({...n,palette:{mode:s,...r?.palette},colorSpace:e});return t[a]={...r,palette:o,opacity:{...uk(s),...r?.opacity},overlays:r?.overlays||fk(s)},c}function cP(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:a=!1,cssVarPrefix:s="mui",nativeColor:o=!1,shouldSkipGeneratingVar:c=nP,colorSchemeSelector:f=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...h}=e,g=Object.keys(r)[0],x=n||(r.light&&g!=="light"?"light":g),y=lP(s),{[x]:b,light:v,dark:w,...C}=r,k={...C};let E=b;if((x==="dark"&&!("dark"in r)||x==="light"&&!("light"in r))&&(E=!0),!E)throw new Error(Hs(21,x));let D;o&&(D="oklch");const M=qg(D,k,E,h,x);v&&!k.light&&qg(D,k,v,void 0,"light"),w&&!k.dark&&qg(D,k,w,void 0,"dark");let A={defaultColorScheme:x,...M,cssVarPrefix:s,colorSchemeSelector:f,rootSelector:d,getCssVar:y,colorSchemes:k,font:{...UN(M.typography),...M.font},spacing:oP(h.spacing)};Object.keys(A.colorSchemes).forEach(j=>{const R=A.colorSchemes[j].palette,W=Z=>{const B=Z.split("-"),ne=B[1],ce=B[2];return y(Z,R[ne][ce])};R.mode==="light"&&(Pe(R.common,"background","#fff"),Pe(R.common,"onBackground","#000")),R.mode==="dark"&&(Pe(R.common,"background","#000"),Pe(R.common,"onBackground","#fff"));function Y(Z,B,ne){if(D){let ce;return Z===vl&&(ce=`transparent ${((1-ne)*100).toFixed(0)}%`),Z===vr&&(ce=`#000 ${(ne*100).toFixed(0)}%`),Z===yr&&(ce=`#fff ${(ne*100).toFixed(0)}%`),`color-mix(in ${D}, ${B}, ${ce})`}return Z(B,ne)}if(sP(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){Pe(R.Alert,"errorColor",Y(vr,R.error.light,.6)),Pe(R.Alert,"infoColor",Y(vr,R.info.light,.6)),Pe(R.Alert,"successColor",Y(vr,R.success.light,.6)),Pe(R.Alert,"warningColor",Y(vr,R.warning.light,.6)),Pe(R.Alert,"errorFilledBg",W("palette-error-main")),Pe(R.Alert,"infoFilledBg",W("palette-info-main")),Pe(R.Alert,"successFilledBg",W("palette-success-main")),Pe(R.Alert,"warningFilledBg",W("palette-warning-main")),Pe(R.Alert,"errorFilledColor",ns(()=>R.getContrastText(R.error.main))),Pe(R.Alert,"infoFilledColor",ns(()=>R.getContrastText(R.info.main))),Pe(R.Alert,"successFilledColor",ns(()=>R.getContrastText(R.success.main))),Pe(R.Alert,"warningFilledColor",ns(()=>R.getContrastText(R.warning.main))),Pe(R.Alert,"errorStandardBg",Y(yr,R.error.light,.9)),Pe(R.Alert,"infoStandardBg",Y(yr,R.info.light,.9)),Pe(R.Alert,"successStandardBg",Y(yr,R.success.light,.9)),Pe(R.Alert,"warningStandardBg",Y(yr,R.warning.light,.9)),Pe(R.Alert,"errorIconColor",W("palette-error-main")),Pe(R.Alert,"infoIconColor",W("palette-info-main")),Pe(R.Alert,"successIconColor",W("palette-success-main")),Pe(R.Alert,"warningIconColor",W("palette-warning-main")),Pe(R.AppBar,"defaultBg",W("palette-grey-100")),Pe(R.Avatar,"defaultBg",W("palette-grey-400")),Pe(R.Button,"inheritContainedBg",W("palette-grey-300")),Pe(R.Button,"inheritContainedHoverBg",W("palette-grey-A100")),Pe(R.Chip,"defaultBorder",W("palette-grey-400")),Pe(R.Chip,"defaultAvatarColor",W("palette-grey-700")),Pe(R.Chip,"defaultIconColor",W("palette-grey-700")),Pe(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Pe(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Pe(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Pe(R.LinearProgress,"primaryBg",Y(yr,R.primary.main,.62)),Pe(R.LinearProgress,"secondaryBg",Y(yr,R.secondary.main,.62)),Pe(R.LinearProgress,"errorBg",Y(yr,R.error.main,.62)),Pe(R.LinearProgress,"infoBg",Y(yr,R.info.main,.62)),Pe(R.LinearProgress,"successBg",Y(yr,R.success.main,.62)),Pe(R.LinearProgress,"warningBg",Y(yr,R.warning.main,.62)),Pe(R.Skeleton,"bg",D?Y(vl,R.text.primary,.11):`rgba(${W("palette-text-primaryChannel")} / 0.11)`),Pe(R.Slider,"primaryTrack",Y(yr,R.primary.main,.62)),Pe(R.Slider,"secondaryTrack",Y(yr,R.secondary.main,.62)),Pe(R.Slider,"errorTrack",Y(yr,R.error.main,.62)),Pe(R.Slider,"infoTrack",Y(yr,R.info.main,.62)),Pe(R.Slider,"successTrack",Y(yr,R.success.main,.62)),Pe(R.Slider,"warningTrack",Y(yr,R.warning.main,.62));const Z=D?Y(vr,R.background.default,.6825):Th(R.background.default,.8);Pe(R.SnackbarContent,"bg",Z),Pe(R.SnackbarContent,"color",ns(()=>D?Mx.text.primary:R.getContrastText(Z))),Pe(R.SpeedDialAction,"fabHoverBg",Th(R.background.paper,.15)),Pe(R.StepConnector,"border",W("palette-grey-400")),Pe(R.StepContent,"border",W("palette-grey-400")),Pe(R.Switch,"defaultColor",W("palette-common-white")),Pe(R.Switch,"defaultDisabledColor",W("palette-grey-100")),Pe(R.Switch,"primaryDisabledColor",Y(yr,R.primary.main,.62)),Pe(R.Switch,"secondaryDisabledColor",Y(yr,R.secondary.main,.62)),Pe(R.Switch,"errorDisabledColor",Y(yr,R.error.main,.62)),Pe(R.Switch,"infoDisabledColor",Y(yr,R.info.main,.62)),Pe(R.Switch,"successDisabledColor",Y(yr,R.success.main,.62)),Pe(R.Switch,"warningDisabledColor",Y(yr,R.warning.main,.62)),Pe(R.TableCell,"border",Y(yr,Y(vl,R.divider,1),.88)),Pe(R.Tooltip,"bg",Y(vl,R.grey[700],.92))}if(R.mode==="dark"){Pe(R.Alert,"errorColor",Y(yr,R.error.light,.6)),Pe(R.Alert,"infoColor",Y(yr,R.info.light,.6)),Pe(R.Alert,"successColor",Y(yr,R.success.light,.6)),Pe(R.Alert,"warningColor",Y(yr,R.warning.light,.6)),Pe(R.Alert,"errorFilledBg",W("palette-error-dark")),Pe(R.Alert,"infoFilledBg",W("palette-info-dark")),Pe(R.Alert,"successFilledBg",W("palette-success-dark")),Pe(R.Alert,"warningFilledBg",W("palette-warning-dark")),Pe(R.Alert,"errorFilledColor",ns(()=>R.getContrastText(R.error.dark))),Pe(R.Alert,"infoFilledColor",ns(()=>R.getContrastText(R.info.dark))),Pe(R.Alert,"successFilledColor",ns(()=>R.getContrastText(R.success.dark))),Pe(R.Alert,"warningFilledColor",ns(()=>R.getContrastText(R.warning.dark))),Pe(R.Alert,"errorStandardBg",Y(vr,R.error.light,.9)),Pe(R.Alert,"infoStandardBg",Y(vr,R.info.light,.9)),Pe(R.Alert,"successStandardBg",Y(vr,R.success.light,.9)),Pe(R.Alert,"warningStandardBg",Y(vr,R.warning.light,.9)),Pe(R.Alert,"errorIconColor",W("palette-error-main")),Pe(R.Alert,"infoIconColor",W("palette-info-main")),Pe(R.Alert,"successIconColor",W("palette-success-main")),Pe(R.Alert,"warningIconColor",W("palette-warning-main")),Pe(R.AppBar,"defaultBg",W("palette-grey-900")),Pe(R.AppBar,"darkBg",W("palette-background-paper")),Pe(R.AppBar,"darkColor",W("palette-text-primary")),Pe(R.Avatar,"defaultBg",W("palette-grey-600")),Pe(R.Button,"inheritContainedBg",W("palette-grey-800")),Pe(R.Button,"inheritContainedHoverBg",W("palette-grey-700")),Pe(R.Chip,"defaultBorder",W("palette-grey-700")),Pe(R.Chip,"defaultAvatarColor",W("palette-grey-300")),Pe(R.Chip,"defaultIconColor",W("palette-grey-300")),Pe(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Pe(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Pe(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Pe(R.LinearProgress,"primaryBg",Y(vr,R.primary.main,.5)),Pe(R.LinearProgress,"secondaryBg",Y(vr,R.secondary.main,.5)),Pe(R.LinearProgress,"errorBg",Y(vr,R.error.main,.5)),Pe(R.LinearProgress,"infoBg",Y(vr,R.info.main,.5)),Pe(R.LinearProgress,"successBg",Y(vr,R.success.main,.5)),Pe(R.LinearProgress,"warningBg",Y(vr,R.warning.main,.5)),Pe(R.Skeleton,"bg",D?Y(vl,R.text.primary,.13):`rgba(${W("palette-text-primaryChannel")} / 0.13)`),Pe(R.Slider,"primaryTrack",Y(vr,R.primary.main,.5)),Pe(R.Slider,"secondaryTrack",Y(vr,R.secondary.main,.5)),Pe(R.Slider,"errorTrack",Y(vr,R.error.main,.5)),Pe(R.Slider,"infoTrack",Y(vr,R.info.main,.5)),Pe(R.Slider,"successTrack",Y(vr,R.success.main,.5)),Pe(R.Slider,"warningTrack",Y(vr,R.warning.main,.5));const Z=D?Y(yr,R.background.default,.985):Th(R.background.default,.98);Pe(R.SnackbarContent,"bg",Z),Pe(R.SnackbarContent,"color",ns(()=>D?ik.text.primary:R.getContrastText(Z))),Pe(R.SpeedDialAction,"fabHoverBg",Th(R.background.paper,.15)),Pe(R.StepConnector,"border",W("palette-grey-600")),Pe(R.StepContent,"border",W("palette-grey-600")),Pe(R.Switch,"defaultColor",W("palette-grey-300")),Pe(R.Switch,"defaultDisabledColor",W("palette-grey-600")),Pe(R.Switch,"primaryDisabledColor",Y(vr,R.primary.main,.55)),Pe(R.Switch,"secondaryDisabledColor",Y(vr,R.secondary.main,.55)),Pe(R.Switch,"errorDisabledColor",Y(vr,R.error.main,.55)),Pe(R.Switch,"infoDisabledColor",Y(vr,R.info.main,.55)),Pe(R.Switch,"successDisabledColor",Y(vr,R.success.main,.55)),Pe(R.Switch,"warningDisabledColor",Y(vr,R.warning.main,.55)),Pe(R.TableCell,"border",Y(vr,Y(vl,R.divider,1),.68)),Pe(R.Tooltip,"bg",Y(vl,R.grey[700],.92))}js(R.background,"default"),js(R.background,"paper"),js(R.common,"background"),js(R.common,"onBackground"),js(R,"divider"),Object.keys(R).forEach(Z=>{const B=R[Z];Z!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&Pe(R[Z],"mainChannel",Pf(jf(B.main))),B.light&&Pe(R[Z],"lightChannel",Pf(jf(B.light))),B.dark&&Pe(R[Z],"darkChannel",Pf(jf(B.dark))),B.contrastText&&Pe(R[Z],"contrastTextChannel",Pf(jf(B.contrastText))),Z==="text"&&(js(R[Z],"primary"),js(R[Z],"secondary")),Z==="action"&&(B.active&&js(R[Z],"active"),B.selected&&js(R[Z],"selected")))})}),A=t.reduce((j,R)=>Jn(j,R),A);const O={prefix:s,disableCssColorScheme:a,shouldSkipGeneratingVar:c,getSelector:iP(A),enableContrastVars:o},{vars:N,generateThemeVars:F,generateStyleSheets:P}=uN(A,O);return A.vars=N,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([j,R])=>{A[j]=R}),A.generateThemeVars=F,A.generateStyleSheets=P,A.generateSpacing=function(){return z_(h.spacing,Xv(this))},A.getColorSchemeSelector=fN(f),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=c,A.unstable_sxConfig={...Vd,...h?.unstable_sxConfig},A.unstable_sx=function(R){return Lo({sx:R,theme:this})},A.toRuntimeSource=ck,A}function gC(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:ey({...r===!0?{}:r.palette,mode:t})})}function tm(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:a=r?void 0:{light:!0},defaultColorScheme:s=r?.mode,...o}=e,c=s||"light",f=a?.[c],d={...a,...r?{[c]:{...typeof f!="boolean"&&f,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Fx(e,...t);let h=r;"palette"in e||d[c]&&(d[c]!==!0?h=d[c].palette:c==="dark"&&(h={mode:"dark"}));const g=Fx({...e,palette:h},...t);return g.defaultColorScheme=c,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},gC(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},gC(g,"light",d.light)),g}return!r&&!("light"in d)&&c==="light"&&(d.light=!0),cP({...o,colorSchemes:d,defaultColorScheme:c,...typeof n!="boolean"&&n},...t)}const ty=tm();function ai(){const e=Xd(ty);return e[Gi]||e}function dk(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wn=e=>dk(e)&&e!=="classes",_e=G_({themeId:Gi,defaultTheme:ty,rootShouldForwardProp:wn});function uP({theme:e,...t}){const r=Gi in e?e[Gi]:void 0;return m.jsx(rk,{...t,themeId:r?Gi:void 0,theme:r||e})}const Ch={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:fP}=sN({themeId:Gi,theme:()=>tm({cssVariables:!0}),colorSchemeStorageKey:Ch.colorSchemeStorageKey,modeStorageKey:Ch.modeStorageKey,defaultColorScheme:{light:Ch.defaultLightColorScheme,dark:Ch.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:ok(e.palette,e.typography)};return t.unstable_sx=function(n){return Lo({sx:n,theme:this})},t}}),dP=fP;function hP({theme:e,...t}){const r=_.useMemo(()=>{if(typeof e=="function")return e;const n=Gi in e?e[Gi]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?m.jsx(uP,{theme:r,...t}):m.jsx(dP,{theme:e,...t})}function Px(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function pP(e){return m.jsx(U_,{...e,defaultTheme:ty,themeId:Gi})}function ry(e){return function(r){return m.jsx(pP,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function mP(){return qv}const dt=ZF;function lt(e){return YF(e)}function gP(e){return nt("MuiSvgIcon",e)}it("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xP=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return at(a,gP,n)},vP=_e("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(dt(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),jx=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:o="inherit",component:c="svg",fontSize:f="medium",htmlColor:d,inheritViewBox:h=!1,titleAccess:g,viewBox:x="0 0 24 24",...y}=n,b=_.isValidElement(a)&&a.type==="svg",v={...n,color:o,component:c,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:x,hasSvgAsChild:b},w={};h||(w.viewBox=x);const C=xP(v);return m.jsxs(vP,{as:c,className:We(C.root,s),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:r,...w,...y,...b&&a.props,ownerState:v,children:[b?a.props.children:a,g?m.jsx("title",{children:g}):null]})});jx.muiName="SvgIcon";function tt(e,t){function r(n,a){return m.jsx(jx,{"data-testid":void 0,ref:a,...n,children:e})}return r.muiName=jx.muiName,_.memo(_.forwardRef(r))}function Yd(e,t=166){let r;function n(...a){const s=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function zn(e){return e&&e.ownerDocument||document}function ti(e){return zn(e).defaultView||window}function xC(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Pl(e){const{controlled:t,default:r,name:n,state:a="value"}=e,{current:s}=_.useRef(t!==void 0),[o,c]=_.useState(r),f=s?t:o,d=_.useCallback(h=>{s||c(h)},[]);return[f,d]}function ha(e){const t=_.useRef(e);return ga(()=>{t.current=e}),_.useRef((...r)=>(0,t.current)(...r)).current}function Lr(...e){const t=_.useRef(void 0),r=_.useCallback(n=>{const a=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const o=s,c=o(n);return typeof c=="function"?c:()=>{o(null)}}return s.current=n,()=>{s.current=null}});return()=>{a.forEach(s=>s?.())}},e);return _.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function yP(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function ny(e,t){if(!e)return t;function r(o,c){const f={};return Object.keys(c).forEach(d=>{yP(d,c[d])&&typeof o[d]=="function"&&(f[d]=(...h)=>{o[d](...h),c[d](...h)})}),f}if(typeof e=="function"||typeof t=="function")return o=>{const c=typeof t=="function"?t(o):t,f=typeof e=="function"?e({...o,...c}):e,d=We(o?.className,c?.className,f?.className),h=r(f,c);return{...c,...f,...h,...!!d&&{className:d},...c?.style&&f?.style&&{style:{...c.style,...f.style}},...c?.sx&&f?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(f.sx)?f.sx:[f.sx]]}}};const n=t,a=r(e,n),s=We(n?.className,e?.className);return{...t,...e,...a,...!!s&&{className:s},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function hk(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 Lx(e,t){return Lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Lx(e,t)}function pk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lx(e,t)}const vC={disabled:!1},hp=On.createContext(null);var bP=function(t){return t.scrollTop},Lf="unmounted",Sl="exited",wl="entering",Hc="entered",Ix="exiting",Pi=(function(e){pk(t,e);function t(n,a){var s;s=e.call(this,n,a)||this;var o=a,c=o&&!o.isMounting?n.enter:n.appear,f;return s.appearStatus=null,n.in?c?(f=Sl,s.appearStatus=wl):f=Hc:n.unmountOnExit||n.mountOnEnter?f=Lf:f=Sl,s.state={status:f},s.nextCallback=null,s}t.getDerivedStateFromProps=function(a,s){var o=a.in;return o&&s.status===Lf?{status:Sl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var s=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==wl&&o!==Hc&&(s=wl):(o===wl||o===Hc)&&(s=Ix)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,s,o,c;return s=o=c=a,a!=null&&typeof a!="number"&&(s=a.exit,o=a.enter,c=a.appear!==void 0?a.appear:o),{exit:s,enter:o,appear:c}},r.updateStatus=function(a,s){if(a===void 0&&(a=!1),s!==null)if(this.cancelNextCallback(),s===wl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this);o&&bP(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sl&&this.setState({status:Lf})},r.performEnter=function(a){var s=this,o=this.props.enter,c=this.context?this.context.isMounting:a,f=this.props.nodeRef?[c]:[Sh.findDOMNode(this),c],d=f[0],h=f[1],g=this.getTimeouts(),x=c?g.appear:g.enter;if(!a&&!o||vC.disabled){this.safeSetState({status:Hc},function(){s.props.onEntered(d)});return}this.props.onEnter(d,h),this.safeSetState({status:wl},function(){s.props.onEntering(d,h),s.onTransitionEnd(x,function(){s.safeSetState({status:Hc},function(){s.props.onEntered(d,h)})})})},r.performExit=function(){var a=this,s=this.props.exit,o=this.getTimeouts(),c=this.props.nodeRef?void 0:Sh.findDOMNode(this);if(!s||vC.disabled){this.safeSetState({status:Sl},function(){a.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Ix},function(){a.props.onExiting(c),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Sl},function(){a.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,s){s=this.setNextCallback(s),this.setState(a,s)},r.setNextCallback=function(a){var s=this,o=!0;return this.nextCallback=function(c){o&&(o=!1,s.nextCallback=null,a(c))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this),c=a==null&&!this.props.addEndListener;if(!o||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],d=f[0],h=f[1];this.props.addEndListener(d,h)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===Lf)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var c=hk(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return On.createElement(hp.Provider,{value:null},typeof o=="function"?o(a,c):On.cloneElement(On.Children.only(o),c))},t})(On.Component);Pi.contextType=hp;Pi.propTypes={};function Lc(){}Pi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lc,onEntering:Lc,onEntered:Lc,onExit:Lc,onExiting:Lc,onExited:Lc};Pi.UNMOUNTED=Lf;Pi.EXITED=Sl;Pi.ENTERING=wl;Pi.ENTERED=Hc;Pi.EXITING=Ix;function SP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ay(e,t){var r=function(s){return t&&_.isValidElement(s)?t(s):s},n=Object.create(null);return e&&_.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function wP(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),a=[];for(var s in e)s in t?a.length&&(n[s]=a,a=[]):a.push(s);var o,c={};for(var f in t){if(n[f])for(o=0;o<n[f].length;o++){var d=n[f][o];c[n[f][o]]=r(d)}c[f]=r(f)}for(o=0;o<a.length;o++)c[a[o]]=r(a[o]);return c}function _l(e,t,r){return r[t]!=null?r[t]:e.props[t]}function TP(e,t){return ay(e.children,function(r){return _.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:_l(r,"appear",e),enter:_l(r,"enter",e),exit:_l(r,"exit",e)})})}function CP(e,t,r){var n=ay(e.children),a=wP(t,n);return Object.keys(a).forEach(function(s){var o=a[s];if(_.isValidElement(o)){var c=s in t,f=s in n,d=t[s],h=_.isValidElement(d)&&!d.props.in;f&&(!c||h)?a[s]=_.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:_l(o,"exit",e),enter:_l(o,"enter",e)}):!f&&c&&!h?a[s]=_.cloneElement(o,{in:!1}):f&&c&&_.isValidElement(d)&&(a[s]=_.cloneElement(o,{onExited:r.bind(null,o),in:d.props.in,exit:_l(o,"exit",e),enter:_l(o,"enter",e)}))}}),a}var EP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},_P={component:"div",childFactory:function(t){return t}},iy=(function(e){pk(t,e);function t(n,a){var s;s=e.call(this,n,a)||this;var o=s.handleExited.bind(SP(s));return s.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,s){var o=s.children,c=s.handleExited,f=s.firstRender;return{children:f?TP(a,c):CP(a,o,c),firstRender:!1}},r.handleExited=function(a,s){var o=ay(this.props.children);a.key in o||(a.props.onExited&&a.props.onExited(s),this.mounted&&this.setState(function(c){var f=cp({},c.children);return delete f[a.key],{children:f}}))},r.render=function(){var a=this.props,s=a.component,o=a.childFactory,c=hk(a,["component","childFactory"]),f=this.state.contextValue,d=EP(this.state.children).map(o);return delete c.appear,delete c.enter,delete c.exit,s===null?On.createElement(hp.Provider,{value:f},d):On.createElement(hp.Provider,{value:f},On.createElement(s,c,d))},t})(On.Component);iy.propTypes={};iy.defaultProps=_P;const yC={};function mk(e,t){const r=_.useRef(yC);return r.current===yC&&(r.current=e(t)),r}const kP=[];function AP(e){_.useEffect(e,kP)}class rm{static create(){return new rm}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Mo(){const e=mk(rm.create).current;return AP(e.disposeEffect),e}const sy=e=>e.scrollTop;function Bo(e,t){const{timeout:r,easing:n,style:a={}}=e;return{duration:a.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:a.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:a.transitionDelay}}function RP(e){return nt("MuiCollapse",e)}it("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const OP=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return at(n,RP,r)},DP=_e("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(dt(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),MP=_e("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),FP=_e("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Bx=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiCollapse"}),{addEndListener:a,children:s,className:o,collapsedSize:c="0px",component:f,easing:d,in:h,onEnter:g,onEntered:x,onEntering:y,onExit:b,onExited:v,onExiting:w,orientation:C="vertical",style:k,timeout:E=lk.standard,TransitionComponent:D=Pi,...M}=n,A={...n,orientation:C,collapsedSize:c},O=OP(A),N=ai(),F=Mo(),P=_.useRef(null),j=_.useRef(),R=typeof c=="number"?`${c}px`:c,W=C==="horizontal",Y=W?"width":"height",Z=_.useRef(null),B=Lr(r,Z),ne=ae=>xe=>{if(ae){const ye=Z.current;xe===void 0?ae(ye):ae(ye,xe)}},ce=()=>P.current?P.current[W?"clientWidth":"clientHeight"]:0,U=ne((ae,xe)=>{P.current&&W&&(P.current.style.position="absolute"),ae.style[Y]=R,g&&g(ae,xe)}),H=ne((ae,xe)=>{const ye=ce();P.current&&W&&(P.current.style.position="");const{duration:Te,easing:he}=Bo({style:k,timeout:E,easing:d},{mode:"enter"});if(E==="auto"){const Ve=N.transitions.getAutoHeightDuration(ye);ae.style.transitionDuration=`${Ve}ms`,j.current=Ve}else ae.style.transitionDuration=typeof Te=="string"?Te:`${Te}ms`;ae.style[Y]=`${ye}px`,ae.style.transitionTimingFunction=he,y&&y(ae,xe)}),ie=ne((ae,xe)=>{ae.style[Y]="auto",x&&x(ae,xe)}),z=ne(ae=>{ae.style[Y]=`${ce()}px`,b&&b(ae)}),K=ne(v),Q=ne(ae=>{const xe=ce(),{duration:ye,easing:Te}=Bo({style:k,timeout:E,easing:d},{mode:"exit"});if(E==="auto"){const he=N.transitions.getAutoHeightDuration(xe);ae.style.transitionDuration=`${he}ms`,j.current=he}else ae.style.transitionDuration=typeof ye=="string"?ye:`${ye}ms`;ae.style[Y]=R,ae.style.transitionTimingFunction=Te,w&&w(ae)}),ee=ae=>{E==="auto"&&F.start(j.current||0,ae),a&&a(Z.current,ae)};return m.jsx(D,{in:h,onEnter:U,onEntered:ie,onEntering:H,onExit:z,onExited:K,onExiting:Q,addEndListener:ee,nodeRef:Z,timeout:E==="auto"?null:E,...M,children:(ae,{ownerState:xe,...ye})=>m.jsx(DP,{as:f,className:We(O.root,o,{entered:O.entered,exited:!h&&R==="0px"&&O.hidden}[ae]),style:{[W?"minWidth":"minHeight"]:R,...k},ref:B,ownerState:{...A,state:ae},...ye,children:m.jsx(MP,{ownerState:{...A,state:ae},className:O.wrapper,ref:P,children:m.jsx(FP,{ownerState:{...A,state:ae},className:O.wrapperInner,children:s})})})})});Bx&&(Bx.muiSupportAuto=!0);function NP(e){return nt("MuiPaper",e)}it("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const PP=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,s={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return at(s,NP,a)},jP=_e("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(dt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),zr=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiPaper"}),a=ai(),{className:s,component:o="div",elevation:c=1,square:f=!1,variant:d="elevation",...h}=n,g={...n,component:o,elevation:c,square:f,variant:d},x=PP(g);return m.jsx(jP,{as:o,ownerState:g,className:We(x.root,s),ref:r,...h,style:{...d==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[c],...a.vars&&{"--Paper-overlay":a.vars.overlays?.[c]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${fd("#fff",Nx(c))}, ${fd("#fff",Nx(c))})`}},...h.style}})}),gk=_.createContext({});function LP(e){return typeof e=="string"}function xk(e,t,r){return e===void 0||LP(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function vk(e,t,r){return typeof e=="function"?e(t,r):e}function pp(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function bC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function yk(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:s}=e;if(!t){const y=We(r?.className,s,a?.className,n?.className),b={...r?.style,...a?.style,...n?.style},v={...r,...a,...n};return y.length>0&&(v.className=y),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const o=pp({...a,...n}),c=bC(n),f=bC(a),d=t(o),h=We(d?.className,r?.className,s,a?.className,n?.className),g={...d?.style,...r?.style,...a?.style,...n?.style},x={...d,...r,...f,...c};return h.length>0&&(x.className=h),Object.keys(g).length>0&&(x.style=g),{props:x,internalRef:d.ref}}function ut(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:s,internalForwardedProps:o,shouldForwardComponentProp:c=!1,...f}=t,{component:d,slots:h={[e]:void 0},slotProps:g={[e]:void 0},...x}=s,y=h[e]||n,b=vk(g[e],a),{props:{component:v,...w},internalRef:C}=yk({className:r,...f,externalForwardedProps:e==="root"?x:void 0,externalSlotProps:b}),k=Lr(C,b?.ref,t.ref),E=e==="root"?v||d:v,D=xk(y,{...e==="root"&&!d&&!h[e]&&o,...e!=="root"&&!h[e]&&o,...w,...E&&!c&&{as:E},...E&&c&&{component:E},ref:k},a);return[y,D]}function IP(e){return nt("MuiAccordion",e)}const Eh=it("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),BP=e=>{const{classes:t,square:r,expanded:n,disabled:a,disableGutters:s}=e;return at({root:["root",!r&&"rounded",n&&"expanded",a&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]},IP,t)},zP=_e(zr,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Eh.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(dt(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Eh.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Eh.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),dt(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${Eh.expanded}`]:{margin:"16px 0"}}}]}))),UP=_e("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),$P=_e("div",{name:"MuiAccordion",slot:"Region"})({}),zx=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiAccordion"}),{children:a,className:s,defaultExpanded:o=!1,disabled:c=!1,disableGutters:f=!1,expanded:d,onChange:h,square:g=!1,slots:x={},slotProps:y={},TransitionComponent:b,TransitionProps:v,...w}=n,[C,k]=Pl({controlled:d,default:o,name:"Accordion",state:"expanded"}),E=_.useCallback(H=>{k(!C),h&&h(H,!C)},[C,h,k]),[D,...M]=_.Children.toArray(a),A=_.useMemo(()=>({expanded:C,disabled:c,disableGutters:f,toggle:E}),[C,c,f,E]),O={...n,square:g,disabled:c,disableGutters:f,expanded:C},N=BP(O),F={transition:b,...x},P={transition:v,...y},j={slots:F,slotProps:P},[R,W]=ut("root",{elementType:zP,externalForwardedProps:{...j,...w},className:We(N.root,s),shouldForwardComponentProp:!0,ownerState:O,ref:r,additionalProps:{square:g}}),[Y,Z]=ut("heading",{elementType:UP,externalForwardedProps:j,className:N.heading,ownerState:O}),[B,ne]=ut("transition",{elementType:Bx,externalForwardedProps:j,ownerState:O}),[ce,U]=ut("region",{elementType:$P,externalForwardedProps:j,ownerState:O,className:N.region,additionalProps:{"aria-labelledby":D.props.id,id:D.props["aria-controls"],role:"region"}});return m.jsxs(R,{...W,children:[m.jsx(Y,{...Z,children:m.jsx(gk.Provider,{value:A,children:D})}),m.jsx(B,{in:C,timeout:"auto",...ne,children:m.jsx(ce,{...U,children:M})})]})});function HP(e){return nt("MuiAccordionDetails",e)}it("MuiAccordionDetails",["root"]);const WP=e=>{const{classes:t}=e;return at({root:["root"]},HP,t)},VP=_e("div",{name:"MuiAccordionDetails",slot:"Root"})(dt(({theme:e})=>({padding:e.spacing(1,2,2)}))),Ux=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiAccordionDetails"}),{className:a,...s}=n,o=n,c=WP(o);return m.jsx(VP,{className:We(c.root,a),ref:r,ownerState:o,...s})});function su(e){try{return e.matches(":focus-visible")}catch{}return!1}class mp{static create(){return new mp}static use(){const t=mk(mp.create).current,[r,n]=_.useState(!1);return t.shouldMount=r,t.setShouldMount=n,_.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=XP(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function GP(){return mp.use()}function XP(){let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r}function YP(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:s,rippleSize:o,in:c,onExited:f,timeout:d}=e,[h,g]=_.useState(!1),x=We(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:o,height:o,top:-(o/2)+s,left:-(o/2)+a},b=We(r.child,h&&r.childLeaving,n&&r.childPulsate);return!c&&!h&&g(!0),_.useEffect(()=>{if(!c&&f!=null){const v=setTimeout(f,d);return()=>{clearTimeout(v)}}},[f,c,d]),m.jsx("span",{className:x,style:y,children:m.jsx("span",{className:b})})}const Ci=it("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$x=550,qP=80,KP=Go`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,QP=Go`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,ZP=Go`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,JP=_e("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ej=_e(YP,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${Ci.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${KP};
    animation-duration: ${$x}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${Ci.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${Ci.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${Ci.childLeaving} {
    opacity: 0;
    animation-name: ${QP};
    animation-duration: ${$x}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${Ci.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${ZP};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,tj=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:o,...c}=n,[f,d]=_.useState([]),h=_.useRef(0),g=_.useRef(null);_.useEffect(()=>{g.current&&(g.current(),g.current=null)},[f]);const x=_.useRef(!1),y=Mo(),b=_.useRef(null),v=_.useRef(null),w=_.useCallback(D=>{const{pulsate:M,rippleX:A,rippleY:O,rippleSize:N,cb:F}=D;d(P=>[...P,m.jsx(ej,{classes:{ripple:We(s.ripple,Ci.ripple),rippleVisible:We(s.rippleVisible,Ci.rippleVisible),ripplePulsate:We(s.ripplePulsate,Ci.ripplePulsate),child:We(s.child,Ci.child),childLeaving:We(s.childLeaving,Ci.childLeaving),childPulsate:We(s.childPulsate,Ci.childPulsate)},timeout:$x,pulsate:M,rippleX:A,rippleY:O,rippleSize:N},h.current)]),h.current+=1,g.current=F},[s]),C=_.useCallback((D={},M={},A=()=>{})=>{const{pulsate:O=!1,center:N=a||M.pulsate,fakeElement:F=!1}=M;if(D?.type==="mousedown"&&x.current){x.current=!1;return}D?.type==="touchstart"&&(x.current=!0);const P=F?null:v.current,j=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,W,Y;if(N||D===void 0||D.clientX===0&&D.clientY===0||!D.clientX&&!D.touches)R=Math.round(j.width/2),W=Math.round(j.height/2);else{const{clientX:Z,clientY:B}=D.touches&&D.touches.length>0?D.touches[0]:D;R=Math.round(Z-j.left),W=Math.round(B-j.top)}if(N)Y=Math.sqrt((2*j.width**2+j.height**2)/3),Y%2===0&&(Y+=1);else{const Z=Math.max(Math.abs((P?P.clientWidth:0)-R),R)*2+2,B=Math.max(Math.abs((P?P.clientHeight:0)-W),W)*2+2;Y=Math.sqrt(Z**2+B**2)}D?.touches?b.current===null&&(b.current=()=>{w({pulsate:O,rippleX:R,rippleY:W,rippleSize:Y,cb:A})},y.start(qP,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:O,rippleX:R,rippleY:W,rippleSize:Y,cb:A})},[a,w,y]),k=_.useCallback(()=>{C({},{pulsate:!0})},[C]),E=_.useCallback((D,M)=>{if(y.clear(),D?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{E(D,M)});return}b.current=null,d(A=>A.length>0?A.slice(1):A),g.current=M},[y]);return _.useImperativeHandle(r,()=>({pulsate:k,start:C,stop:E}),[k,C,E]),m.jsx(JP,{className:We(Ci.root,s.root,o),ref:v,...c,children:m.jsx(iy,{component:null,exit:!0,children:f})})});function rj(e){return nt("MuiButtonBase",e)}const nj=it("MuiButtonBase",["root","disabled","focusVisible"]),aj=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,o=at({root:["root",t&&"disabled",r&&"focusVisible"]},rj,a);return r&&n&&(o.root+=` ${n}`),o},ij=_e("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${nj.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Oi=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:o,className:c,component:f="button",disabled:d=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:x=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:v,onClick:w,onContextMenu:C,onDragLeave:k,onFocus:E,onFocusVisible:D,onKeyDown:M,onKeyUp:A,onMouseDown:O,onMouseLeave:N,onMouseUp:F,onTouchEnd:P,onTouchMove:j,onTouchStart:R,tabIndex:W=0,TouchRippleProps:Y,touchRippleRef:Z,type:B,...ne}=n,ce=_.useRef(null),U=GP(),H=Lr(U.ref,Z),[ie,z]=_.useState(!1);d&&ie&&z(!1),_.useImperativeHandle(a,()=>({focusVisible:()=>{z(!0),ce.current.focus()}}),[]);const K=U.shouldMount&&!h&&!d;_.useEffect(()=>{ie&&x&&!h&&U.pulsate()},[h,x,ie,U]);const Q=Ls(U,"start",O,g),ee=Ls(U,"stop",C,g),ae=Ls(U,"stop",k,g),xe=Ls(U,"stop",F,g),ye=Ls(U,"stop",qe=>{ie&&qe.preventDefault(),N&&N(qe)},g),Te=Ls(U,"start",R,g),he=Ls(U,"stop",P,g),Ve=Ls(U,"stop",j,g),te=Ls(U,"stop",qe=>{su(qe.target)||z(!1),v&&v(qe)},!1),rt=ha(qe=>{ce.current||(ce.current=qe.currentTarget),su(qe.target)&&(z(!0),D&&D(qe)),E&&E(qe)}),Ue=()=>{const qe=ce.current;return f&&f!=="button"&&!(qe.tagName==="A"&&qe.href)},ve=ha(qe=>{x&&!qe.repeat&&ie&&qe.key===" "&&U.stop(qe,()=>{U.start(qe)}),qe.target===qe.currentTarget&&Ue()&&qe.key===" "&&qe.preventDefault(),M&&M(qe),qe.target===qe.currentTarget&&Ue()&&qe.key==="Enter"&&!d&&(qe.preventDefault(),w&&w(qe))}),Ge=ha(qe=>{x&&qe.key===" "&&ie&&!qe.defaultPrevented&&U.stop(qe,()=>{U.pulsate(qe)}),A&&A(qe),w&&qe.target===qe.currentTarget&&Ue()&&qe.key===" "&&!qe.defaultPrevented&&w(qe)});let Ae=f;Ae==="button"&&(ne.href||ne.to)&&(Ae=b);const st={};Ae==="button"?(st.type=B===void 0?"button":B,st.disabled=d):(!ne.href&&!ne.to&&(st.role="button"),d&&(st["aria-disabled"]=d));const yt=Lr(r,ce),Ct={...n,centerRipple:s,component:f,disabled:d,disableRipple:h,disableTouchRipple:g,focusRipple:x,tabIndex:W,focusVisible:ie},mt=aj(Ct);return m.jsxs(ij,{as:Ae,className:We(mt.root,c),ownerState:Ct,onBlur:te,onClick:w,onContextMenu:ee,onFocus:rt,onKeyDown:ve,onKeyUp:Ge,onMouseDown:Q,onMouseLeave:ye,onMouseUp:xe,onDragLeave:ae,onTouchEnd:he,onTouchMove:Ve,onTouchStart:Te,ref:yt,tabIndex:d?-1:W,type:B,...st,...ne,children:[o,K?m.jsx(tj,{ref:H,center:s,...Y}):null]})});function Ls(e,t,r,n=!1){return ha(a=>(r&&r(a),n||e[t](a),!0))}function sj(e){return nt("MuiAccordionSummary",e)}const Gc=it("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),oj=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:a}=e;return at({root:["root",r&&"expanded",n&&"disabled",!a&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!a&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},sj,t)},lj=_e(Oi,{name:"MuiAccordionSummary",slot:"Root"})(dt(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Gc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Gc.disabled})`]:{cursor:"pointer"},variants:[{props:r=>!r.disableGutters,style:{[`&.${Gc.expanded}`]:{minHeight:64}}}]}})),cj=_e("span",{name:"MuiAccordionSummary",slot:"Content"})(dt(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Gc.expanded}`]:{margin:"20px 0"}}}]}))),uj=_e("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(dt(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Gc.expanded}`]:{transform:"rotate(180deg)"}}))),Hx=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiAccordionSummary"}),{children:a,className:s,expandIcon:o,focusVisibleClassName:c,onClick:f,slots:d,slotProps:h,...g}=n,{disabled:x=!1,disableGutters:y,expanded:b,toggle:v}=_.useContext(gk),w=P=>{v&&v(P),f&&f(P)},C={...n,expanded:b,disabled:x,disableGutters:y},k=oj(C),E={slots:d,slotProps:h},[D,M]=ut("root",{ref:r,shouldForwardComponentProp:!0,className:We(k.root,s),elementType:lj,externalForwardedProps:{...E,...g},ownerState:C,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:x,"aria-expanded":b,focusVisibleClassName:We(k.focusVisible,c)},getSlotProps:P=>({...P,onClick:j=>{P.onClick?.(j),w(j)}})}),[A,O]=ut("content",{className:k.content,elementType:cj,externalForwardedProps:E,ownerState:C}),[N,F]=ut("expandIconWrapper",{className:k.expandIconWrapper,elementType:uj,externalForwardedProps:E,ownerState:C});return m.jsxs(D,{...M,children:[m.jsx(A,{...O,children:a}),o&&m.jsx(N,{...F,children:o})]})});function fj(e){return typeof e.main=="string"}function dj(e,t=[]){if(!fj(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function wr(e=[]){return([,t])=>t&&dj(t,e)}function hj(e){return nt("MuiAlert",e)}const SC=it("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function pj(e){return nt("MuiCircularProgress",e)}it("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Eo=44,Wx=Go`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,Vx=Go`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,mj=typeof Wx!="string"?gu`
        animation: ${Wx} 1.4s linear infinite;
      `:null,gj=typeof Vx!="string"?gu`
        animation: ${Vx} 1.4s ease-in-out infinite;
      `:null,xj=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,s={root:["root",r,`color${Oe(n)}`],svg:["svg"],circle:["circle",`circle${Oe(r)}`,a&&"circleDisableShrink"]};return at(s,pj,t)},vj=_e("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Oe(r.color)}`]]}})(dt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:mj||{animation:`${Wx} 1.4s linear infinite`}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),yj=_e("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),bj=_e("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Oe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(dt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:gj||{animation:`${Vx} 1.4s ease-in-out infinite`}}]}))),$n=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiCircularProgress"}),{className:a,color:s="primary",disableShrink:o=!1,size:c=40,style:f,thickness:d=3.6,value:h=0,variant:g="indeterminate",...x}=n,y={...n,color:s,disableShrink:o,size:c,thickness:d,value:h,variant:g},b=xj(y),v={},w={},C={};if(g==="determinate"){const k=2*Math.PI*((Eo-d)/2);v.strokeDasharray=k.toFixed(3),C["aria-valuenow"]=Math.round(h),v.strokeDashoffset=`${((100-h)/100*k).toFixed(3)}px`,w.transform="rotate(-90deg)"}return m.jsx(vj,{className:We(b.root,a),style:{width:c,height:c,...w,...f},ownerState:y,ref:r,role:"progressbar",...C,...x,children:m.jsx(yj,{className:b.svg,ownerState:y,viewBox:`${Eo/2} ${Eo/2} ${Eo} ${Eo}`,children:m.jsx(bj,{className:b.circle,style:v,ownerState:y,cx:Eo,cy:Eo,r:(Eo-d)/2,fill:"none",strokeWidth:d})})})});function Sj(e){return nt("MuiIconButton",e)}const wC=it("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),wj=e=>{const{classes:t,disabled:r,color:n,edge:a,size:s,loading:o}=e,c={root:["root",o&&"loading",r&&"disabled",n!=="default"&&`color${Oe(n)}`,a&&`edge${Oe(a)}`,`size${Oe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return at(c,Sj,t)},Tj=_e(Oi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Oe(r.color)}`],r.edge&&t[`edge${Oe(r.edge)}`],t[`size${Oe(r.size)}`]]}})(dt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),dt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${wC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${wC.loading}`]:{color:"transparent"}}))),Cj=_e("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),bn=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:s,className:o,color:c="default",disabled:f=!1,disableFocusRipple:d=!1,size:h="medium",id:g,loading:x=null,loadingIndicator:y,...b}=n,v=Yo(g),w=y??m.jsx($n,{"aria-labelledby":v,color:"inherit",size:16}),C={...n,edge:a,color:c,disabled:f,disableFocusRipple:d,loading:x,loadingIndicator:w,size:h},k=wj(C);return m.jsxs(Tj,{id:x?v:g,className:We(k.root,o),centerRipple:!0,focusRipple:!d,disabled:f||x,ref:r,...b,ownerState:C,children:[typeof x=="boolean"&&m.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:m.jsx(Cj,{className:k.loadingIndicator,ownerState:C,children:x&&w})}),s]})}),Ej=tt(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),_j=tt(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),kj=tt(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Aj=tt(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),Rj=tt(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Oj=e=>{const{variant:t,color:r,severity:n,classes:a}=e,s={root:["root",`color${Oe(r||n)}`,`${t}${Oe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return at(s,hj,a)},Dj=_e(zr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Oe(r.color||r.severity)}`]]}})(dt(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,r=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(wr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${SC.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(wr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${SC.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(wr(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)}}}))]}})),Mj=_e("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Fj=_e("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Nj=_e("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),TC={success:m.jsx(Ej,{fontSize:"inherit"}),warning:m.jsx(_j,{fontSize:"inherit"}),error:m.jsx(kj,{fontSize:"inherit"}),info:m.jsx(Aj,{fontSize:"inherit"})},Mn=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiAlert"}),{action:a,children:s,className:o,closeText:c="Close",color:f,components:d={},componentsProps:h={},icon:g,iconMapping:x=TC,onClose:y,role:b="alert",severity:v="success",slotProps:w={},slots:C={},variant:k="standard",...E}=n,D={...n,color:f,severity:v,variant:k,colorSeverity:f||v},M=Oj(D),A={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...C},slotProps:{...h,...w}},[O,N]=ut("root",{ref:r,shouldForwardComponentProp:!0,className:We(M.root,o),elementType:Dj,externalForwardedProps:{...A,...E},ownerState:D,additionalProps:{role:b,elevation:0}}),[F,P]=ut("icon",{className:M.icon,elementType:Mj,externalForwardedProps:A,ownerState:D}),[j,R]=ut("message",{className:M.message,elementType:Fj,externalForwardedProps:A,ownerState:D}),[W,Y]=ut("action",{className:M.action,elementType:Nj,externalForwardedProps:A,ownerState:D}),[Z,B]=ut("closeButton",{elementType:bn,externalForwardedProps:A,ownerState:D}),[ne,ce]=ut("closeIcon",{elementType:Rj,externalForwardedProps:A,ownerState:D});return m.jsxs(O,{...N,children:[g!==!1?m.jsx(F,{...P,children:g||x[v]||TC[v]}):null,m.jsx(j,{...R,children:s}),a!=null?m.jsx(W,{...Y,children:a}):null,a==null&&y?m.jsx(W,{...Y,children:m.jsx(Z,{size:"small","aria-label":c,title:c,color:"inherit",onClick:y,...B,children:m.jsx(ne,{fontSize:"small",...ce})})}):null]})});function Pj(e){return nt("MuiTypography",e)}const gp=it("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),jj={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Lj=mP(),Ij=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:s,classes:o}=e,c={root:["root",s,e.align!=="inherit"&&`align${Oe(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return at(c,Pj,o)},Bj=_e("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Oe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(dt(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Oe(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),CC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Le=_.forwardRef(function(t,r){const{color:n,...a}=lt({props:t,name:"MuiTypography"}),s=!jj[n],o=Lj({...a,...s&&{color:n}}),{align:c="inherit",className:f,component:d,gutterBottom:h=!1,noWrap:g=!1,paragraph:x=!1,variant:y="body1",variantMapping:b=CC,...v}=o,w={...o,align:c,color:n,className:f,component:d,gutterBottom:h,noWrap:g,paragraph:x,variant:y,variantMapping:b},C=d||(x?"p":b[y]||CC[y])||"span",k=Ij(w);return m.jsx(Bj,{as:C,ref:r,className:We(k.root,f),...v,ownerState:w,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...v.style}})});function zj(e){return nt("MuiAppBar",e)}it("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Uj=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${Oe(t)}`,`position${Oe(r)}`]};return at(a,zj,n)},EC=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,$j=_e(zr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Oe(r.position)}`],t[`color${Oe(r.color)}`]]}})(dt(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(wr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?EC(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?EC(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Hj=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiAppBar"}),{className:a,color:s="primary",enableColorOnDark:o=!1,position:c="fixed",...f}=n,d={...n,color:s,position:c,enableColorOnDark:o},h=Uj(d);return m.jsx($j,{square:!0,component:"header",ownerState:d,elevation:4,className:We(h.root,a,c==="fixed"&&"mui-fixed"),ref:r,...f})});var ka="top",Di="bottom",Mi="right",Aa="left",oy="auto",qd=[ka,Di,Mi,Aa],ou="start",pd="end",Wj="clippingParents",bk="viewport",_f="popper",Vj="reference",_C=qd.reduce(function(e,t){return e.concat([t+"-"+ou,t+"-"+pd])},[]),Sk=[].concat(qd,[oy]).reduce(function(e,t){return e.concat([t,t+"-"+ou,t+"-"+pd])},[]),Gj="beforeRead",Xj="read",Yj="afterRead",qj="beforeMain",Kj="main",Qj="afterMain",Zj="beforeWrite",Jj="write",e9="afterWrite",t9=[Gj,Xj,Yj,qj,Kj,Qj,Zj,Jj,e9];function xs(e){return e?(e.nodeName||"").toLowerCase():null}function ri(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jl(e){var t=ri(e).Element;return e instanceof t||e instanceof Element}function _i(e){var t=ri(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ly(e){if(typeof ShadowRoot>"u")return!1;var t=ri(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!_i(s)||!xs(s)||(Object.assign(s.style,n),Object.keys(a).forEach(function(o){var c=a[o];c===!1?s.removeAttribute(o):s.setAttribute(o,c===!0?"":c)}))})}function n9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],s=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=o.reduce(function(f,d){return f[d]="",f},{});!_i(a)||!xs(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(f){a.removeAttribute(f)}))})}}const a9={name:"applyStyles",enabled:!0,phase:"write",fn:r9,effect:n9,requires:["computeStyles"]};function gs(e){return e.split("-")[0]}var Rl=Math.max,xp=Math.min,lu=Math.round;function Gx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wk(){return!/^((?!chrome|android).)*safari/i.test(Gx())}function cu(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,s=1;t&&_i(e)&&(a=e.offsetWidth>0&&lu(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&lu(n.height)/e.offsetHeight||1);var o=jl(e)?ri(e):window,c=o.visualViewport,f=!wk()&&r,d=(n.left+(f&&c?c.offsetLeft:0))/a,h=(n.top+(f&&c?c.offsetTop:0))/s,g=n.width/a,x=n.height/s;return{width:g,height:x,top:h,right:d+g,bottom:h+x,left:d,x:d,y:h}}function cy(e){var t=cu(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Tk(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ly(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Vs(e){return ri(e).getComputedStyle(e)}function i9(e){return["table","td","th"].indexOf(xs(e))>=0}function qo(e){return((jl(e)?e.ownerDocument:e.document)||window.document).documentElement}function nm(e){return xs(e)==="html"?e:e.assignedSlot||e.parentNode||(ly(e)?e.host:null)||qo(e)}function kC(e){return!_i(e)||Vs(e).position==="fixed"?null:e.offsetParent}function s9(e){var t=/firefox/i.test(Gx()),r=/Trident/i.test(Gx());if(r&&_i(e)){var n=Vs(e);if(n.position==="fixed")return null}var a=nm(e);for(ly(a)&&(a=a.host);_i(a)&&["html","body"].indexOf(xs(a))<0;){var s=Vs(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Kd(e){for(var t=ri(e),r=kC(e);r&&i9(r)&&Vs(r).position==="static";)r=kC(r);return r&&(xs(r)==="html"||xs(r)==="body"&&Vs(r).position==="static")?t:r||s9(e)||t}function uy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vf(e,t,r){return Rl(e,xp(t,r))}function o9(e,t,r){var n=Vf(e,t,r);return n>r?r:n}function Ck(){return{top:0,right:0,bottom:0,left:0}}function Ek(e){return Object.assign({},Ck(),e)}function _k(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var l9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ek(typeof t!="number"?t:_k(t,qd))};function c9(e){var t,r=e.state,n=e.name,a=e.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,c=gs(r.placement),f=uy(c),d=[Aa,Mi].indexOf(c)>=0,h=d?"height":"width";if(!(!s||!o)){var g=l9(a.padding,r),x=cy(s),y=f==="y"?ka:Aa,b=f==="y"?Di:Mi,v=r.rects.reference[h]+r.rects.reference[f]-o[f]-r.rects.popper[h],w=o[f]-r.rects.reference[f],C=Kd(s),k=C?f==="y"?C.clientHeight||0:C.clientWidth||0:0,E=v/2-w/2,D=g[y],M=k-x[h]-g[b],A=k/2-x[h]/2+E,O=Vf(D,A,M),N=f;r.modifiersData[n]=(t={},t[N]=O,t.centerOffset=O-A,t)}}function u9(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Tk(t.elements.popper,a)&&(t.elements.arrow=a))}const f9={name:"arrow",enabled:!0,phase:"main",fn:c9,effect:u9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uu(e){return e.split("-")[1]}var d9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h9(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:lu(r*a)/a||0,y:lu(n*a)/a||0}}function AC(e){var t,r=e.popper,n=e.popperRect,a=e.placement,s=e.variation,o=e.offsets,c=e.position,f=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,g=e.isFixed,x=o.x,y=x===void 0?0:x,b=o.y,v=b===void 0?0:b,w=typeof h=="function"?h({x:y,y:v}):{x:y,y:v};y=w.x,v=w.y;var C=o.hasOwnProperty("x"),k=o.hasOwnProperty("y"),E=Aa,D=ka,M=window;if(d){var A=Kd(r),O="clientHeight",N="clientWidth";if(A===ri(r)&&(A=qo(r),Vs(A).position!=="static"&&c==="absolute"&&(O="scrollHeight",N="scrollWidth")),A=A,a===ka||(a===Aa||a===Mi)&&s===pd){D=Di;var F=g&&A===M&&M.visualViewport?M.visualViewport.height:A[O];v-=F-n.height,v*=f?1:-1}if(a===Aa||(a===ka||a===Di)&&s===pd){E=Mi;var P=g&&A===M&&M.visualViewport?M.visualViewport.width:A[N];y-=P-n.width,y*=f?1:-1}}var j=Object.assign({position:c},d&&d9),R=h===!0?h9({x:y,y:v},ri(r)):{x:y,y:v};if(y=R.x,v=R.y,f){var W;return Object.assign({},j,(W={},W[D]=k?"0":"",W[E]=C?"0":"",W.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+v+"px)":"translate3d("+y+"px, "+v+"px, 0)",W))}return Object.assign({},j,(t={},t[D]=k?v+"px":"",t[E]=C?y+"px":"",t.transform="",t))}function p9(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,s=r.adaptive,o=s===void 0?!0:s,c=r.roundOffsets,f=c===void 0?!0:c,d={placement:gs(t.placement),variation:uu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,AC(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,AC(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const m9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p9,data:{}};var _h={passive:!0};function g9(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,s=a===void 0?!0:a,o=n.resize,c=o===void 0?!0:o,f=ri(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(h){h.addEventListener("scroll",r.update,_h)}),c&&f.addEventListener("resize",r.update,_h),function(){s&&d.forEach(function(h){h.removeEventListener("scroll",r.update,_h)}),c&&f.removeEventListener("resize",r.update,_h)}}const x9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:g9,data:{}};var v9={left:"right",right:"left",bottom:"top",top:"bottom"};function Jh(e){return e.replace(/left|right|bottom|top/g,function(t){return v9[t]})}var y9={start:"end",end:"start"};function RC(e){return e.replace(/start|end/g,function(t){return y9[t]})}function fy(e){var t=ri(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function dy(e){return cu(qo(e)).left+fy(e).scrollLeft}function b9(e,t){var r=ri(e),n=qo(e),a=r.visualViewport,s=n.clientWidth,o=n.clientHeight,c=0,f=0;if(a){s=a.width,o=a.height;var d=wk();(d||!d&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:s,height:o,x:c+dy(e),y:f}}function S9(e){var t,r=qo(e),n=fy(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Rl(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Rl(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-n.scrollLeft+dy(e),f=-n.scrollTop;return Vs(a||r).direction==="rtl"&&(c+=Rl(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:o,x:c,y:f}}function hy(e){var t=Vs(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function kk(e){return["html","body","#document"].indexOf(xs(e))>=0?e.ownerDocument.body:_i(e)&&hy(e)?e:kk(nm(e))}function Gf(e,t){var r;t===void 0&&(t=[]);var n=kk(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),s=ri(n),o=a?[s].concat(s.visualViewport||[],hy(n)?n:[]):n,c=t.concat(o);return a?c:c.concat(Gf(nm(o)))}function Xx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w9(e,t){var r=cu(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function OC(e,t,r){return t===bk?Xx(b9(e,r)):jl(t)?w9(t,r):Xx(S9(qo(e)))}function T9(e){var t=Gf(nm(e)),r=["absolute","fixed"].indexOf(Vs(e).position)>=0,n=r&&_i(e)?Kd(e):e;return jl(n)?t.filter(function(a){return jl(a)&&Tk(a,n)&&xs(a)!=="body"}):[]}function C9(e,t,r,n){var a=t==="clippingParents"?T9(e):[].concat(t),s=[].concat(a,[r]),o=s[0],c=s.reduce(function(f,d){var h=OC(e,d,n);return f.top=Rl(h.top,f.top),f.right=xp(h.right,f.right),f.bottom=xp(h.bottom,f.bottom),f.left=Rl(h.left,f.left),f},OC(e,o,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ak(e){var t=e.reference,r=e.element,n=e.placement,a=n?gs(n):null,s=n?uu(n):null,o=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(a){case ka:f={x:o,y:t.y-r.height};break;case Di:f={x:o,y:t.y+t.height};break;case Mi:f={x:t.x+t.width,y:c};break;case Aa:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var d=a?uy(a):null;if(d!=null){var h=d==="y"?"height":"width";switch(s){case ou:f[d]=f[d]-(t[h]/2-r[h]/2);break;case pd:f[d]=f[d]+(t[h]/2-r[h]/2);break}}return f}function md(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,s=r.strategy,o=s===void 0?e.strategy:s,c=r.boundary,f=c===void 0?Wj:c,d=r.rootBoundary,h=d===void 0?bk:d,g=r.elementContext,x=g===void 0?_f:g,y=r.altBoundary,b=y===void 0?!1:y,v=r.padding,w=v===void 0?0:v,C=Ek(typeof w!="number"?w:_k(w,qd)),k=x===_f?Vj:_f,E=e.rects.popper,D=e.elements[b?k:x],M=C9(jl(D)?D:D.contextElement||qo(e.elements.popper),f,h,o),A=cu(e.elements.reference),O=Ak({reference:A,element:E,placement:a}),N=Xx(Object.assign({},E,O)),F=x===_f?N:A,P={top:M.top-F.top+C.top,bottom:F.bottom-M.bottom+C.bottom,left:M.left-F.left+C.left,right:F.right-M.right+C.right},j=e.modifiersData.offset;if(x===_f&&j){var R=j[a];Object.keys(P).forEach(function(W){var Y=[Mi,Di].indexOf(W)>=0?1:-1,Z=[ka,Di].indexOf(W)>=0?"y":"x";P[W]+=R[Z]*Y})}return P}function E9(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,s=r.rootBoundary,o=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,d=f===void 0?Sk:f,h=uu(n),g=h?c?_C:_C.filter(function(b){return uu(b)===h}):qd,x=g.filter(function(b){return d.indexOf(b)>=0});x.length===0&&(x=g);var y=x.reduce(function(b,v){return b[v]=md(e,{placement:v,boundary:a,rootBoundary:s,padding:o})[gs(v)],b},{});return Object.keys(y).sort(function(b,v){return y[b]-y[v]})}function _9(e){if(gs(e)===oy)return[];var t=Jh(e);return[RC(e),t,RC(t)]}function k9(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,o=r.altAxis,c=o===void 0?!0:o,f=r.fallbackPlacements,d=r.padding,h=r.boundary,g=r.rootBoundary,x=r.altBoundary,y=r.flipVariations,b=y===void 0?!0:y,v=r.allowedAutoPlacements,w=t.options.placement,C=gs(w),k=C===w,E=f||(k||!b?[Jh(w)]:_9(w)),D=[w].concat(E).reduce(function(Q,ee){return Q.concat(gs(ee)===oy?E9(t,{placement:ee,boundary:h,rootBoundary:g,padding:d,flipVariations:b,allowedAutoPlacements:v}):ee)},[]),M=t.rects.reference,A=t.rects.popper,O=new Map,N=!0,F=D[0],P=0;P<D.length;P++){var j=D[P],R=gs(j),W=uu(j)===ou,Y=[ka,Di].indexOf(R)>=0,Z=Y?"width":"height",B=md(t,{placement:j,boundary:h,rootBoundary:g,altBoundary:x,padding:d}),ne=Y?W?Mi:Aa:W?Di:ka;M[Z]>A[Z]&&(ne=Jh(ne));var ce=Jh(ne),U=[];if(s&&U.push(B[R]<=0),c&&U.push(B[ne]<=0,B[ce]<=0),U.every(function(Q){return Q})){F=j,N=!1;break}O.set(j,U)}if(N)for(var H=b?3:1,ie=function(ee){var ae=D.find(function(xe){var ye=O.get(xe);if(ye)return ye.slice(0,ee).every(function(Te){return Te})});if(ae)return F=ae,"break"},z=H;z>0;z--){var K=ie(z);if(K==="break")break}t.placement!==F&&(t.modifiersData[n]._skip=!0,t.placement=F,t.reset=!0)}}const A9={name:"flip",enabled:!0,phase:"main",fn:k9,requiresIfExists:["offset"],data:{_skip:!1}};function DC(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function MC(e){return[ka,Mi,Di,Aa].some(function(t){return e[t]>=0})}function R9(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,o=md(t,{elementContext:"reference"}),c=md(t,{altBoundary:!0}),f=DC(o,n),d=DC(c,a,s),h=MC(f),g=MC(d);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}const O9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:R9};function D9(e,t,r){var n=gs(e),a=[Aa,ka].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=s[0],c=s[1];return o=o||0,c=(c||0)*a,[Aa,Mi].indexOf(n)>=0?{x:c,y:o}:{x:o,y:c}}function M9(e){var t=e.state,r=e.options,n=e.name,a=r.offset,s=a===void 0?[0,0]:a,o=Sk.reduce(function(h,g){return h[g]=D9(g,t.rects,s),h},{}),c=o[t.placement],f=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=o}const F9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:M9};function N9(e){var t=e.state,r=e.name;t.modifiersData[r]=Ak({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const P9={name:"popperOffsets",enabled:!0,phase:"read",fn:N9,data:{}};function j9(e){return e==="x"?"y":"x"}function L9(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,s=a===void 0?!0:a,o=r.altAxis,c=o===void 0?!1:o,f=r.boundary,d=r.rootBoundary,h=r.altBoundary,g=r.padding,x=r.tether,y=x===void 0?!0:x,b=r.tetherOffset,v=b===void 0?0:b,w=md(t,{boundary:f,rootBoundary:d,padding:g,altBoundary:h}),C=gs(t.placement),k=uu(t.placement),E=!k,D=uy(C),M=j9(D),A=t.modifiersData.popperOffsets,O=t.rects.reference,N=t.rects.popper,F=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,P=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(A){if(s){var W,Y=D==="y"?ka:Aa,Z=D==="y"?Di:Mi,B=D==="y"?"height":"width",ne=A[D],ce=ne+w[Y],U=ne-w[Z],H=y?-N[B]/2:0,ie=k===ou?O[B]:N[B],z=k===ou?-N[B]:-O[B],K=t.elements.arrow,Q=y&&K?cy(K):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ck(),ae=ee[Y],xe=ee[Z],ye=Vf(0,O[B],Q[B]),Te=E?O[B]/2-H-ye-ae-P.mainAxis:ie-ye-ae-P.mainAxis,he=E?-O[B]/2+H+ye+xe+P.mainAxis:z+ye+xe+P.mainAxis,Ve=t.elements.arrow&&Kd(t.elements.arrow),te=Ve?D==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,rt=(W=j?.[D])!=null?W:0,Ue=ne+Te-rt-te,ve=ne+he-rt,Ge=Vf(y?xp(ce,Ue):ce,ne,y?Rl(U,ve):U);A[D]=Ge,R[D]=Ge-ne}if(c){var Ae,st=D==="x"?ka:Aa,yt=D==="x"?Di:Mi,Ct=A[M],mt=M==="y"?"height":"width",qe=Ct+w[st],Ut=Ct-w[yt],Dt=[ka,Aa].indexOf(C)!==-1,vt=(Ae=j?.[M])!=null?Ae:0,Et=Dt?qe:Ct-O[mt]-N[mt]-vt+P.altAxis,pt=Dt?Ct+O[mt]+N[mt]-vt-P.altAxis:Ut,_t=y&&Dt?o9(Et,Ct,pt):Vf(y?Et:qe,Ct,y?pt:Ut);A[M]=_t,R[M]=_t-Ct}t.modifiersData[n]=R}}const I9={name:"preventOverflow",enabled:!0,phase:"main",fn:L9,requiresIfExists:["offset"]};function B9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function z9(e){return e===ri(e)||!_i(e)?fy(e):B9(e)}function U9(e){var t=e.getBoundingClientRect(),r=lu(t.width)/e.offsetWidth||1,n=lu(t.height)/e.offsetHeight||1;return r!==1||n!==1}function $9(e,t,r){r===void 0&&(r=!1);var n=_i(t),a=_i(t)&&U9(t),s=qo(t),o=cu(e,a,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((xs(t)!=="body"||hy(s))&&(c=z9(t)),_i(t)?(f=cu(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=dy(s))),{x:o.left+c.scrollLeft-f.x,y:o.top+c.scrollTop-f.y,width:o.width,height:o.height}}function H9(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&a(f)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),n}function W9(e){var t=H9(e);return t9.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function V9(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function G9(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var FC={placement:"bottom",modifiers:[],strategy:"absolute"};function NC(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function X9(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?FC:a;return function(c,f,d){d===void 0&&(d=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},FC,s),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},g=[],x=!1,y={state:h,setOptions:function(C){var k=typeof C=="function"?C(h.options):C;v(),h.options=Object.assign({},s,h.options,k),h.scrollParents={reference:jl(c)?Gf(c):c.contextElement?Gf(c.contextElement):[],popper:Gf(f)};var E=W9(G9([].concat(n,h.options.modifiers)));return h.orderedModifiers=E.filter(function(D){return D.enabled}),b(),y.update()},forceUpdate:function(){if(!x){var C=h.elements,k=C.reference,E=C.popper;if(NC(k,E)){h.rects={reference:$9(k,Kd(E),h.options.strategy==="fixed"),popper:cy(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(P){return h.modifiersData[P.name]=Object.assign({},P.data)});for(var D=0;D<h.orderedModifiers.length;D++){if(h.reset===!0){h.reset=!1,D=-1;continue}var M=h.orderedModifiers[D],A=M.fn,O=M.options,N=O===void 0?{}:O,F=M.name;typeof A=="function"&&(h=A({state:h,options:N,name:F,instance:y})||h)}}}},update:V9(function(){return new Promise(function(w){y.forceUpdate(),w(h)})}),destroy:function(){v(),x=!0}};if(!NC(c,f))return y;y.setOptions(d).then(function(w){!x&&d.onFirstUpdate&&d.onFirstUpdate(w)});function b(){h.orderedModifiers.forEach(function(w){var C=w.name,k=w.options,E=k===void 0?{}:k,D=w.effect;if(typeof D=="function"){var M=D({state:h,name:C,instance:y,options:E}),A=function(){};g.push(M||A)}})}function v(){g.forEach(function(w){return w()}),g=[]}return y}}var Y9=[x9,P9,m9,a9,F9,A9,I9,f9,O9],q9=X9({defaultModifiers:Y9});function Ll(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:a=!1,...s}=e,o=a?{}:vk(r,n),{props:c,internalRef:f}=yk({...s,externalSlotProps:o}),d=Lr(f,o?.ref,e.additionalProps?.ref);return xk(t,{...c,ref:d},n)}function Ko(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function K9(e){return typeof e=="function"?e():e}const Rk=_.forwardRef(function(t,r){const{children:n,container:a,disablePortal:s=!1}=t,[o,c]=_.useState(null),f=Lr(_.isValidElement(n)?Ko(n):null,r);if(ga(()=>{s||c(K9(a)||document.body)},[a,s]),ga(()=>{if(o&&!s)return xC(r,o),()=>{xC(r,null)}},[r,o,s]),s){if(_.isValidElement(n)){const d={ref:f};return _.cloneElement(n,d)}return n}return o&&Lv.createPortal(n,o)});function Q9(e){return nt("MuiPopper",e)}it("MuiPopper",["root"]);function Z9(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Yx(e){return typeof e=="function"?e():e}function J9(e){return e.nodeType!==void 0}const eL=e=>{const{classes:t}=e;return at({root:["root"]},Q9,t)},tL={},rL=_.forwardRef(function(t,r){const{anchorEl:n,children:a,direction:s,disablePortal:o,modifiers:c,open:f,placement:d,popperOptions:h,popperRef:g,slotProps:x={},slots:y={},TransitionProps:b,ownerState:v,...w}=t,C=_.useRef(null),k=Lr(C,r),E=_.useRef(null),D=Lr(E,g),M=_.useRef(D);ga(()=>{M.current=D},[D]),_.useImperativeHandle(g,()=>E.current,[]);const A=Z9(d,s),[O,N]=_.useState(A),[F,P]=_.useState(Yx(n));_.useEffect(()=>{E.current&&E.current.forceUpdate()}),_.useEffect(()=>{n&&P(Yx(n))},[n]),ga(()=>{if(!F||!f)return;const Z=ce=>{N(ce.placement)};let B=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ce})=>{Z(ce)}}];c!=null&&(B=B.concat(c)),h&&h.modifiers!=null&&(B=B.concat(h.modifiers));const ne=q9(F,C.current,{placement:A,...h,modifiers:B});return M.current(ne),()=>{ne.destroy(),M.current(null)}},[F,o,c,f,h,A]);const j={placement:O};b!==null&&(j.TransitionProps=b);const R=eL(t),W=y.root??"div",Y=Ll({elementType:W,externalSlotProps:x.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:R.root});return m.jsx(W,{...Y,children:typeof a=="function"?a(j):a})}),nL=_.forwardRef(function(t,r){const{anchorEl:n,children:a,container:s,direction:o="ltr",disablePortal:c=!1,keepMounted:f=!1,modifiers:d,open:h,placement:g="bottom",popperOptions:x=tL,popperRef:y,style:b,transition:v=!1,slotProps:w={},slots:C={},...k}=t,[E,D]=_.useState(!0),M=()=>{D(!1)},A=()=>{D(!0)};if(!f&&!h&&(!v||E))return null;let O;if(s)O=s;else if(n){const P=Yx(n);O=P&&J9(P)?zn(P).body:zn(null).body}const N=!h&&f&&(!v||E)?"none":void 0,F=v?{in:h,onEnter:M,onExited:A}:void 0;return m.jsx(Rk,{disablePortal:c,container:O,children:m.jsx(rL,{anchorEl:n,direction:o,disablePortal:c,modifiers:d,ref:r,open:v?!E:h,placement:g,popperOptions:x,popperRef:y,slotProps:w,slots:C,...k,style:{position:"fixed",top:0,left:0,display:N,...b},TransitionProps:F,children:a})})}),aL=_e(nL,{name:"MuiPopper",slot:"Root"})({}),Ok=_.forwardRef(function(t,r){const n=Xo(),a=lt({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:c,componentsProps:f,container:d,disablePortal:h,keepMounted:g,modifiers:x,open:y,placement:b,popperOptions:v,popperRef:w,transition:C,slots:k,slotProps:E,...D}=a,M=k?.root??c?.Root,A={anchorEl:s,container:d,disablePortal:h,keepMounted:g,modifiers:x,open:y,placement:b,popperOptions:v,popperRef:w,transition:C,...D};return m.jsx(aL,{as:o,direction:n?"rtl":"ltr",slots:{root:M},slotProps:E??f,...A,ref:r})}),iL=tt(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function sL(e){return nt("MuiChip",e)}const Qt=it("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),oL=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:s,onDelete:o,clickable:c,variant:f}=e,d={root:["root",f,r&&"disabled",`size${Oe(n)}`,`color${Oe(a)}`,c&&"clickable",c&&`clickableColor${Oe(a)}`,o&&"deletable",o&&`deletableColor${Oe(a)}`,`${f}${Oe(a)}`],label:["label",`label${Oe(n)}`],avatar:["avatar",`avatar${Oe(n)}`,`avatarColor${Oe(a)}`],icon:["icon",`icon${Oe(n)}`,`iconColor${Oe(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Oe(n)}`,`deleteIconColor${Oe(a)}`,`deleteIcon${Oe(f)}Color${Oe(a)}`]};return at(d,sL,t)},lL=_e("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:s,onDelete:o,size:c,variant:f}=r;return[{[`& .${Qt.avatar}`]:t.avatar},{[`& .${Qt.avatar}`]:t[`avatar${Oe(c)}`]},{[`& .${Qt.avatar}`]:t[`avatarColor${Oe(n)}`]},{[`& .${Qt.icon}`]:t.icon},{[`& .${Qt.icon}`]:t[`icon${Oe(c)}`]},{[`& .${Qt.icon}`]:t[`iconColor${Oe(a)}`]},{[`& .${Qt.deleteIcon}`]:t.deleteIcon},{[`& .${Qt.deleteIcon}`]:t[`deleteIcon${Oe(c)}`]},{[`& .${Qt.deleteIcon}`]:t[`deleteIconColor${Oe(n)}`]},{[`& .${Qt.deleteIcon}`]:t[`deleteIcon${Oe(f)}Color${Oe(n)}`]},t.root,t[`size${Oe(c)}`],t[`color${Oe(n)}`],s&&t.clickable,s&&n!=="default"&&t[`clickableColor${Oe(n)})`],o&&t.deletable,o&&n!=="default"&&t[`deletableColor${Oe(n)}`],t[f],t[`${f}${Oe(n)}`]]}})(dt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Qt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Qt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Qt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Qt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Qt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Qt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Qt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Qt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Qt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(wr(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Qt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Qt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Qt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Qt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(wr(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Qt.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Qt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(wr(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Qt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Qt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Qt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Qt.avatar}`]:{marginLeft:4},[`& .${Qt.avatarSmall}`]:{marginLeft:2},[`& .${Qt.icon}`]:{marginLeft:4},[`& .${Qt.iconSmall}`]:{marginLeft:2},[`& .${Qt.deleteIcon}`]:{marginRight:5},[`& .${Qt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(wr()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${Qt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Qt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Qt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),cL=_e("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${Oe(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function PC(e){return e.key==="Backspace"||e.key==="Delete"}const pr=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiChip"}),{avatar:a,className:s,clickable:o,color:c="default",component:f,deleteIcon:d,disabled:h=!1,icon:g,label:x,onClick:y,onDelete:b,onKeyDown:v,onKeyUp:w,size:C="medium",variant:k="filled",tabIndex:E,skipFocusWhenDisabled:D=!1,slots:M={},slotProps:A={},...O}=n,N=_.useRef(null),F=Lr(N,r),P=ae=>{ae.stopPropagation(),b&&b(ae)},j=ae=>{ae.currentTarget===ae.target&&PC(ae)&&ae.preventDefault(),v&&v(ae)},R=ae=>{ae.currentTarget===ae.target&&b&&PC(ae)&&b(ae),w&&w(ae)},W=o!==!1&&y?!0:o,Y=W||b?Oi:f||"div",Z={...n,component:Y,disabled:h,size:C,color:c,iconColor:_.isValidElement(g)&&g.props.color||c,onDelete:!!b,clickable:W,variant:k},B=oL(Z),ne=Y===Oi?{component:f||"div",focusVisibleClassName:B.focusVisible,...b&&{disableRipple:!0}}:{};let ce=null;b&&(ce=d&&_.isValidElement(d)?_.cloneElement(d,{className:We(d.props.className,B.deleteIcon),onClick:P}):m.jsx(iL,{className:B.deleteIcon,onClick:P}));let U=null;a&&_.isValidElement(a)&&(U=_.cloneElement(a,{className:We(B.avatar,a.props.className)}));let H=null;g&&_.isValidElement(g)&&(H=_.cloneElement(g,{className:We(B.icon,g.props.className)}));const ie={slots:M,slotProps:A},[z,K]=ut("root",{elementType:lL,externalForwardedProps:{...ie,...O},ownerState:Z,shouldForwardComponentProp:!0,ref:F,className:We(B.root,s),additionalProps:{disabled:W&&h?!0:void 0,tabIndex:D&&h?-1:E,...ne},getSlotProps:ae=>({...ae,onClick:xe=>{ae.onClick?.(xe),y?.(xe)},onKeyDown:xe=>{ae.onKeyDown?.(xe),j?.(xe)},onKeyUp:xe=>{ae.onKeyUp?.(xe),R?.(xe)}})}),[Q,ee]=ut("label",{elementType:cL,externalForwardedProps:ie,ownerState:Z,className:B.label});return m.jsxs(z,{as:Y,...K,children:[U||H,m.jsx(Q,{...ee,children:x}),ce]})});function kh(e){return parseInt(e,10)||0}const uL={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function fL(e){for(const t in e)return!1;return!0}function jC(e){return fL(e)||e.outerHeightStyle===0&&!e.overflowing}const dL=_.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:s=1,style:o,value:c,...f}=t,{current:d}=_.useRef(c!=null),h=_.useRef(null),g=Lr(r,h),x=_.useRef(null),y=_.useRef(null),b=_.useCallback(()=>{const E=h.current,D=y.current;if(!E||!D)return;const A=ti(E).getComputedStyle(E);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};D.style.width=A.width,D.value=E.value||t.placeholder||"x",D.value.slice(-1)===`
`&&(D.value+=" ");const O=A.boxSizing,N=kh(A.paddingBottom)+kh(A.paddingTop),F=kh(A.borderBottomWidth)+kh(A.borderTopWidth),P=D.scrollHeight;D.value="x";const j=D.scrollHeight;let R=P;s&&(R=Math.max(Number(s)*j,R)),a&&(R=Math.min(Number(a)*j,R)),R=Math.max(R,j);const W=R+(O==="border-box"?N+F:0),Y=Math.abs(R-P)<=1;return{outerHeightStyle:W,overflowing:Y}},[a,s,t.placeholder]),v=ha(()=>{const E=h.current,D=b();if(!E||!D||jC(D))return!1;const M=D.outerHeightStyle;return x.current!=null&&x.current!==M}),w=_.useCallback(()=>{const E=h.current,D=b();if(!E||!D||jC(D))return;const M=D.outerHeightStyle;x.current!==M&&(x.current=M,E.style.height=`${M}px`),E.style.overflow=D.overflowing?"hidden":""},[b]),C=_.useRef(-1);ga(()=>{const E=Yd(w),D=h?.current;if(!D)return;const M=ti(D);M.addEventListener("resize",E);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(()=>{v()&&(A.unobserve(D),cancelAnimationFrame(C.current),w(),C.current=requestAnimationFrame(()=>{A.observe(D)}))}),A.observe(D)),()=>{E.clear(),cancelAnimationFrame(C.current),M.removeEventListener("resize",E),A&&A.disconnect()}},[b,w,v]),ga(()=>{w()});const k=E=>{d||w();const D=E.target,M=D.value.length,A=D.value.endsWith(`
`),O=D.selectionStart===M;A&&O&&D.setSelectionRange(M,M),n&&n(E)};return m.jsxs(_.Fragment,{children:[m.jsx("textarea",{value:c,onChange:k,ref:g,rows:s,style:o,...f}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...uL.shadow,...o,paddingTop:0,paddingBottom:0}})]})});function gd(e){return typeof e=="string"}function Qo({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const am=_.createContext(void 0);function Ki(){return _.useContext(am)}function LC(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vp(e,t=!1){return e&&(LC(e.value)&&e.value!==""||t&&LC(e.defaultValue)&&e.defaultValue!=="")}function hL(e){return e.startAdornment}function pL(e){return nt("MuiInputBase",e)}const fu=it("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var IC;const im=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Oe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},sm=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},mL=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:s,focused:o,formControl:c,fullWidth:f,hiddenLabel:d,multiline:h,readOnly:g,size:x,startAdornment:y,type:b}=e,v={root:["root",`color${Oe(r)}`,n&&"disabled",a&&"error",f&&"fullWidth",o&&"focused",c&&"formControl",x&&x!=="medium"&&`size${Oe(x)}`,h&&"multiline",y&&"adornedStart",s&&"adornedEnd",d&&"hiddenLabel",g&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",h&&"inputMultiline",x==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",g&&"readOnly"]};return at(v,pL,t)},om=_e("div",{name:"MuiInputBase",slot:"Root",overridesResolver:im})(dt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),lm=_e("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sm})(dt(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${fu.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${fu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),BC=ry({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),py=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:c,color:f,components:d={},componentsProps:h={},defaultValue:g,disabled:x,disableInjectingGlobalStyles:y,endAdornment:b,error:v,fullWidth:w=!1,id:C,inputComponent:k="input",inputProps:E={},inputRef:D,margin:M,maxRows:A,minRows:O,multiline:N=!1,name:F,onBlur:P,onChange:j,onClick:R,onFocus:W,onKeyDown:Y,onKeyUp:Z,placeholder:B,readOnly:ne,renderSuffix:ce,rows:U,size:H,slotProps:ie={},slots:z={},startAdornment:K,type:Q="text",value:ee,...ae}=n,xe=E.value!=null?E.value:ee,{current:ye}=_.useRef(xe!=null),Te=_.useRef(),he=_.useCallback(ot=>{},[]),Ve=Lr(Te,D,E.ref,he),[te,rt]=_.useState(!1),Ue=Ki(),ve=Qo({props:n,muiFormControl:Ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ve.focused=Ue?Ue.focused:te,_.useEffect(()=>{!Ue&&x&&te&&(rt(!1),P&&P())},[Ue,x,te,P]);const Ge=Ue&&Ue.onFilled,Ae=Ue&&Ue.onEmpty,st=_.useCallback(ot=>{vp(ot)?Ge&&Ge():Ae&&Ae()},[Ge,Ae]);ga(()=>{ye&&st({value:xe})},[xe,st,ye]);const yt=ot=>{W&&W(ot),E.onFocus&&E.onFocus(ot),Ue&&Ue.onFocus?Ue.onFocus(ot):rt(!0)},Ct=ot=>{P&&P(ot),E.onBlur&&E.onBlur(ot),Ue&&Ue.onBlur?Ue.onBlur(ot):rt(!1)},mt=(ot,...nr)=>{if(!ye){const It=ot.target||Te.current;if(It==null)throw new Error(Hs(1));st({value:It.value})}E.onChange&&E.onChange(ot,...nr),j&&j(ot,...nr)};_.useEffect(()=>{st(Te.current)},[]);const qe=ot=>{Te.current&&ot.currentTarget===ot.target&&Te.current.focus(),R&&R(ot)};let Ut=k,Dt=E;N&&Ut==="input"&&(U?Dt={type:void 0,minRows:U,maxRows:U,...Dt}:Dt={type:void 0,maxRows:A,minRows:O,...Dt},Ut=dL);const vt=ot=>{st(ot.animationName==="mui-auto-fill-cancel"?Te.current:{value:"x"})};_.useEffect(()=>{Ue&&Ue.setAdornedStart(!!K)},[Ue,K]);const Et={...n,color:ve.color||"primary",disabled:ve.disabled,endAdornment:b,error:ve.error,focused:ve.focused,formControl:Ue,fullWidth:w,hiddenLabel:ve.hiddenLabel,multiline:N,size:ve.size,startAdornment:K,type:Q},pt=mL(Et),_t=z.root||d.Root||om,At=ie.root||h.root||{},xt=z.input||d.Input||lm;return Dt={...Dt,...ie.input??h.input},m.jsxs(_.Fragment,{children:[!y&&typeof BC=="function"&&(IC||(IC=m.jsx(BC,{}))),m.jsxs(_t,{...At,ref:r,onClick:qe,...ae,...!gd(_t)&&{ownerState:{...Et,...At.ownerState}},className:We(pt.root,At.className,c,ne&&"MuiInputBase-readOnly"),children:[K,m.jsx(am.Provider,{value:null,children:m.jsx(xt,{"aria-invalid":ve.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:g,disabled:ve.disabled,id:C,onAnimationStart:vt,name:F,placeholder:B,readOnly:ne,required:ve.required,rows:U,value:xe,onKeyDown:Y,onKeyUp:Z,type:Q,...Dt,...!gd(xt)&&{as:Ut,ownerState:{...Et,...Dt.ownerState}},ref:Ve,className:We(pt.input,Dt.className,ne&&"MuiInputBase-readOnly"),onBlur:Ct,onChange:mt,onFocus:yt})}),b,ce?ce({...ve,startAdornment:K}):null]})]})});function gL(e){return nt("MuiInput",e)}const kf={...fu,...it("MuiInput",["root","underline","input"])};function xL(e){return nt("MuiOutlinedInput",e)}const as={...fu,...it("MuiOutlinedInput",["root","notchedOutline","input"])};function vL(e){return nt("MuiFilledInput",e)}const yl={...fu,...it("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},yL=tt(m.jsx("path",{d:"M7 10l5 5 5-5z"})),bL={entering:{opacity:1},entered:{opacity:1}},qx=_.forwardRef(function(t,r){const n=ai(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:c,easing:f,in:d,onEnter:h,onEntered:g,onEntering:x,onExit:y,onExited:b,onExiting:v,style:w,timeout:C=a,TransitionComponent:k=Pi,...E}=t,D=_.useRef(null),M=Lr(D,Ko(c),r),A=Y=>Z=>{if(Y){const B=D.current;Z===void 0?Y(B):Y(B,Z)}},O=A(x),N=A((Y,Z)=>{sy(Y);const B=Bo({style:w,timeout:C,easing:f},{mode:"enter"});Y.style.webkitTransition=n.transitions.create("opacity",B),Y.style.transition=n.transitions.create("opacity",B),h&&h(Y,Z)}),F=A(g),P=A(v),j=A(Y=>{const Z=Bo({style:w,timeout:C,easing:f},{mode:"exit"});Y.style.webkitTransition=n.transitions.create("opacity",Z),Y.style.transition=n.transitions.create("opacity",Z),y&&y(Y)}),R=A(b),W=Y=>{s&&s(D.current,Y)};return m.jsx(k,{appear:o,in:d,nodeRef:D,onEnter:N,onEntered:F,onEntering:O,onExit:j,onExited:R,onExiting:P,addEndListener:W,timeout:C,...E,children:(Y,{ownerState:Z,...B})=>_.cloneElement(c,{style:{opacity:0,visibility:Y==="exited"&&!d?"hidden":void 0,...bL[Y],...w,...c.props.style},ref:M,...B})})});function SL(e){return nt("MuiBackdrop",e)}it("MuiBackdrop",["root","invisible"]);const wL=e=>{const{classes:t,invisible:r}=e;return at({root:["root",r&&"invisible"]},SL,t)},TL=_e("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Dk=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:o="div",invisible:c=!1,open:f,components:d={},componentsProps:h={},slotProps:g={},slots:x={},TransitionComponent:y,transitionDuration:b,...v}=n,w={...n,component:o,invisible:c},C=wL(w),k={transition:y,root:d.Root,...x},E={...h,...g},D={component:o,slots:k,slotProps:E},[M,A]=ut("root",{elementType:TL,externalForwardedProps:D,className:We(C.root,s),ownerState:w}),[O,N]=ut("transition",{elementType:qx,externalForwardedProps:D,ownerState:w});return m.jsx(O,{in:f,timeout:b,...v,...N,children:m.jsx(M,{"aria-hidden":!0,...A,classes:C,ref:r,children:a})})}),CL=it("MuiBox",["root"]),EL=tm(),Me=EF({themeId:Gi,defaultTheme:EL,defaultClassName:CL.root,generateClassName:$_.generate}),_L=tt(m.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),kL=_e(Oi,{name:"MuiBreadcrumbCollapsed"})(dt(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:dd(e.palette.grey[200],.12)}:{backgroundColor:dd(e.palette.grey[600],.12)}}}))),AL=_e(_L)({width:24,height:16});function RL(e){const{slots:t={},slotProps:r={},...n}=e,a=e;return m.jsx("li",{children:m.jsx(kL,{focusRipple:!0,...n,ownerState:a,children:m.jsx(AL,{as:t.CollapsedIcon,ownerState:a,...r.collapsedIcon})})})}function OL(e){return nt("MuiBreadcrumbs",e)}const DL=it("MuiBreadcrumbs",["root","ol","li","separator"]),ML=e=>{const{classes:t}=e;return at({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},OL,t)},FL=_e(Le,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${DL.li}`]:t.li},t.root]})({}),NL=_e("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),PL=_e("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function jL(e,t,r,n){return e.reduce((a,s,o)=>(o<e.length-1?a=a.concat(s,m.jsx(PL,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${o}`)):a.push(s),a),[])}const my=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiBreadcrumbs"}),{children:a,className:s,component:o="nav",slots:c={},slotProps:f={},expandText:d="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:g=1,maxItems:x=8,separator:y="/",...b}=n,[v,w]=_.useState(!1),C={...n,component:o,expanded:v,expandText:d,itemsAfterCollapse:h,itemsBeforeCollapse:g,maxItems:x,separator:y},k=ML(C),E=Ll({elementType:c.CollapsedIcon,externalSlotProps:f.collapsedIcon,ownerState:C}),D=_.useRef(null),M=O=>{const N=()=>{w(!0);const F=D.current.querySelector("a[href],button,[tabindex]");F&&F.focus()};return g+h>=O.length?O:[...O.slice(0,g),m.jsx(RL,{"aria-label":d,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:N},"ellipsis"),...O.slice(O.length-h,O.length)]},A=_.Children.toArray(a).filter(O=>_.isValidElement(O)).map((O,N)=>m.jsx("li",{className:k.li,children:O},`child-${N}`));return m.jsx(FL,{ref:r,component:o,color:"textSecondary",className:We(k.root,s),ownerState:C,...b,children:m.jsx(NL,{className:k.ol,ref:D,ownerState:C,children:jL(v||x&&A.length<=x?A:M(A),k.separator,y,C)})})});function LL(e){return nt("MuiButton",e)}const bl=it("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),IL=_.createContext({}),BL=_.createContext(void 0),zL=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:s,loading:o,loadingPosition:c,classes:f}=e,d={root:["root",o&&"loading",s,`${s}${Oe(t)}`,`size${Oe(a)}`,`${s}Size${Oe(a)}`,`color${Oe(t)}`,r&&"disableElevation",n&&"fullWidth",o&&`loadingPosition${Oe(c)}`],startIcon:["icon","startIcon",`iconSize${Oe(a)}`],endIcon:["icon","endIcon",`iconSize${Oe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=at(d,LL,f);return{...f,...h}},Mk=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],UL=_e(Oi,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Oe(r.color)}`],t[`size${Oe(r.size)}`],t[`${r.variant}Size${Oe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(dt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${bl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${bl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${bl.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${bl.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(wr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bl.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${bl.loading}`]:{color:"transparent"}}}]}})),$L=_e("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Oe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Mk]})),HL=_e("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Oe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Mk]})),WL=_e("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),zC=_e("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Tt=_.forwardRef(function(t,r){const n=_.useContext(IL),a=_.useContext(BL),s=ud(n,t),o=lt({props:s,name:"MuiButton"}),{children:c,color:f="primary",component:d="button",className:h,disabled:g=!1,disableElevation:x=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:v,fullWidth:w=!1,id:C,loading:k=null,loadingIndicator:E,loadingPosition:D="center",size:M="medium",startIcon:A,type:O,variant:N="text",...F}=o,P=Yo(C),j=E??m.jsx($n,{"aria-labelledby":P,color:"inherit",size:16}),R={...o,color:f,component:d,disabled:g,disableElevation:x,disableFocusRipple:y,fullWidth:w,loading:k,loadingIndicator:j,loadingPosition:D,size:M,type:O,variant:N},W=zL(R),Y=(A||k&&D==="start")&&m.jsx($L,{className:W.startIcon,ownerState:R,children:A||m.jsx(zC,{className:W.loadingIconPlaceholder,ownerState:R})}),Z=(b||k&&D==="end")&&m.jsx(HL,{className:W.endIcon,ownerState:R,children:b||m.jsx(zC,{className:W.loadingIconPlaceholder,ownerState:R})}),B=a||"",ne=typeof k=="boolean"?m.jsx("span",{className:W.loadingWrapper,style:{display:"contents"},children:k&&m.jsx(WL,{className:W.loadingIndicator,ownerState:R,children:j})}):null;return m.jsxs(UL,{ownerState:R,className:We(n.className,W.root,h,B),component:d,disabled:g||k,focusRipple:!y,focusVisibleClassName:We(W.focusVisible,v),ref:r,type:O,id:k?P:C,...F,classes:W,children:[Y,D!=="end"&&ne,c,D==="end"&&ne,Z]})});function VL(e){return nt("MuiCard",e)}it("MuiCard",["root"]);const GL=e=>{const{classes:t}=e;return at({root:["root"]},VL,t)},XL=_e(zr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),nn=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiCard"}),{className:a,raised:s=!1,...o}=n,c={...n,raised:s},f=GL(c);return m.jsx(XL,{className:We(f.root,a),elevation:s?8:void 0,ref:r,ownerState:c,...o})});function YL(e){return nt("MuiCardActions",e)}it("MuiCardActions",["root","spacing"]);const qL=e=>{const{classes:t,disableSpacing:r}=e;return at({root:["root",!r&&"spacing"]},YL,t)},KL=_e("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),QL=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiCardActions"}),{disableSpacing:a=!1,className:s,...o}=n,c={...n,disableSpacing:a},f=qL(c);return m.jsx(KL,{className:We(f.root,s),ownerState:c,ref:r,...o})});function ZL(e){return nt("MuiCardContent",e)}it("MuiCardContent",["root"]);const JL=e=>{const{classes:t}=e;return at({root:["root"]},ZL,t)},e7=_e("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),an=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiCardContent"}),{className:a,component:s="div",...o}=n,c={...n,component:s},f=JL(c);return m.jsx(e7,{as:s,className:We(f.root,a),ownerState:c,ref:r,...o})});function t7(e){return nt("MuiCardHeader",e)}const yp=it("MuiCardHeader",["root","avatar","action","content","title","subheader"]),r7=e=>{const{classes:t}=e;return at({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},t7,t)},n7=_e("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${yp.title}`]:t.title},{[`& .${yp.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),a7=_e("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),i7=_e("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),s7=_e("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${gp.root}:where(& .${yp.title})`]:{display:"block"},[`.${gp.root}:where(& .${yp.subheader})`]:{display:"block"}}),o7=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiCardHeader"}),{action:a,avatar:s,component:o="div",disableTypography:c=!1,subheader:f,subheaderTypographyProps:d,title:h,titleTypographyProps:g,slots:x={},slotProps:y={},...b}=n,v={...n,component:o,disableTypography:c},w=r7(v),C={slots:x,slotProps:{title:g,subheader:d,...y}};let k=h;const[E,D]=ut("title",{className:w.title,elementType:Le,externalForwardedProps:C,ownerState:v,additionalProps:{variant:s?"body2":"h5",component:"span"}});k!=null&&k.type!==Le&&!c&&(k=m.jsx(E,{...D,children:k}));let M=f;const[A,O]=ut("subheader",{className:w.subheader,elementType:Le,externalForwardedProps:C,ownerState:v,additionalProps:{variant:s?"body2":"body1",color:"textSecondary",component:"span"}});M!=null&&M.type!==Le&&!c&&(M=m.jsx(A,{...O,children:M}));const[N,F]=ut("root",{ref:r,className:w.root,elementType:n7,externalForwardedProps:{...C,...b,component:o},ownerState:v}),[P,j]=ut("avatar",{className:w.avatar,elementType:a7,externalForwardedProps:C,ownerState:v}),[R,W]=ut("content",{className:w.content,elementType:s7,externalForwardedProps:C,ownerState:v}),[Y,Z]=ut("action",{className:w.action,elementType:i7,externalForwardedProps:C,ownerState:v});return m.jsxs(N,{...F,children:[s&&m.jsx(P,{...j,children:s}),m.jsxs(R,{...W,children:[k,M]}),a&&m.jsx(Y,{...Z,children:a})]})});function l7(e){return nt("PrivateSwitchBase",e)}it("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const c7=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,s={root:["root",r&&"checked",n&&"disabled",a&&`edge${Oe(a)}`],input:["input"]};return at(s,l7,t)},u7=_e(Oi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),f7=_e("input",{name:"MuiSwitchBase",shouldForwardProp:wn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Fk=_.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:s,defaultChecked:o,disabled:c,disableFocusRipple:f=!1,edge:d=!1,icon:h,id:g,inputProps:x,inputRef:y,name:b,onBlur:v,onChange:w,onFocus:C,readOnly:k,required:E=!1,tabIndex:D,type:M,value:A,slots:O={},slotProps:N={},...F}=t,[P,j]=Pl({controlled:a,default:!!o,name:"SwitchBase",state:"checked"}),R=Ki(),W=ee=>{C&&C(ee),R&&R.onFocus&&R.onFocus(ee)},Y=ee=>{v&&v(ee),R&&R.onBlur&&R.onBlur(ee)},Z=ee=>{if(ee.nativeEvent.defaultPrevented)return;const ae=ee.target.checked;j(ae),w&&w(ee,ae)};let B=c;R&&typeof B>"u"&&(B=R.disabled);const ne=M==="checkbox"||M==="radio",ce={...t,checked:P,disabled:B,disableFocusRipple:f,edge:d},U=c7(ce),H={slots:O,slotProps:{input:x,...N}},[ie,z]=ut("root",{ref:r,elementType:u7,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...H,component:"span",...F},getSlotProps:ee=>({...ee,onFocus:ae=>{ee.onFocus?.(ae),W(ae)},onBlur:ae=>{ee.onBlur?.(ae),Y(ae)}}),ownerState:ce,additionalProps:{centerRipple:!0,focusRipple:!f,disabled:B,role:void 0,tabIndex:null}}),[K,Q]=ut("input",{ref:y,elementType:f7,className:U.input,externalForwardedProps:H,getSlotProps:ee=>({...ee,onChange:ae=>{ee.onChange?.(ae),Z(ae)}}),ownerState:ce,additionalProps:{autoFocus:n,checked:a,defaultChecked:o,disabled:B,id:ne?g:void 0,name:b,readOnly:k,required:E,tabIndex:D,type:M,...M==="checkbox"&&A===void 0?{}:{value:A}}});return m.jsxs(ie,{...z,children:[m.jsx(K,{...Q}),P?s:h]})}),d7=tt(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),h7=tt(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),p7=tt(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function m7(e){return nt("MuiCheckbox",e)}const Kg=it("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),g7=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,s={root:["root",r&&"indeterminate",`color${Oe(n)}`,`size${Oe(a)}`]},o=at(s,m7,t);return{...t,...o}},x7=_e(Fk,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Oe(r.size)}`],r.color!=="default"&&t[`color${Oe(r.color)}`]]}})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{[`&.${Kg.checked}, &.${Kg.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Kg.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),v7=m.jsx(h7,{}),y7=m.jsx(d7,{}),b7=m.jsx(p7,{}),Il=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=v7,color:s="primary",icon:o=y7,indeterminate:c=!1,indeterminateIcon:f=b7,inputProps:d,size:h="medium",disableRipple:g=!1,className:x,slots:y={},slotProps:b={},...v}=n,w=c?f:o,C=c?f:a,k={...n,disableRipple:g,color:s,indeterminate:c,size:h},E=g7(k),D=b.input??d,[M,A]=ut("root",{ref:r,elementType:x7,className:We(E.root,x),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,...v},ownerState:k,additionalProps:{type:"checkbox",icon:_.cloneElement(w,{fontSize:w.props.fontSize??h}),checkedIcon:_.cloneElement(C,{fontSize:C.props.fontSize??h}),disableRipple:g,slots:y,slotProps:{input:ny(typeof D=="function"?D(k):D,{"data-indeterminate":c})}}});return m.jsx(M,{...A,classes:E})});function UC(e){return e.substring(2).toLowerCase()}function S7(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function w7(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:a,touchEvent:s="onTouchEnd"}=e,o=_.useRef(!1),c=_.useRef(null),f=_.useRef(!1),d=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{f.current=!0},0),()=>{f.current=!1}),[]);const h=Lr(Ko(t),c),g=ha(b=>{const v=d.current;d.current=!1;const w=zn(c.current);if(!f.current||!c.current||"clientX"in b&&S7(b,w))return;if(o.current){o.current=!1;return}let C;b.composedPath?C=b.composedPath().includes(c.current):C=!w.documentElement.contains(b.target)||c.current.contains(b.target),!C&&(r||!v)&&a(b)}),x=b=>v=>{d.current=!0;const w=t.props[b];w&&w(v)},y={ref:h};return s!==!1&&(y[s]=x(s)),_.useEffect(()=>{if(s!==!1){const b=UC(s),v=zn(c.current),w=()=>{o.current=!0};return v.addEventListener(b,g),v.addEventListener("touchmove",w),()=>{v.removeEventListener(b,g),v.removeEventListener("touchmove",w)}}},[g,s]),n!==!1&&(y[n]=x(n)),_.useEffect(()=>{if(n!==!1){const b=UC(n),v=zn(c.current);return v.addEventListener(b,g),()=>{v.removeEventListener(b,g)}}},[g,n]),_.cloneElement(t,y)}const gy=gN({createStyledComponent:_e("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Oe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>lt({props:e,name:"MuiContainer"})}),Kx=typeof ry({})=="function",T7=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),C7=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Nk=(e,t=!1)=>{const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,o])=>{const c=e.getColorSchemeSelector(s);c.startsWith("@")?r[c]={":root":{colorScheme:o.palette?.mode}}:r[c.replace(/\s*&/,"")]={colorScheme:o.palette?.mode}});let n={html:T7(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...C7(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const a=e.components?.MuiCssBaseline?.styleOverrides;return a&&(n=[n,a]),n},ep="mui-ecs",E7=e=>{const t=Nk(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${ep})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,a])=>{const s=e.getColorSchemeSelector(n);s.startsWith("@")?r[s]={[`:root:not(:has(.${ep}))`]:{colorScheme:a.palette?.mode}}:r[s.replace(/\s*&/,"")]={[`&:not(:has(.${ep}))`]:{colorScheme:a.palette?.mode}}}),t},_7=ry(Kx?({theme:e,enableColorScheme:t})=>Nk(e,t):({theme:e})=>E7(e));function Pk(e){const t=lt({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return m.jsxs(_.Fragment,{children:[Kx&&m.jsx(_7,{enableColorScheme:n}),!Kx&&!n&&m.jsx("span",{className:ep,style:{display:"none"}}),r]})}function jk(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function k7(e){const t=zn(e);return t.body===e?ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Xf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $C(e){return parseInt(ti(e).getComputedStyle(e).paddingRight,10)||0}function A7(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function HC(e,t,r,n,a){const s=[t,r,...n];[].forEach.call(e.children,o=>{const c=!s.includes(o),f=!A7(o);c&&f&&Xf(o,a)})}function Qg(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function R7(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(k7(n)){const o=jk(ti(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${$C(n)+o}px`;const c=zn(n).querySelectorAll(".mui-fixed");[].forEach.call(c,f=>{r.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${$C(f)+o}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=zn(n).body;else{const o=n.parentElement,c=ti(n);s=o?.nodeName==="HTML"&&c.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:o,property:c})=>{s?o.style.setProperty(c,s):o.style.removeProperty(c)})}}function O7(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class D7{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Xf(t.modalRef,!1);const a=O7(r);HC(r,t.mount,t.modalRef,a,!0);const s=Qg(this.containers,o=>o.container===r);return s!==-1?(this.containers[s].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=Qg(this.containers,s=>s.modals.includes(t)),a=this.containers[n];a.restore||(a.restore=R7(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=Qg(this.containers,o=>o.modals.includes(t)),s=this.containers[a];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Xf(t.modalRef,r),HC(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(a,1);else{const o=s.modals[s.modals.length-1];o.modalRef&&Xf(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const M7=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function F7(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function N7(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function P7(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||N7(e))}function j7(e){const t=[],r=[];return Array.from(e.querySelectorAll(M7)).forEach((n,a)=>{const s=F7(n);s===-1||!P7(n)||(s===0?t.push(n):r.push({documentOrder:a,tabIndex:s,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function L7(){return!0}function I7(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:s=j7,isEnabled:o=L7,open:c}=e,f=_.useRef(!1),d=_.useRef(null),h=_.useRef(null),g=_.useRef(null),x=_.useRef(null),y=_.useRef(!1),b=_.useRef(null),v=Lr(Ko(t),b),w=_.useRef(null);_.useEffect(()=>{!c||!b.current||(y.current=!r)},[r,c]),_.useEffect(()=>{if(!c||!b.current)return;const E=zn(b.current);return b.current.contains(E.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),y.current&&b.current.focus()),()=>{a||(g.current&&g.current.focus&&(f.current=!0,g.current.focus()),g.current=null)}},[c]),_.useEffect(()=>{if(!c||!b.current)return;const E=zn(b.current),D=O=>{w.current=O,!(n||!o()||O.key!=="Tab")&&E.activeElement===b.current&&O.shiftKey&&(f.current=!0,h.current&&h.current.focus())},M=()=>{const O=b.current;if(O===null)return;if(!E.hasFocus()||!o()||f.current){f.current=!1;return}if(O.contains(E.activeElement)||n&&E.activeElement!==d.current&&E.activeElement!==h.current)return;if(E.activeElement!==x.current)x.current=null;else if(x.current!==null)return;if(!y.current)return;let N=[];if((E.activeElement===d.current||E.activeElement===h.current)&&(N=s(b.current)),N.length>0){const F=!!(w.current?.shiftKey&&w.current?.key==="Tab"),P=N[0],j=N[N.length-1];typeof P!="string"&&typeof j!="string"&&(F?j.focus():P.focus())}else O.focus()};E.addEventListener("focusin",M),E.addEventListener("keydown",D,!0);const A=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(A),E.removeEventListener("focusin",M),E.removeEventListener("keydown",D,!0)}},[r,n,a,o,c,s]);const C=E=>{g.current===null&&(g.current=E.relatedTarget),y.current=!0,x.current=E.target;const D=t.props.onFocus;D&&D(E)},k=E=>{g.current===null&&(g.current=E.relatedTarget),y.current=!0};return m.jsxs(_.Fragment,{children:[m.jsx("div",{tabIndex:c?0:-1,onFocus:k,ref:d,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:v,onFocus:C}),m.jsx("div",{tabIndex:c?0:-1,onFocus:k,ref:h,"data-testid":"sentinelEnd"})]})}function B7(e){return typeof e=="function"?e():e}function z7(e){return e?e.props.hasOwnProperty("in"):!1}const WC=()=>{},Ah=new D7;function U7(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:c,onClose:f,open:d,rootRef:h}=e,g=_.useRef({}),x=_.useRef(null),y=_.useRef(null),b=Lr(y,h),[v,w]=_.useState(!d),C=z7(c);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const E=()=>zn(x.current),D=()=>(g.current.modalRef=y.current,g.current.mount=x.current,g.current),M=()=>{Ah.mount(D(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},A=ha(()=>{const Z=B7(t)||E().body;Ah.add(D(),Z),y.current&&M()}),O=()=>Ah.isTopModal(D()),N=ha(Z=>{x.current=Z,Z&&(d&&O()?M():y.current&&Xf(y.current,k))}),F=_.useCallback(()=>{Ah.remove(D(),k)},[k]);_.useEffect(()=>()=>{F()},[F]),_.useEffect(()=>{d?A():(!C||!a)&&F()},[d,F,C,a,A]);const P=Z=>B=>{Z.onKeyDown?.(B),!(B.key!=="Escape"||B.which===229||!O())&&(r||(B.stopPropagation(),f&&f(B,"escapeKeyDown")))},j=Z=>B=>{Z.onClick?.(B),B.target===B.currentTarget&&f&&f(B,"backdropClick")};return{getRootProps:(Z={})=>{const B=pp(e);delete B.onTransitionEnter,delete B.onTransitionExited;const ne={...B,...Z};return{role:"presentation",...ne,onKeyDown:P(ne),ref:b}},getBackdropProps:(Z={})=>{const B=Z;return{"aria-hidden":!0,...B,onClick:j(B),open:d}},getTransitionProps:()=>{const Z=()=>{w(!1),s&&s()},B=()=>{w(!0),o&&o(),a&&F()};return{onEnter:Px(Z,c?.props.onEnter??WC),onExited:Px(B,c?.props.onExited??WC)}},rootRef:b,portalRef:N,isTopModal:O,exited:v,hasTransition:C}}function $7(e){return nt("MuiModal",e)}it("MuiModal",["root","hidden","backdrop"]);const H7=e=>{const{open:t,exited:r,classes:n}=e;return at({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},$7,n)},W7=_e("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(dt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),V7=_e(Dk,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),xy=_.forwardRef(function(t,r){const n=lt({name:"MuiModal",props:t}),{BackdropComponent:a=V7,BackdropProps:s,classes:o,className:c,closeAfterTransition:f=!1,children:d,container:h,component:g,components:x={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:w=!1,disablePortal:C=!1,disableRestoreFocus:k=!1,disableScrollLock:E=!1,hideBackdrop:D=!1,keepMounted:M=!1,onClose:A,onTransitionEnter:O,onTransitionExited:N,open:F,slotProps:P={},slots:j={},theme:R,...W}=n,Y={...n,closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:v,disableEscapeKeyDown:w,disablePortal:C,disableRestoreFocus:k,disableScrollLock:E,hideBackdrop:D,keepMounted:M},{getRootProps:Z,getBackdropProps:B,getTransitionProps:ne,portalRef:ce,isTopModal:U,exited:H,hasTransition:ie}=U7({...Y,rootRef:r}),z={...Y,exited:H},K=H7(z),Q={};if(d.props.tabIndex===void 0&&(Q.tabIndex="-1"),ie){const{onEnter:he,onExited:Ve}=ne();Q.onEnter=he,Q.onExited=Ve}const ee={slots:{root:x.Root,backdrop:x.Backdrop,...j},slotProps:{...y,...P}},[ae,xe]=ut("root",{ref:r,elementType:W7,externalForwardedProps:{...ee,...W,component:g},getSlotProps:Z,ownerState:z,className:We(c,K?.root,!z.open&&z.exited&&K?.hidden)}),[ye,Te]=ut("backdrop",{ref:s?.ref,elementType:a,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:he=>B({...he,onClick:Ve=>{he?.onClick&&he.onClick(Ve)}}),className:We(s?.className,K?.backdrop),ownerState:z});return!M&&!F&&(!ie||H)?null:m.jsx(Rk,{ref:ce,container:h,disablePortal:C,children:m.jsxs(ae,{...xe,children:[!D&&a?m.jsx(ye,{...Te}):null,m.jsx(I7,{disableEnforceFocus:v,disableAutoFocus:b,disableRestoreFocus:k,isEnabled:U,open:F,children:_.cloneElement(d,Q)})]})})});function G7(e){return nt("MuiDialog",e)}const Zg=it("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Lk=_.createContext({}),X7=_e(Dk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Y7=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:s}=e,o={root:["root"],container:["container",`scroll${Oe(r)}`],paper:["paper",`paperScroll${Oe(r)}`,`paperWidth${Oe(String(n))}`,a&&"paperFullWidth",s&&"paperFullScreen"]};return at(o,G7,t)},q7=_e(xy,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),K7=_e("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Oe(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Q7=_e(zr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Oe(r.scroll)}`],t[`paperWidth${Oe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(dt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Zg.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Zg.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Zg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ea=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiDialog"}),a=ai(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":c,"aria-modal":f=!0,BackdropComponent:d,BackdropProps:h,children:g,className:x,disableEscapeKeyDown:y=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:w="sm",onClick:C,onClose:k,open:E,PaperComponent:D=zr,PaperProps:M={},scroll:A="paper",slots:O={},slotProps:N={},TransitionComponent:F=qx,transitionDuration:P=s,TransitionProps:j,...R}=n,W={...n,disableEscapeKeyDown:y,fullScreen:b,fullWidth:v,maxWidth:w,scroll:A},Y=Y7(W),Z=_.useRef(),B=rt=>{Z.current=rt.target===rt.currentTarget},ne=rt=>{C&&C(rt),Z.current&&(Z.current=null,k&&k(rt,"backdropClick"))},ce=Yo(c),U=_.useMemo(()=>({titleId:ce}),[ce]),H={transition:F,...O},ie={transition:j,paper:M,backdrop:h,...N},z={slots:H,slotProps:ie},[K,Q]=ut("root",{elementType:q7,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:W,className:We(Y.root,x),ref:r}),[ee,ae]=ut("backdrop",{elementType:X7,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:W}),[xe,ye]=ut("paper",{elementType:Q7,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:W,className:We(Y.paper,M.className)}),[Te,he]=ut("container",{elementType:K7,externalForwardedProps:z,ownerState:W,className:Y.container}),[Ve,te]=ut("transition",{elementType:qx,externalForwardedProps:z,ownerState:W,additionalProps:{appear:!0,in:E,timeout:P,role:"presentation"}});return m.jsx(K,{closeAfterTransition:!0,slots:{backdrop:ee},slotProps:{backdrop:{transitionDuration:P,as:d,...ae}},disableEscapeKeyDown:y,onClose:k,open:E,onClick:ne,...Q,...R,children:m.jsx(Ve,{...te,children:m.jsx(Te,{onMouseDown:B,...he,children:m.jsx(xe,{as:D,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":ce,"aria-modal":f,...ye,children:m.jsx(Lk.Provider,{value:U,children:g})})})})})});function Z7(e){return nt("MuiDialogActions",e)}it("MuiDialogActions",["root","spacing"]);const J7=e=>{const{classes:t,disableSpacing:r}=e;return at({root:["root",!r&&"spacing"]},Z7,t)},eI=_e("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),pa=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:s=!1,...o}=n,c={...n,disableSpacing:s},f=J7(c);return m.jsx(eI,{className:We(f.root,a),ownerState:c,ref:r,...o})});function tI(e){return nt("MuiDialogContent",e)}it("MuiDialogContent",["root","dividers"]);function rI(e){return nt("MuiDialogTitle",e)}const nI=it("MuiDialogTitle",["root"]),aI=e=>{const{classes:t,dividers:r}=e;return at({root:["root",r&&"dividers"]},tI,t)},iI=_e("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(dt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${nI.root} + &`]:{paddingTop:0}}}]}))),ta=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiDialogContent"}),{className:a,dividers:s=!1,...o}=n,c={...n,dividers:s},f=aI(c);return m.jsx(iI,{className:We(f.root,a),ownerState:c,ref:r,...o})});function sI(e){return nt("MuiDialogContentText",e)}it("MuiDialogContentText",["root"]);const oI=e=>{const{classes:t}=e,n=at({root:["root"]},sI,t);return{...t,...n}},lI=_e(Le,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Ik=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiDialogContentText"}),{children:a,className:s,...o}=n,c=oI(o);return m.jsx(lI,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:o,className:We(c.root,s),...n,classes:c})}),cI=e=>{const{classes:t}=e;return at({root:["root"]},rI,t)},uI=_e(Le,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),ra=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiDialogTitle"}),{className:a,id:s,...o}=n,c=n,f=cI(c),{titleId:d=s}=_.useContext(Lk);return m.jsx(uI,{component:"h2",className:We(f.root,a),ownerState:c,ref:r,variant:"h6",id:s??d,...o})});function fI(e){return nt("MuiDivider",e)}const VC=it("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dI=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:s,orientation:o,textAlign:c,variant:f}=e;return at({root:["root",t&&"absolute",f,s&&"light",o==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",c==="right"&&o!=="vertical"&&"textAlignRight",c==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},fI,n)},hI=_e("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(dt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),pI=_e("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(dt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Qa=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:s,className:o,orientation:c="horizontal",component:f=s||c==="vertical"?"div":"hr",flexItem:d=!1,light:h=!1,role:g=f!=="hr"?"separator":void 0,textAlign:x="center",variant:y="fullWidth",...b}=n,v={...n,absolute:a,component:f,flexItem:d,light:h,orientation:c,role:g,textAlign:x,variant:y},w=dI(v);return m.jsx(hI,{as:f,className:We(w.root,o),role:g,ref:r,ownerState:v,"aria-orientation":g==="separator"&&(f!=="hr"||c==="vertical")?c:void 0,...b,children:s?m.jsx(pI,{className:w.wrapper,ownerState:v,children:s}):null})});Qa&&(Qa.muiSkipListHighlight=!0);function mI(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),s=ti(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const d=s.getComputedStyle(t);o=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let c=0,f=0;if(o&&o!=="none"&&typeof o=="string"){const d=o.split("(")[1].split(")")[0].split(",");c=parseInt(d[4],10),f=parseInt(d[5],10)}return e==="left"?a?`translateX(${a.right+c-n.left}px)`:`translateX(${s.innerWidth+c-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-c}px)`:`translateX(-${n.left+n.width-c}px)`:e==="up"?a?`translateY(${a.bottom+f-n.top}px)`:`translateY(${s.innerHeight+f-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-f}px)`:`translateY(-${n.top+n.height-f}px)`}function gI(e){return typeof e=="function"?e():e}function Rh(e,t,r){const n=gI(r),a=mI(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const xI=_.forwardRef(function(t,r){const n=ai(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:c=!0,children:f,container:d,direction:h="down",easing:g=a,in:x,onEnter:y,onEntered:b,onEntering:v,onExit:w,onExited:C,onExiting:k,style:E,timeout:D=s,TransitionComponent:M=Pi,...A}=t,O=_.useRef(null),N=Lr(Ko(f),O,r),F=ce=>U=>{ce&&(U===void 0?ce(O.current):ce(O.current,U))},P=F((ce,U)=>{Rh(h,ce,d),sy(ce),y&&y(ce,U)}),j=F((ce,U)=>{const H=Bo({timeout:D,style:E,easing:g},{mode:"enter"});ce.style.webkitTransition=n.transitions.create("-webkit-transform",{...H}),ce.style.transition=n.transitions.create("transform",{...H}),ce.style.webkitTransform="none",ce.style.transform="none",v&&v(ce,U)}),R=F(b),W=F(k),Y=F(ce=>{const U=Bo({timeout:D,style:E,easing:g},{mode:"exit"});ce.style.webkitTransition=n.transitions.create("-webkit-transform",U),ce.style.transition=n.transitions.create("transform",U),Rh(h,ce,d),w&&w(ce)}),Z=F(ce=>{ce.style.webkitTransition="",ce.style.transition="",C&&C(ce)}),B=ce=>{o&&o(O.current,ce)},ne=_.useCallback(()=>{O.current&&Rh(h,O.current,d)},[h,d]);return _.useEffect(()=>{if(x||h==="down"||h==="right")return;const ce=Yd(()=>{O.current&&Rh(h,O.current,d)}),U=ti(O.current);return U.addEventListener("resize",ce),()=>{ce.clear(),U.removeEventListener("resize",ce)}},[h,x,d]),_.useEffect(()=>{x||ne()},[x,ne]),m.jsx(M,{nodeRef:O,onEnter:P,onEntered:R,onEntering:j,onExit:Y,onExited:Z,onExiting:W,addEndListener:B,appear:c,in:x,timeout:D,...A,children:(ce,{ownerState:U,...H})=>_.cloneElement(f,{ref:N,style:{visibility:ce==="exited"&&!x?"hidden":void 0,...E,...f.props.style},...H})})});function vI(e){return nt("MuiDrawer",e)}it("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Bk=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},yI=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root",`anchor${Oe(r)}`],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Oe(r)}`,n!=="temporary"&&`paperAnchorDocked${Oe(r)}`]};return at(a,vI,t)},bI=_e(xy,{name:"MuiDrawer",slot:"Root",overridesResolver:Bk})(dt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),SI=_e("div",{shouldForwardProp:wn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Bk})({flex:"0 0 auto"}),wI=_e(zr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Oe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Oe(r.anchor)}`]]}})(dt(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),zk={left:"right",right:"left",top:"down",bottom:"up"};function TI(e){return["left","right"].includes(e)}function CI({direction:e},t){return e==="rtl"&&TI(t)?zk[t]:t}const GC=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiDrawer"}),a=ai(),s=Xo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:c="left",BackdropProps:f,children:d,className:h,elevation:g=16,hideBackdrop:x=!1,ModalProps:{BackdropProps:y,...b}={},onClose:v,open:w=!1,PaperProps:C={},SlideProps:k,TransitionComponent:E,transitionDuration:D=o,variant:M="temporary",slots:A={},slotProps:O={},...N}=n,F=_.useRef(!1);_.useEffect(()=>{F.current=!0},[]);const P=CI({direction:s?"rtl":"ltr"},c),R={...n,anchor:c,elevation:g,open:w,variant:M,...N},W=yI(R),Y={slots:{transition:E,...A},slotProps:{paper:C,transition:k,...O,backdrop:ny(O.backdrop||{...f,...y},{transitionDuration:D})}},[Z,B]=ut("root",{ref:r,elementType:bI,className:We(W.root,W.modal,h),shouldForwardComponentProp:!0,ownerState:R,externalForwardedProps:{...Y,...N,...b},additionalProps:{open:w,onClose:v,hideBackdrop:x,slots:{backdrop:Y.slots.backdrop},slotProps:{backdrop:Y.slotProps.backdrop}}}),[ne,ce]=ut("paper",{elementType:wI,shouldForwardComponentProp:!0,className:We(W.paper,C.className),ownerState:R,externalForwardedProps:Y,additionalProps:{elevation:M==="temporary"?g:0,square:!0}}),[U,H]=ut("docked",{elementType:SI,ref:r,className:We(W.root,W.docked,h),ownerState:R,externalForwardedProps:Y,additionalProps:N}),[ie,z]=ut("transition",{elementType:xI,ownerState:R,externalForwardedProps:Y,additionalProps:{in:w,direction:zk[P],timeout:D,appear:F.current}}),K=m.jsx(ne,{...ce,children:d});if(M==="permanent")return m.jsx(U,{...H,children:K});const Q=m.jsx(ie,{...z,children:K});return M==="persistent"?m.jsx(U,{...H,children:Q}):m.jsx(Z,{...B,children:Q})}),EI=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:a,size:s,hiddenLabel:o,multiline:c}=e,f={root:["root",!r&&"underline",n&&"adornedStart",a&&"adornedEnd",s==="small"&&`size${Oe(s)}`,o&&"hiddenLabel",c&&"multiline"],input:["input"]},d=at(f,vL,t);return{...t,...d}},_I=_e(om,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...im(e,t),!r.disableUnderline&&t.underline]}})(dt(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${yl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${yl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yl.disabled}, .${yl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(wr()).map(([o])=>({props:{disableUnderline:!1,color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o]?.main}`}}})),{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:12}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:12}},{props:({ownerState:o})=>o.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:o,size:c})=>o.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:o})=>o.multiline&&o.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:o})=>o.multiline&&o.hiddenLabel&&o.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),kI=_e(lm,{name:"MuiFilledInput",slot:"Input",overridesResolver:sm})(dt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),vy=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:s={},componentsProps:o,fullWidth:c=!1,hiddenLabel:f,inputComponent:d="input",multiline:h=!1,slotProps:g,slots:x={},type:y="text",...b}=n,v={...n,disableUnderline:a,fullWidth:c,inputComponent:d,multiline:h,type:y},w=EI(n),C={root:{ownerState:v},input:{ownerState:v}},k=g??o?Jn(C,g??o):C,E=x.root??s.Root??_I,D=x.input??s.Input??kI;return m.jsx(py,{slots:{root:E,input:D},slotProps:k,fullWidth:c,inputComponent:d,multiline:h,ref:r,type:y,...b,classes:w})});vy.muiName="Input";function AI(e){return nt("MuiFormControl",e)}it("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const RI=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${Oe(r)}`,n&&"fullWidth"]};return at(a,AI,t)},OI=_e("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${Oe(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ra=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiFormControl"}),{children:a,className:s,color:o="primary",component:c="div",disabled:f=!1,error:d=!1,focused:h,fullWidth:g=!1,hiddenLabel:x=!1,margin:y="none",required:b=!1,size:v="medium",variant:w="outlined",...C}=n,k={...n,color:o,component:c,disabled:f,error:d,fullWidth:g,hiddenLabel:x,margin:y,required:b,size:v,variant:w},E=RI(k),[D,M]=_.useState(()=>{let Z=!1;return a&&_.Children.forEach(a,B=>{if(!Wf(B,["Input","Select"]))return;const ne=Wf(B,["Select"])?B.props.input:B;ne&&hL(ne.props)&&(Z=!0)}),Z}),[A,O]=_.useState(()=>{let Z=!1;return a&&_.Children.forEach(a,B=>{Wf(B,["Input","Select"])&&(vp(B.props,!0)||vp(B.props.inputProps,!0))&&(Z=!0)}),Z}),[N,F]=_.useState(!1);f&&N&&F(!1);const P=h!==void 0&&!f?h:N;let j;_.useRef(!1);const R=_.useCallback(()=>{O(!0)},[]),W=_.useCallback(()=>{O(!1)},[]),Y=_.useMemo(()=>({adornedStart:D,setAdornedStart:M,color:o,disabled:f,error:d,filled:A,focused:P,fullWidth:g,hiddenLabel:x,size:v,onBlur:()=>{F(!1)},onFocus:()=>{F(!0)},onEmpty:W,onFilled:R,registerEffect:j,required:b,variant:w}),[D,o,f,d,A,P,g,x,j,W,R,b,v,w]);return m.jsx(am.Provider,{value:Y,children:m.jsx(OI,{as:c,ownerState:k,className:We(E.root,s),ref:r,...C,children:a})})});function DI(e){return nt("MuiFormControlLabel",e)}const If=it("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),MI=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:s}=e,o={root:["root",r&&"disabled",`labelPlacement${Oe(n)}`,a&&"error",s&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return at(o,DI,t)},FI=_e("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${If.label}`]:t.label},t.root,t[`labelPlacement${Oe(r.labelPlacement)}`]]}})(dt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${If.disabled}`]:{cursor:"default"},[`& .${If.label}`]:{[`&.${If.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),NI=_e("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(dt(({theme:e})=>({[`&.${If.error}`]:{color:(e.vars||e).palette.error.main}}))),xd=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiFormControlLabel"}),{checked:a,className:s,componentsProps:o={},control:c,disabled:f,disableTypography:d,inputRef:h,label:g,labelPlacement:x="end",name:y,onChange:b,required:v,slots:w={},slotProps:C={},value:k,...E}=n,D=Ki(),M=f??c.props.disabled??D?.disabled,A=v??c.props.required,O={disabled:M,required:A};["checked","name","onChange","value","inputRef"].forEach(Z=>{typeof c.props[Z]>"u"&&typeof n[Z]<"u"&&(O[Z]=n[Z])});const N=Qo({props:n,muiFormControl:D,states:["error"]}),F={...n,disabled:M,labelPlacement:x,required:A,error:N.error},P=MI(F),j={slots:w,slotProps:{...o,...C}},[R,W]=ut("typography",{elementType:Le,externalForwardedProps:j,ownerState:F});let Y=g;return Y!=null&&Y.type!==Le&&!d&&(Y=m.jsx(R,{component:"span",...W,className:We(P.label,W?.className),children:Y})),m.jsxs(FI,{className:We(P.root,s),ownerState:F,ref:r,...E,children:[_.cloneElement(c,O),A?m.jsxs("div",{children:[Y,m.jsxs(NI,{ownerState:F,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):Y]})});function PI(e){return nt("MuiFormGroup",e)}it("MuiFormGroup",["root","row","error"]);const jI=e=>{const{classes:t,row:r,error:n}=e;return at({root:["root",r&&"row",n&&"error"]},PI,t)},LI=_e("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),II=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiFormGroup"}),{className:a,row:s=!1,...o}=n,c=Ki(),f=Qo({props:n,muiFormControl:c,states:["error"]}),d={...n,row:s,error:f.error},h=jI(d);return m.jsx(LI,{className:We(h.root,a),ownerState:d,ref:r,...o})});function BI(e){return nt("MuiFormHelperText",e)}const XC=it("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var YC;const zI=e=>{const{classes:t,contained:r,size:n,disabled:a,error:s,filled:o,focused:c,required:f}=e,d={root:["root",a&&"disabled",s&&"error",n&&`size${Oe(n)}`,r&&"contained",c&&"focused",o&&"filled",f&&"required"]};return at(d,BI,t)},UI=_e("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Oe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${XC.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${XC.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),$I=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiFormHelperText"}),{children:a,className:s,component:o="p",disabled:c,error:f,filled:d,focused:h,margin:g,required:x,variant:y,...b}=n,v=Ki(),w=Qo({props:n,muiFormControl:v,states:["variant","size","disabled","error","filled","focused","required"]}),C={...n,component:o,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete C.ownerState;const k=zI(C);return m.jsx(UI,{as:o,className:We(k.root,s),ref:r,...b,ownerState:C,children:a===" "?YC||(YC=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function HI(e){return nt("MuiFormLabel",e)}const Yf=it("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),WI=e=>{const{classes:t,color:r,focused:n,disabled:a,error:s,filled:o,required:c}=e,f={root:["root",`color${Oe(r)}`,a&&"disabled",s&&"error",o&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return at(f,HI,t)},VI=_e("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{[`&.${Yf.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Yf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yf.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),GI=_e("span",{name:"MuiFormLabel",slot:"Asterisk"})(dt(({theme:e})=>({[`&.${Yf.error}`]:{color:(e.vars||e).palette.error.main}}))),XI=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiFormLabel"}),{children:a,className:s,color:o,component:c="label",disabled:f,error:d,filled:h,focused:g,required:x,...y}=n,b=Ki(),v=Qo({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),w={...n,color:v.color||"primary",component:c,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required},C=WI(w);return m.jsxs(VI,{as:c,ownerState:w,className:We(C.root,s),ref:r,...y,children:[a,v.required&&m.jsxs(GI,{ownerState:w,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})}),Jt=MN({createStyledComponent:_e("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>lt({props:e,name:"MuiGrid"}),useTheme:ai});function Qx(e){return`scale(${e}, ${e**2})`}const YI={entering:{opacity:1,transform:Qx(1)},entered:{opacity:1,transform:"none"}},Jg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vd=_.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:s,easing:o,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:g,onExited:x,onExiting:y,style:b,timeout:v="auto",TransitionComponent:w=Pi,...C}=t,k=Mo(),E=_.useRef(),D=ai(),M=_.useRef(null),A=Lr(M,Ko(s),r),O=Z=>B=>{if(Z){const ne=M.current;B===void 0?Z(ne):Z(ne,B)}},N=O(h),F=O((Z,B)=>{sy(Z);const{duration:ne,delay:ce,easing:U}=Bo({style:b,timeout:v,easing:o},{mode:"enter"});let H;v==="auto"?(H=D.transitions.getAutoHeightDuration(Z.clientHeight),E.current=H):H=ne,Z.style.transition=[D.transitions.create("opacity",{duration:H,delay:ce}),D.transitions.create("transform",{duration:Jg?H:H*.666,delay:ce,easing:U})].join(","),f&&f(Z,B)}),P=O(d),j=O(y),R=O(Z=>{const{duration:B,delay:ne,easing:ce}=Bo({style:b,timeout:v,easing:o},{mode:"exit"});let U;v==="auto"?(U=D.transitions.getAutoHeightDuration(Z.clientHeight),E.current=U):U=B,Z.style.transition=[D.transitions.create("opacity",{duration:U,delay:ne}),D.transitions.create("transform",{duration:Jg?U:U*.666,delay:Jg?ne:ne||U*.333,easing:ce})].join(","),Z.style.opacity=0,Z.style.transform=Qx(.75),g&&g(Z)}),W=O(x),Y=Z=>{v==="auto"&&k.start(E.current||0,Z),n&&n(M.current,Z)};return m.jsx(w,{appear:a,in:c,nodeRef:M,onEnter:F,onEntered:P,onEntering:N,onExit:R,onExited:W,onExiting:j,addEndListener:Y,timeout:v==="auto"?null:v,...C,children:(Z,{ownerState:B,...ne})=>_.cloneElement(s,{style:{opacity:0,transform:Qx(.75),visibility:Z==="exited"&&!c?"hidden":void 0,...YI[Z],...b,...s.props.style},ref:A,...ne})})});vd&&(vd.muiSupportAuto=!0);const qI=e=>{const{classes:t,disableUnderline:r}=e,a=at({root:["root",!r&&"underline"],input:["input"]},gL,t);return{...t,...a}},KI=_e(om,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...im(e,t),!r.disableUnderline&&t.underline]}})(dt(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${kf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kf.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kf.disabled}, .${kf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${kf.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(wr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),QI=_e(lm,{name:"MuiInput",slot:"Input",overridesResolver:sm})({}),yy=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:s={},componentsProps:o,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:g={},type:x="text",...y}=n,b=qI(n),w={root:{ownerState:{disableUnderline:a}}},C=h??o?Jn(h??o,w):w,k=g.root??s.Root??KI,E=g.input??s.Input??QI;return m.jsx(py,{slots:{root:k,input:E},slotProps:C,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:x,...y,classes:b})});yy.muiName="Input";function ZI(e){return nt("MuiInputAdornment",e)}const qC=it("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var KC;const JI=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Oe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},eB=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:s,variant:o}=e,c={root:["root",r&&"disablePointerEvents",a&&`position${Oe(a)}`,o,n&&"hiddenLabel",s&&`size${Oe(s)}`]};return at(c,ZI,t)},tB=_e("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:JI})(dt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${qC.positionStart}&:not(.${qC.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),rB=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiInputAdornment"}),{children:a,className:s,component:o="div",disablePointerEvents:c=!1,disableTypography:f=!1,position:d,variant:h,...g}=n,x=Ki()||{};let y=h;h&&x.variant,x&&!y&&(y=x.variant);const b={...n,hiddenLabel:x.hiddenLabel,size:x.size,disablePointerEvents:c,position:d,variant:y},v=eB(b);return m.jsx(am.Provider,{value:null,children:m.jsx(tB,{as:o,ownerState:b,className:We(v.root,s),ref:r,...g,children:typeof a=="string"&&!f?m.jsx(Le,{color:"textSecondary",children:a}):m.jsxs(_.Fragment,{children:[d==="start"?KC||(KC=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]})})})});function nB(e){return nt("MuiInputLabel",e)}it("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const aB=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:s,variant:o,required:c}=e,f={root:["root",r&&"formControl",!s&&"animated",a&&"shrink",n&&n!=="medium"&&`size${Oe(n)}`,o],asterisk:[c&&"asterisk"]},d=at(f,nB,t);return{...t,...d}},iB=_e(XI,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Yf.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(dt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ki=_.forwardRef(function(t,r){const n=lt({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:s,shrink:o,variant:c,className:f,...d}=n,h=Ki();let g=o;typeof g>"u"&&h&&(g=h.filled||h.focused||h.adornedStart);const x=Qo({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),y={...n,disableAnimation:a,formControl:h,shrink:g,size:x.size,variant:x.variant,required:x.required,focused:x.focused},b=aB(y);return m.jsx(iB,{"data-shrink":g,ref:r,className:We(b.root,f),...d,ownerState:y,classes:b})});function sB(e){return nt("MuiLinearProgress",e)}it("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Zx=4,Jx=Go`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`,oB=typeof Jx!="string"?gu`
        animation: ${Jx} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,ev=Go`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`,lB=typeof ev!="string"?gu`
        animation: ${ev} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
      `:null,tv=Go`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,cB=typeof tv!="string"?gu`
        animation: ${tv} 3s infinite linear;
      `:null,uB=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${Oe(n)}`,r],dashed:["dashed",`dashedColor${Oe(n)}`],bar1:["bar","bar1",`barColor${Oe(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${Oe(n)}`,r==="buffer"&&`color${Oe(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return at(a,sB,t)},by=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),fB=_e("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],t[r.variant]]}})(dt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{backgroundColor:by(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),dB=_e("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Oe(r.color)}`]]}})(dt(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(wr()).map(([t])=>{const r=by(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),cB||{animation:`${tv} 3s infinite linear`}),hB=_e("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar1,t[`barColor${Oe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(dt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Zx}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Zx}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:oB||{animation:`${Jx} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),pB=_e("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar2,t[`barColor${Oe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(dt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:by(e,t),transition:`transform .${Zx}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:lB||{animation:`${ev} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Uk=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiLinearProgress"}),{className:a,color:s="primary",value:o,valueBuffer:c,variant:f="indeterminate",...d}=n,h={...n,color:s,variant:f},g=uB(h),x=Xo(),y={},b={bar1:{},bar2:{}};if((f==="determinate"||f==="buffer")&&o!==void 0){y["aria-valuenow"]=Math.round(o),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let v=o-100;x&&(v=-v),b.bar1.transform=`translateX(${v}%)`}if(f==="buffer"&&c!==void 0){let v=(c||0)-100;x&&(v=-v),b.bar2.transform=`translateX(${v}%)`}return m.jsxs(fB,{className:We(g.root,a),ownerState:h,role:"progressbar",...y,ref:r,...d,children:[f==="buffer"?m.jsx(dB,{className:g.dashed,ownerState:h}):null,m.jsx(hB,{className:g.bar1,ownerState:h,style:b.bar1}),f==="determinate"?null:m.jsx(pB,{className:g.bar2,ownerState:h,style:b.bar2})]})});function mB(e){return nt("MuiLink",e)}const gB=it("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),xB=({theme:e,ownerState:t})=>{const r=t.color;if("colorSpace"in e&&e.colorSpace){const s=fs(e,`palette.${r}.main`)||fs(e,`palette.${r}`)||t.color;return e.alpha(s,.4)}const n=fs(e,`palette.${r}.main`,!1)||fs(e,`palette.${r}`,!1)||t.color,a=fs(e,`palette.${r}.mainChannel`)||fs(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:fd(n,.4)},QC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},vB=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,s={root:["root",`underline${Oe(a)}`,r==="button"&&"button",n&&"focusVisible"]};return at(s,mB,t)},yB=_e(Le,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Oe(r.underline)}`],r.component==="button"&&t.button]}})(dt(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${gB.focusVisible}`]:{outline:"auto"}}}]}))),Sy=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiLink"}),a=ai(),{className:s,color:o="primary",component:c="a",onBlur:f,onFocus:d,TypographyClasses:h,underline:g="always",variant:x="inherit",sx:y,...b}=n,[v,w]=_.useState(!1),C=M=>{su(M.target)||w(!1),f&&f(M)},k=M=>{su(M.target)&&w(!0),d&&d(M)},E={...n,color:o,component:c,focusVisible:v,underline:g,variant:x},D=vB(E);return m.jsx(yB,{color:o,className:We(D.root,s),classes:h,component:c,onBlur:C,onFocus:k,ref:r,ownerState:E,variant:x,...b,sx:[...QC[o]===void 0?[{color:o}]:[],...Array.isArray(y)?y:[y]],style:{...b.style,...g==="always"&&o!=="inherit"&&!QC[o]&&{"--Link-underlineColor":xB({theme:a,ownerState:E})}}})}),Xi=_.createContext({});function bB(e){return nt("MuiList",e)}it("MuiList",["root","padding","dense","subheader"]);const SB=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return at({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},bB,t)},wB=_e("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),cm=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiList"}),{children:a,className:s,component:o="ul",dense:c=!1,disablePadding:f=!1,subheader:d,...h}=n,g=_.useMemo(()=>({dense:c}),[c]),x={...n,component:o,dense:c,disablePadding:f},y=SB(x);return m.jsx(Xi.Provider,{value:g,children:m.jsxs(wB,{as:o,className:We(y.root,s),ref:r,ownerState:x,...h,children:[d,a]})})});function TB(e){return nt("MuiListItem",e)}it("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function CB(e){return nt("MuiListItemButton",e)}const Wc=it("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),EB=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]},_B=e=>{const{alignItems:t,classes:r,dense:n,disabled:a,disableGutters:s,divider:o,selected:c}=e,d=at({root:["root",n&&"dense",!s&&"gutters",o&&"divider",a&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},CB,r);return{...r,...d}},kB=_e(Oi,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:EB})(dt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Wc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Wc.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Wc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),$k=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:s=!1,component:o="div",children:c,dense:f=!1,disableGutters:d=!1,divider:h=!1,focusVisibleClassName:g,selected:x=!1,className:y,...b}=n,v=_.useContext(Xi),w=_.useMemo(()=>({dense:f||v.dense||!1,alignItems:a,disableGutters:d}),[a,v.dense,f,d]),C=_.useRef(null);ga(()=>{s&&C.current&&C.current.focus()},[s]);const k={...n,alignItems:a,dense:w.dense,disableGutters:d,divider:h,selected:x},E=_B(k),D=Lr(C,r);return m.jsx(Xi.Provider,{value:w,children:m.jsx(kB,{ref:D,href:b.href||b.to,component:(b.href||b.to)&&o==="div"?"button":o,focusVisibleClassName:We(E.focusVisible,g),ownerState:k,className:We(E.root,y),...b,classes:E,children:c})})});function AB(e){return nt("MuiListItemSecondaryAction",e)}it("MuiListItemSecondaryAction",["root","disableGutters"]);const RB=e=>{const{disableGutters:t,classes:r}=e;return at({root:["root",t&&"disableGutters"]},AB,r)},OB=_e("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Hk=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...s}=n,o=_.useContext(Xi),c={...n,disableGutters:o.disableGutters},f=RB(c);return m.jsx(OB,{className:We(f.root,a),ownerState:c,ref:r,...s})});Hk.muiName="ListItemSecondaryAction";const DB=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},MB=e=>{const{alignItems:t,classes:r,dense:n,disableGutters:a,disablePadding:s,divider:o,hasSecondaryAction:c}=e;return at({root:["root",n&&"dense",!a&&"gutters",!s&&"padding",o&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},TB,r)},FB=_e("div",{name:"MuiListItem",slot:"Root",overridesResolver:DB})(dt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Wc.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),NB=_e("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ta=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiListItem"}),{alignItems:a="center",children:s,className:o,component:c,components:f={},componentsProps:d={},ContainerComponent:h="li",ContainerProps:{className:g,...x}={},dense:y=!1,disableGutters:b=!1,disablePadding:v=!1,divider:w=!1,secondaryAction:C,slotProps:k={},slots:E={},...D}=n,M=_.useContext(Xi),A=_.useMemo(()=>({dense:y||M.dense||!1,alignItems:a,disableGutters:b}),[a,M.dense,y,b]),O=_.useRef(null),N=_.Children.toArray(s),F=N.length&&Wf(N[N.length-1],["ListItemSecondaryAction"]),P={...n,alignItems:a,dense:A.dense,disableGutters:b,disablePadding:v,divider:w,hasSecondaryAction:F},j=MB(P),R=Lr(O,r),W=E.root||f.Root||FB,Y=k.root||d.root||{},Z={className:We(j.root,Y.className,o),...D};let B=c||"li";return F?(B=!Z.component&&!c?"div":B,h==="li"&&(B==="li"?B="div":Z.component==="li"&&(Z.component="div")),m.jsx(Xi.Provider,{value:A,children:m.jsxs(NB,{as:h,className:We(j.container,g),ref:R,ownerState:P,...x,children:[m.jsx(W,{...Y,...!gd(W)&&{as:B,ownerState:{...P,...Y.ownerState}},...Z,children:N}),N.pop()]})})):m.jsx(Xi.Provider,{value:A,children:m.jsxs(W,{...Y,as:B,ref:R,...!gd(W)&&{ownerState:{...P,...Y.ownerState}},...Z,children:[N,C&&m.jsx(Hk,{children:C})]})})});function PB(e){return nt("MuiListItemIcon",e)}const ZC=it("MuiListItemIcon",["root","alignItemsFlexStart"]),jB=e=>{const{alignItems:t,classes:r}=e;return at({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},PB,r)},LB=_e("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(dt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ca=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiListItemIcon"}),{className:a,...s}=n,o=_.useContext(Xi),c={...n,alignItems:o.alignItems},f=jB(c);return m.jsx(LB,{className:We(f.root,a),ownerState:c,ref:r,...s})});function IB(e){return nt("MuiListItemText",e)}const Xc=it("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),BB=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:s}=e;return at({root:["root",r&&"inset",s&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},IB,t)},zB=_e("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Xc.primary}`]:t.primary},{[`& .${Xc.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${gp.root}:where(& .${Xc.primary})`]:{display:"block"},[`.${gp.root}:where(& .${Xc.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Ca=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiListItemText"}),{children:a,className:s,disableTypography:o=!1,inset:c=!1,primary:f,primaryTypographyProps:d,secondary:h,secondaryTypographyProps:g,slots:x={},slotProps:y={},...b}=n,{dense:v}=_.useContext(Xi);let w=f??a,C=h;const k={...n,disableTypography:o,inset:c,primary:!!w,secondary:!!C,dense:v},E=BB(k),D={slots:x,slotProps:{primary:d,secondary:g,...y}},[M,A]=ut("root",{className:We(E.root,s),elementType:zB,externalForwardedProps:{...D,...b},ownerState:k,ref:r}),[O,N]=ut("primary",{className:E.primary,elementType:Le,externalForwardedProps:D,ownerState:k}),[F,P]=ut("secondary",{className:E.secondary,elementType:Le,externalForwardedProps:D,ownerState:k});return w!=null&&w.type!==Le&&!o&&(w=m.jsx(O,{variant:v?"body2":"body1",component:N?.variant?void 0:"span",...N,children:w})),C!=null&&C.type!==Le&&!o&&(C=m.jsx(F,{variant:"body2",color:"textSecondary",...P,children:C})),m.jsxs(M,{...A,children:[w,C]})});function ex(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JC(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Wk(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function Af(e,t,r,n,a,s){let o=!1,c=a(e,t,t?r:!1);for(;c;){if(c===e.firstChild){if(o)return!1;o=!0}const f=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Wk(c,s)||f)c=a(e,c,r);else return c.focus(),!0}return!1}const UB=_.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:s=!1,children:o,className:c,disabledItemsFocusable:f=!1,disableListWrap:d=!1,onKeyDown:h,variant:g="selectedMenu",...x}=t,y=_.useRef(null),b=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ga(()=>{a&&y.current.focus()},[a]),_.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(E,{direction:D})=>{const M=!y.current.style.width;if(E.clientHeight<y.current.clientHeight&&M){const A=`${jk(ti(E))}px`;y.current.style[D==="rtl"?"paddingLeft":"paddingRight"]=A,y.current.style.width=`calc(100% + ${A})`}return y.current}}),[]);const v=E=>{const D=y.current,M=E.key;if(E.ctrlKey||E.metaKey||E.altKey){h&&h(E);return}const O=zn(D).activeElement;if(M==="ArrowDown")E.preventDefault(),Af(D,O,d,f,ex);else if(M==="ArrowUp")E.preventDefault(),Af(D,O,d,f,JC);else if(M==="Home")E.preventDefault(),Af(D,null,d,f,ex);else if(M==="End")E.preventDefault(),Af(D,null,d,f,JC);else if(M.length===1){const N=b.current,F=M.toLowerCase(),P=performance.now();N.keys.length>0&&(P-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&F!==N.keys[0]&&(N.repeating=!1)),N.lastTime=P,N.keys.push(F);const j=O&&!N.repeating&&Wk(O,N);N.previousKeyMatched&&(j||Af(D,O,!1,f,ex,N))?E.preventDefault():N.previousKeyMatched=!1}h&&h(E)},w=Lr(y,r);let C=-1;_.Children.forEach(o,(E,D)=>{if(!_.isValidElement(E)){C===D&&(C+=1,C>=o.length&&(C=-1));return}E.props.disabled||(g==="selectedMenu"&&E.props.selected||C===-1)&&(C=D),C===D&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(C+=1,C>=o.length&&(C=-1))});const k=_.Children.map(o,(E,D)=>{if(D===C){const M={};return s&&(M.autoFocus=!0),E.props.tabIndex===void 0&&g==="selectedMenu"&&(M.tabIndex=0),_.cloneElement(E,M)}return E});return m.jsx(cm,{role:"menu",ref:w,className:c,onKeyDown:v,tabIndex:a?0:-1,...x,children:k})});function $B(e){return nt("MuiPopover",e)}it("MuiPopover",["root","paper"]);function eE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function tE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function rE(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Oh(e){return typeof e=="function"?e():e}const HB=e=>{const{classes:t}=e;return at({root:["root"],paper:["paper"]},$B,t)},WB=_e(xy,{name:"MuiPopover",slot:"Root"})({}),Vk=_e(zr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),VB=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:g,elevation:x=8,marginThreshold:y=16,open:b,PaperProps:v={},slots:w={},slotProps:C={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:D="auto",TransitionProps:M={},disableScrollLock:A=!1,...O}=n,N=_.useRef(),F={...n,anchorOrigin:o,anchorReference:f,elevation:x,marginThreshold:y,transformOrigin:k,TransitionComponent:E,transitionDuration:D,TransitionProps:M},P=HB(F),j=_.useCallback(()=>{if(f==="anchorPosition")return c;const he=Oh(s),te=(he&&he.nodeType===1?he:zn(N.current).body).getBoundingClientRect();return{top:te.top+eE(te,o.vertical),left:te.left+tE(te,o.horizontal)}},[s,o.horizontal,o.vertical,c,f]),R=_.useCallback(he=>({vertical:eE(he,k.vertical),horizontal:tE(he,k.horizontal)}),[k.horizontal,k.vertical]),W=_.useCallback(he=>{const Ve={width:he.offsetWidth,height:he.offsetHeight},te=R(Ve);if(f==="none")return{top:null,left:null,transformOrigin:rE(te)};const rt=j();let Ue=rt.top-te.vertical,ve=rt.left-te.horizontal;const Ge=Ue+Ve.height,Ae=ve+Ve.width,st=ti(Oh(s)),yt=st.innerHeight-y,Ct=st.innerWidth-y;if(y!==null&&Ue<y){const mt=Ue-y;Ue-=mt,te.vertical+=mt}else if(y!==null&&Ge>yt){const mt=Ge-yt;Ue-=mt,te.vertical+=mt}if(y!==null&&ve<y){const mt=ve-y;ve-=mt,te.horizontal+=mt}else if(Ae>Ct){const mt=Ae-Ct;ve-=mt,te.horizontal+=mt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(ve)}px`,transformOrigin:rE(te)}},[s,f,j,R,y]),[Y,Z]=_.useState(b),B=_.useCallback(()=>{const he=N.current;if(!he)return;const Ve=W(he);Ve.top!==null&&he.style.setProperty("top",Ve.top),Ve.left!==null&&(he.style.left=Ve.left),he.style.transformOrigin=Ve.transformOrigin,Z(!0)},[W]);_.useEffect(()=>(A&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[s,A,B]);const ne=()=>{B()},ce=()=>{Z(!1)};_.useEffect(()=>{b&&B()}),_.useImperativeHandle(a,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),_.useEffect(()=>{if(!b)return;const he=Yd(()=>{B()}),Ve=ti(Oh(s));return Ve.addEventListener("resize",he),()=>{he.clear(),Ve.removeEventListener("resize",he)}},[s,b,B]);let U=D;const H={slots:{transition:E,...w},slotProps:{transition:M,paper:v,...C}},[ie,z]=ut("transition",{elementType:vd,externalForwardedProps:H,ownerState:F,getSlotProps:he=>({...he,onEntering:(Ve,te)=>{he.onEntering?.(Ve,te),ne()},onExited:Ve=>{he.onExited?.(Ve),ce()}}),additionalProps:{appear:!0,in:b}});D==="auto"&&!ie.muiSupportAuto&&(U=void 0);const K=g||(s?zn(Oh(s)).body:void 0),[Q,{slots:ee,slotProps:ae,...xe}]=ut("root",{ref:r,elementType:WB,externalForwardedProps:{...H,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:ny(typeof C.backdrop=="function"?C.backdrop(F):C.backdrop,{invisible:!0})},container:K,open:b},ownerState:F,className:We(P.root,h)}),[ye,Te]=ut("paper",{ref:N,className:P.paper,elementType:Vk,externalForwardedProps:H,shouldForwardComponentProp:!0,additionalProps:{elevation:x,style:Y?void 0:{opacity:0}},ownerState:F});return m.jsx(Q,{...xe,...!gd(Q)&&{slots:ee,slotProps:ae,disableScrollLock:A},children:m.jsx(ie,{...z,timeout:U,children:m.jsx(ye,{...Te,children:d})})})});function GB(e){return nt("MuiMenu",e)}it("MuiMenu",["root","paper","list"]);const XB={vertical:"top",horizontal:"right"},YB={vertical:"top",horizontal:"left"},qB=e=>{const{classes:t}=e;return at({root:["root"],paper:["paper"],list:["list"]},GB,t)},KB=_e(VB,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),QB=_e(Vk,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZB=_e(UB,{name:"MuiMenu",slot:"List"})({outline:0}),Gk=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:o,disableAutoFocusItem:c=!1,MenuListProps:f={},onClose:d,open:h,PaperProps:g={},PopoverClasses:x,transitionDuration:y="auto",TransitionProps:{onEntering:b,...v}={},variant:w="selectedMenu",slots:C={},slotProps:k={},...E}=n,D=Xo(),M={...n,autoFocus:a,disableAutoFocusItem:c,MenuListProps:f,onEntering:b,PaperProps:g,transitionDuration:y,TransitionProps:v,variant:w},A=qB(M),O=a&&!c&&h,N=_.useRef(null),F=(U,H)=>{N.current&&N.current.adjustStyleForScrollbar(U,{direction:D?"rtl":"ltr"}),b&&b(U,H)},P=U=>{U.key==="Tab"&&(U.preventDefault(),d&&d(U,"tabKeyDown"))};let j=-1;_.Children.map(s,(U,H)=>{_.isValidElement(U)&&(U.props.disabled||(w==="selectedMenu"&&U.props.selected||j===-1)&&(j=H))});const R={slots:C,slotProps:{list:f,transition:v,paper:g,...k}},W=Ll({elementType:C.root,externalSlotProps:k.root,ownerState:M,className:[A.root,o]}),[Y,Z]=ut("paper",{className:A.paper,elementType:QB,externalForwardedProps:R,shouldForwardComponentProp:!0,ownerState:M}),[B,ne]=ut("list",{className:We(A.list,f.className),elementType:ZB,shouldForwardComponentProp:!0,externalForwardedProps:R,getSlotProps:U=>({...U,onKeyDown:H=>{P(H),U.onKeyDown?.(H)}}),ownerState:M}),ce=typeof R.slotProps.transition=="function"?R.slotProps.transition(M):R.slotProps.transition;return m.jsx(KB,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?XB:YB,slots:{root:C.root,paper:Y,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:W,paper:Z,backdrop:typeof k.backdrop=="function"?k.backdrop(M):k.backdrop,transition:{...ce,onEntering:(...U)=>{F(...U),ce?.onEntering?.(...U)}}},open:h,ref:r,transitionDuration:y,ownerState:M,...E,classes:x,children:m.jsx(B,{actions:N,autoFocus:a&&(j===-1||c),autoFocusItem:O,variant:w,...ne,children:s})})});function JB(e){return nt("MuiMenuItem",e)}const Rf=it("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ez=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},tz=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:s,classes:o}=e,f=at({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",s&&"selected"]},JB,o);return{...o,...f}},rz=_e(Oi,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ez})(dt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rf.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Rf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Rf.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VC.inset}`]:{marginLeft:52},[`& .${Xc.root}`]:{marginTop:0,marginBottom:0},[`& .${Xc.inset}`]:{paddingLeft:36},[`& .${ZC.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${ZC.root} svg`]:{fontSize:"1.25rem"}}}]}))),Qr=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:s="li",dense:o=!1,divider:c=!1,disableGutters:f=!1,focusVisibleClassName:d,role:h="menuitem",tabIndex:g,className:x,...y}=n,b=_.useContext(Xi),v=_.useMemo(()=>({dense:o||b.dense||!1,disableGutters:f}),[b.dense,o,f]),w=_.useRef(null);ga(()=>{a&&w.current&&w.current.focus()},[a]);const C={...n,dense:v.dense,divider:c,disableGutters:f},k=tz(n),E=Lr(w,r);let D;return n.disabled||(D=g!==void 0?g:-1),m.jsx(Xi.Provider,{value:v,children:m.jsx(rz,{ref:E,role:h,tabIndex:D,component:s,focusVisibleClassName:We(k.focusVisible,d),className:We(k.root,x),...y,ownerState:C,classes:k})})});function nz(e){return nt("MuiNativeSelect",e)}const wy=it("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),az=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:s,error:o}=e,c={select:["select",r,n&&"disabled",a&&"multiple",o&&"error"],icon:["icon",`icon${Oe(r)}`,s&&"iconOpen",n&&"disabled"]};return at(c,nz,t)},Xk=_e("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${wy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),iz=_e(Xk,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${wy.multiple}`]:t.multiple}]}})({}),Yk=_e("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${wy.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),sz=_e(Yk,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Oe(r.variant)}`],r.open&&t.iconOpen]}})({}),oz=_.forwardRef(function(t,r){const{className:n,disabled:a,error:s,IconComponent:o,inputRef:c,variant:f="standard",...d}=t,h={...t,disabled:a,variant:f,error:s},g=az(h);return m.jsxs(_.Fragment,{children:[m.jsx(iz,{ownerState:h,className:We(g.select,n),disabled:a,ref:c||r,...d}),t.multiple?null:m.jsx(sz,{as:o,ownerState:h,className:g.icon})]})});var nE;const lz=_e("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:wn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cz=_e("legend",{name:"MuiNotchedOutlined",shouldForwardProp:wn})(dt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function uz(e){const{children:t,classes:r,className:n,label:a,notched:s,...o}=e,c=a!=null&&a!=="",f={...e,notched:s,withLabel:c};return m.jsx(lz,{"aria-hidden":!0,className:n,ownerState:f,...o,children:m.jsx(cz,{ownerState:f,children:c?m.jsx("span",{children:a}):nE||(nE=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const fz=e=>{const{classes:t}=e,n=at({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xL,t);return{...t,...n}},dz=_e(om,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:im})(dt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${as.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${as.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${as.focused} .${as.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(wr()).map(([r])=>({props:{color:r},style:{[`&.${as.focused} .${as.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${as.error} .${as.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${as.disabled} .${as.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),hz=_e(uz,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(dt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),pz=_e(lm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sm})(dt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Ty=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:s=!1,inputComponent:o="input",label:c,multiline:f=!1,notched:d,slots:h={},slotProps:g={},type:x="text",...y}=n,b=fz(n),v=Ki(),w=Qo({props:n,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...n,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:v,fullWidth:s,hiddenLabel:w.hiddenLabel,multiline:f,size:w.size,type:x},k=h.root??a.Root??dz,E=h.input??a.Input??pz,[D,M]=ut("notchedOutline",{elementType:hz,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:h,slotProps:g},additionalProps:{label:c!=null&&c!==""&&w.required?m.jsxs(_.Fragment,{children:[c," ","*"]}):c}});return m.jsx(py,{slots:{root:k,input:E},slotProps:g,renderSuffix:A=>m.jsx(D,{...M,notched:typeof d<"u"?d:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:s,inputComponent:o,multiline:f,ref:r,type:x,...y,classes:{...b,notchedOutline:null}})});Ty.muiName="Input";function mz(e){return nt("MuiPagination",e)}it("MuiPagination",["root","ul","outlined","text"]);function gz(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:s=!1,hideNextButton:o=!1,hidePrevButton:c=!1,onChange:f,page:d,showFirstButton:h=!1,showLastButton:g=!1,siblingCount:x=1,...y}=e,[b,v]=Pl({controlled:d,default:a,name:r,state:"page"}),w=(F,P)=>{d||v(P),f&&f(F,P)},C=(F,P)=>{const j=P-F+1;return Array.from({length:j},(R,W)=>F+W)},k=C(1,Math.min(t,n)),E=C(Math.max(n-t+1,t+1),n),D=Math.max(Math.min(b-x,n-t-x*2-1),t+2),M=Math.min(Math.max(b+x,t+x*2+2),n-t-1),A=[...h?["first"]:[],...c?[]:["previous"],...k,...D>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...C(D,M),...M<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...E,...o?[]:["next"],...g?["last"]:[]],O=F=>{switch(F){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return n;default:return null}};return{items:A.map(F=>typeof F=="number"?{onClick:P=>{w(P,F)},type:"page",page:F,selected:F===b,disabled:s,"aria-current":F===b?"page":void 0}:{onClick:P=>{w(P,O(F))},type:F,page:O(F),selected:!1,disabled:s||!F.includes("ellipsis")&&(F==="next"||F==="last"?b>=n:b<=1)}),...y}}function xz(e){return nt("MuiPaginationItem",e)}const la=it("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),vz=tt(m.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),yz=tt(m.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),bz=tt(m.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Sz=tt(m.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),qk=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Oe(r.size)}`],r.variant==="text"&&t[`text${Oe(r.color)}`],r.variant==="outlined"&&t[`outlined${Oe(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},wz=e=>{const{classes:t,color:r,disabled:n,selected:a,size:s,shape:o,type:c,variant:f}=e,d={root:["root",`size${Oe(s)}`,f,o,r!=="standard"&&`color${Oe(r)}`,r!=="standard"&&`${f}${Oe(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[c]],icon:["icon"]};return at(d,xz,t)},Tz=_e("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:qk})(dt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${la.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),Cz=_e(Oi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:qk})(dt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${la.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${la.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${la.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${la.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${la.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${la.selected}`]:{[`&.${la.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${la.selected}`]:{[`&.${la.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(wr(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${la.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${la.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${la.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(wr(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${la.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${la.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),Ez=_e("div",{name:"MuiPaginationItem",slot:"Icon"})(dt(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),_z=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiPaginationItem"}),{className:a,color:s="standard",component:o,components:c={},disabled:f=!1,page:d,selected:h=!1,shape:g="circular",size:x="medium",slots:y={},slotProps:b={},type:v="page",variant:w="text",...C}=n,k={...n,color:s,disabled:f,selected:h,shape:g,size:x,type:v,variant:w},E=Xo(),D=wz(k),M={slots:{previous:y.previous??c.previous,next:y.next??c.next,first:y.first??c.first,last:y.last??c.last},slotProps:b},[A,O]=ut("previous",{elementType:bz,externalForwardedProps:M,ownerState:k}),[N,F]=ut("next",{elementType:Sz,externalForwardedProps:M,ownerState:k}),[P,j]=ut("first",{elementType:vz,externalForwardedProps:M,ownerState:k}),[R,W]=ut("last",{elementType:yz,externalForwardedProps:M,ownerState:k}),Y=E?{previous:"next",next:"previous",first:"last",last:"first"}[v]:v,Z={previous:A,next:N,first:P,last:R}[Y],B={previous:O,next:F,first:j,last:W}[Y];return v==="start-ellipsis"||v==="end-ellipsis"?m.jsx(Tz,{ref:r,ownerState:k,className:We(D.root,a),children:"…"}):m.jsxs(Cz,{ref:r,ownerState:k,component:o,disabled:f,className:We(D.root,a),...C,children:[v==="page"&&d,Z?m.jsx(Ez,{...B,className:D.icon,as:Z}):null]})}),kz=e=>{const{classes:t,variant:r}=e;return at({root:["root",r],ul:["ul"]},mz,t)},Az=_e("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Rz=_e("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Oz(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Kk=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:s,color:o="standard",count:c=1,defaultPage:f=1,disabled:d=!1,getItemAriaLabel:h=Oz,hideNextButton:g=!1,hidePrevButton:x=!1,onChange:y,page:b,renderItem:v=P=>m.jsx(_z,{...P}),shape:w="circular",showFirstButton:C=!1,showLastButton:k=!1,siblingCount:E=1,size:D="medium",variant:M="text",...A}=n,{items:O}=gz({...n,componentName:"Pagination"}),N={...n,boundaryCount:a,color:o,count:c,defaultPage:f,disabled:d,getItemAriaLabel:h,hideNextButton:g,hidePrevButton:x,renderItem:v,shape:w,showFirstButton:C,showLastButton:k,siblingCount:E,size:D,variant:M},F=kz(N);return m.jsx(Az,{"aria-label":"pagination navigation",className:We(F.root,s),ownerState:N,ref:r,...A,children:m.jsx(Rz,{className:F.ul,ownerState:N,children:O.map((P,j)=>m.jsx("li",{children:v({...P,color:o,"aria-label":h(P.type,P.page,P.selected),shape:w,size:D,variant:M})},j))})})}),Dz=tt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Mz=tt(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),Fz=_e("span",{name:"MuiRadioButtonIcon",shouldForwardProp:wn})({position:"relative",display:"flex"}),Nz=_e(Dz,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Pz=_e(Mz,{name:"MuiRadioButtonIcon"})(dt(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Qk(e){const{checked:t=!1,classes:r={},fontSize:n}=e,a={...e,checked:t};return m.jsxs(Fz,{className:r.root,ownerState:a,children:[m.jsx(Nz,{fontSize:n,className:r.background,ownerState:a}),m.jsx(Pz,{fontSize:n,className:r.dot,ownerState:a})]})}const Zk=_.createContext(void 0);function jz(){return _.useContext(Zk)}function Lz(e){return nt("MuiRadio",e)}const aE=it("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Iz=e=>{const{classes:t,color:r,size:n}=e,a={root:["root",`color${Oe(r)}`,n!=="medium"&&`size${Oe(n)}`]};return{...t,...at(a,Lz,t)}},Bz=_e(Fk,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${Oe(r.size)}`],t[`color${Oe(r.color)}`]]}})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${aE.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(wr()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${aE.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function zz(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Uz=m.jsx(Qk,{checked:!0}),$z=m.jsx(Qk,{}),iE=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=Uz,color:o="primary",icon:c=$z,name:f,onChange:d,size:h="medium",className:g,disabled:x,disableRipple:y=!1,slots:b={},slotProps:v={},inputProps:w,...C}=n,k=Ki();let E=x;k&&typeof E>"u"&&(E=k.disabled),E??=!1;const D={...n,disabled:E,disableRipple:y,color:o,size:h},M=Iz(D),A=jz();let O=a;const N=Px(d,A&&A.onChange);let F=f;A&&(typeof O>"u"&&(O=zz(A.value,n.value)),typeof F>"u"&&(F=A.name));const P=v.input??w,[j,R]=ut("root",{ref:r,elementType:Bz,className:We(M.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:v,...C},getSlotProps:W=>({...W,onChange:(Y,...Z)=>{W.onChange?.(Y,...Z),N(Y,...Z)}}),ownerState:D,additionalProps:{type:"radio",icon:_.cloneElement(c,{fontSize:c.props.fontSize??h}),checkedIcon:_.cloneElement(s,{fontSize:s.props.fontSize??h}),disabled:E,name:F,checked:O,slots:b,slotProps:{input:typeof P=="function"?P(D):P}}});return m.jsx(j,{...R,classes:M})});function Hz(e){return nt("MuiRadioGroup",e)}it("MuiRadioGroup",["root","row","error"]);const Wz=e=>{const{classes:t,row:r,error:n}=e;return at({root:["root",r&&"row",n&&"error"]},Hz,t)},Vz=_.forwardRef(function(t,r){const{actions:n,children:a,className:s,defaultValue:o,name:c,onChange:f,value:d,...h}=t,g=_.useRef(null),x=Wz(t),[y,b]=Pl({controlled:d,default:o,name:"RadioGroup"});_.useImperativeHandle(n,()=>({focus:()=>{let k=g.current.querySelector("input:not(:disabled):checked");k||(k=g.current.querySelector("input:not(:disabled)")),k&&k.focus()}}),[]);const v=Lr(r,g),w=Yo(c),C=_.useMemo(()=>({name:w,onChange(k){b(k.target.value),f&&f(k,k.target.value)},value:y}),[w,f,b,y]);return m.jsx(Zk.Provider,{value:C,children:m.jsx(II,{role:"radiogroup",ref:v,className:We(x.root,s),...h,children:a})})});function Jk(e){return nt("MuiSelect",e)}const Of=it("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var sE;const Gz=_e(Xk,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Of.select}`]:t.select},{[`&.${Of.select}`]:t[r.variant]},{[`&.${Of.error}`]:t.error},{[`&.${Of.multiple}`]:t.multiple}]}})({[`&.${Of.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Xz=_e(Yk,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Oe(r.variant)}`],r.open&&t.iconOpen]}})({}),Yz=_e("input",{shouldForwardProp:e=>dk(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function oE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function qz(e){return e==null||typeof e=="string"&&!e.trim()}const Kz=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:s,error:o}=e,c={select:["select",r,n&&"disabled",a&&"multiple",o&&"error"],icon:["icon",`icon${Oe(r)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return at(c,Jk,t)},Qz=_.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":a,autoFocus:s,autoWidth:o,children:c,className:f,defaultOpen:d,defaultValue:h,disabled:g,displayEmpty:x,error:y=!1,IconComponent:b,inputRef:v,labelId:w,MenuProps:C={},multiple:k,name:E,onBlur:D,onChange:M,onClose:A,onFocus:O,onOpen:N,open:F,readOnly:P,renderValue:j,required:R,SelectDisplayProps:W={},tabIndex:Y,type:Z,value:B,variant:ne="standard",...ce}=t,[U,H]=Pl({controlled:B,default:h,name:"Select"}),[ie,z]=Pl({controlled:F,default:d,name:"Select"}),K=_.useRef(null),Q=_.useRef(null),[ee,ae]=_.useState(null),{current:xe}=_.useRef(F!=null),[ye,Te]=_.useState(),he=Lr(r,v),Ve=_.useCallback(ht=>{Q.current=ht,ht&&ae(ht)},[]),te=ee?.parentNode;_.useImperativeHandle(he,()=>({focus:()=>{Q.current.focus()},node:K.current,value:U}),[U]),_.useEffect(()=>{d&&ie&&ee&&!xe&&(Te(o?null:te.clientWidth),Q.current.focus())},[ee,o]),_.useEffect(()=>{s&&Q.current.focus()},[s]),_.useEffect(()=>{if(!w)return;const ht=zn(Q.current).getElementById(w);if(ht){const $t=()=>{getSelection().isCollapsed&&Q.current.focus()};return ht.addEventListener("click",$t),()=>{ht.removeEventListener("click",$t)}}},[w]);const rt=(ht,$t)=>{ht?N&&N($t):A&&A($t),xe||(Te(o?null:te.clientWidth),z(ht))},Ue=ht=>{ht.button===0&&(ht.preventDefault(),Q.current.focus(),rt(!0,ht))},ve=ht=>{rt(!1,ht)},Ge=_.Children.toArray(c),Ae=ht=>{const $t=Ge.find(tr=>tr.props.value===ht.target.value);$t!==void 0&&(H($t.props.value),M&&M(ht,$t))},st=ht=>$t=>{let tr;if($t.currentTarget.hasAttribute("tabindex")){if(k){tr=Array.isArray(U)?U.slice():[];const Wr=U.indexOf(ht.props.value);Wr===-1?tr.push(ht.props.value):tr.splice(Wr,1)}else tr=ht.props.value;if(ht.props.onClick&&ht.props.onClick($t),U!==tr&&(H(tr),M)){const Wr=$t.nativeEvent||$t,gn=new Wr.constructor(Wr.type,Wr);Object.defineProperty(gn,"target",{writable:!0,value:{value:tr,name:E}}),M(gn,ht)}k||rt(!1,$t)}},yt=ht=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(ht.key)&&(ht.preventDefault(),rt(!0,ht))},Ct=ee!==null&&ie,mt=ht=>{!Ct&&D&&(Object.defineProperty(ht,"target",{writable:!0,value:{value:U,name:E}}),D(ht))};delete ce["aria-invalid"];let qe,Ut;const Dt=[];let vt=!1;(vp({value:U})||x)&&(j?qe=j(U):vt=!0);const Et=Ge.map(ht=>{if(!_.isValidElement(ht))return null;let $t;if(k){if(!Array.isArray(U))throw new Error(Hs(2));$t=U.some(tr=>oE(tr,ht.props.value)),$t&&vt&&Dt.push(ht.props.children)}else $t=oE(U,ht.props.value),$t&&vt&&(Ut=ht.props.children);return _.cloneElement(ht,{"aria-selected":$t?"true":"false",onClick:st(ht),onKeyUp:tr=>{tr.key===" "&&tr.preventDefault(),ht.props.onKeyUp&&ht.props.onKeyUp(tr)},role:"option",selected:$t,value:void 0,"data-value":ht.props.value})});vt&&(k?Dt.length===0?qe=null:qe=Dt.reduce((ht,$t,tr)=>(ht.push($t),tr<Dt.length-1&&ht.push(", "),ht),[]):qe=Ut);let pt=ye;!o&&xe&&ee&&(pt=te.clientWidth);let _t;typeof Y<"u"?_t=Y:_t=g?null:0;const At=W.id||(E?`mui-component-select-${E}`:void 0),xt={...t,variant:ne,value:U,open:Ct,error:y},ot=Kz(xt),nr={...C.PaperProps,...typeof C.slotProps?.paper=="function"?C.slotProps.paper(xt):C.slotProps?.paper},It={...C.MenuListProps,...typeof C.slotProps?.list=="function"?C.slotProps.list(xt):C.slotProps?.list},Rr=Yo();return m.jsxs(_.Fragment,{children:[m.jsx(Gz,{as:"div",ref:Ve,tabIndex:_t,role:"combobox","aria-controls":Ct?Rr:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":Ct?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[w,At].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":R?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:yt,onMouseDown:g||P?null:Ue,onBlur:mt,onFocus:O,...W,ownerState:xt,className:We(W.className,ot.select,f),id:At,children:qz(qe)?sE||(sE=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):qe}),m.jsx(Yz,{"aria-invalid":y,value:Array.isArray(U)?U.join(","):U,name:E,ref:K,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:g,className:ot.nativeInput,autoFocus:s,required:R,...ce,ownerState:xt}),m.jsx(Xz,{as:b,className:ot.icon,ownerState:xt}),m.jsx(Gk,{id:`menu-${E||""}`,anchorEl:te,open:Ct,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:Rr,...It},paper:{...nr,style:{minWidth:pt,...nr!=null?nr.style:null}}},children:Et})]})}),Zz=e=>{const{classes:t}=e,n=at({root:["root"]},Jk,t);return{...t,...n}},Cy={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>wn(e)&&e!=="variant"},Jz=_e(yy,Cy)(""),eU=_e(Ty,Cy)(""),tU=_e(vy,Cy)(""),Oa=_.forwardRef(function(t,r){const n=lt({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:s,classes:o={},className:c,defaultOpen:f=!1,displayEmpty:d=!1,IconComponent:h=yL,id:g,input:x,inputProps:y,label:b,labelId:v,MenuProps:w,multiple:C=!1,native:k=!1,onClose:E,onOpen:D,open:M,renderValue:A,SelectDisplayProps:O,variant:N="outlined",...F}=n,P=k?oz:Qz,j=Ki(),R=Qo({props:n,muiFormControl:j,states:["variant","error"]}),W=R.variant||N,Y={...n,variant:W,classes:o},Z=Zz(Y),{root:B,...ne}=Z,ce=x||{standard:m.jsx(Jz,{ownerState:Y}),outlined:m.jsx(eU,{label:b,ownerState:Y}),filled:m.jsx(tU,{ownerState:Y})}[W],U=Lr(r,Ko(ce));return m.jsx(_.Fragment,{children:_.cloneElement(ce,{inputComponent:P,inputProps:{children:s,error:R.error,IconComponent:h,variant:W,type:void 0,multiple:C,...k?{id:g}:{autoWidth:a,defaultOpen:f,displayEmpty:d,labelId:v,MenuProps:w,onClose:E,onOpen:D,open:M,renderValue:A,SelectDisplayProps:{id:g,...O}},...y,classes:y?Jn(ne,y.classes):ne,...x?x.props.inputProps:{}},...(C&&k||d)&&W==="outlined"?{notched:!0}:{},ref:U,className:We(ce.props.className,c,Z.root),...!x&&{variant:W},...F})})});Oa.muiName="Select";function rU(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:s}=e,o=Mo();_.useEffect(()=>{if(!a)return;function C(k){k.defaultPrevented||k.key==="Escape"&&n?.(k,"escapeKeyDown")}return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[a,n]);const c=ha((C,k)=>{n?.(C,k)}),f=ha(C=>{!n||C==null||o.start(C,()=>{c(null,"timeout")})});_.useEffect(()=>(a&&f(t),o.clear),[a,t,f,o]);const d=C=>{n?.(C,"clickaway")},h=o.clear,g=_.useCallback(()=>{t!=null&&f(s??t*.5)},[t,s,f]),x=C=>k=>{const E=C.onBlur;E?.(k),g()},y=C=>k=>{const E=C.onFocus;E?.(k),h()},b=C=>k=>{const E=C.onMouseEnter;E?.(k),h()},v=C=>k=>{const E=C.onMouseLeave;E?.(k),g()};return _.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",g),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[r,a,g,h]),{getRootProps:(C={})=>{const k={...pp(e),...pp(C)};return{role:"presentation",...C,...k,onBlur:x(k),onFocus:y(k),onMouseEnter:b(k),onMouseLeave:v(k)}},onClickAway:d}}function nU(e){return nt("MuiSnackbarContent",e)}it("MuiSnackbarContent",["root","message","action"]);const aU=e=>{const{classes:t}=e;return at({root:["root"],action:["action"],message:["message"]},nU,t)},iU=_e(zr,{name:"MuiSnackbarContent",slot:"Root"})(dt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(dd(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:dd(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),sU=_e("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),oU=_e("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lU=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiSnackbarContent"}),{action:a,className:s,message:o,role:c="alert",...f}=n,d=n,h=aU(d);return m.jsxs(iU,{role:c,elevation:6,className:We(h.root,s),ownerState:d,ref:r,...f,children:[m.jsx(sU,{className:h.message,ownerState:d,children:o}),a?m.jsx(oU,{className:h.action,ownerState:d,children:a}):null]})});function cU(e){return nt("MuiSnackbar",e)}it("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const uU=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Oe(r.vertical)}${Oe(r.horizontal)}`]};return at(n,cU,t)},fU=_e("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Oe(r.anchorOrigin.vertical)}${Oe(r.anchorOrigin.horizontal)}`]]}})(dt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),dU=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiSnackbar"}),a=ai(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:o,anchorOrigin:{vertical:c,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:h,className:g,ClickAwayListenerProps:x,ContentProps:y,disableWindowBlurListener:b=!1,message:v,onBlur:w,onClose:C,onFocus:k,onMouseEnter:E,onMouseLeave:D,open:M,resumeHideDuration:A,slots:O={},slotProps:N={},TransitionComponent:F,transitionDuration:P=s,TransitionProps:{onEnter:j,onExited:R,...W}={},...Y}=n,Z={...n,anchorOrigin:{vertical:c,horizontal:f},autoHideDuration:d,disableWindowBlurListener:b,TransitionComponent:F,transitionDuration:P},B=uU(Z),{getRootProps:ne,onClickAway:ce}=rU({...Z}),[U,H]=_.useState(!0),ie=rt=>{H(!0),R&&R(rt)},z=(rt,Ue)=>{H(!1),j&&j(rt,Ue)},K={slots:{transition:F,...O},slotProps:{content:y,clickAwayListener:x,transition:W,...N}},[Q,ee]=ut("root",{ref:r,className:[B.root,g],elementType:fU,getSlotProps:ne,externalForwardedProps:{...K,...Y},ownerState:Z}),[ae,{ownerState:xe,...ye}]=ut("clickAwayListener",{elementType:w7,externalForwardedProps:K,getSlotProps:rt=>({onClickAway:(...Ue)=>{const ve=Ue[0];rt.onClickAway?.(...Ue),!ve?.defaultMuiPrevented&&ce(...Ue)}}),ownerState:Z}),[Te,he]=ut("content",{elementType:lU,shouldForwardComponentProp:!0,externalForwardedProps:K,additionalProps:{message:v,action:o},ownerState:Z}),[Ve,te]=ut("transition",{elementType:vd,externalForwardedProps:K,getSlotProps:rt=>({onEnter:(...Ue)=>{rt.onEnter?.(...Ue),z(...Ue)},onExited:(...Ue)=>{rt.onExited?.(...Ue),ie(...Ue)}}),additionalProps:{appear:!0,in:M,timeout:P,direction:c==="top"?"down":"up"},ownerState:Z});return!M&&U?null:m.jsx(ae,{...ye,...O.clickAwayListener&&{ownerState:xe},children:m.jsx(Q,{...ee,children:m.jsx(Ve,{...te,children:h||m.jsx(Te,{...he})})})})});function hU(e){return nt("MuiTooltip",e)}const qr=it("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function pU(e){return Math.round(e*1e5)/1e5}const mU=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:s}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Oe(s.split("-")[0])}`],arrow:["arrow"]};return at(o,hU,t)},gU=_e(Ok,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(dt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${qr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),xU=_e("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Oe(r.placement.split("-")[0])}`]]}})(dt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${qr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${pU(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),vU=_e("span",{name:"MuiTooltip",slot:"Arrow"})(dt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Dh=!1;const lE=new rm;let Df={x:0,y:0};function Mh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Un=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:s,classes:o,components:c={},componentsProps:f={},describeChild:d=!1,disableFocusListener:h=!1,disableHoverListener:g=!1,disableInteractive:x=!1,disableTouchListener:y=!1,enterDelay:b=100,enterNextDelay:v=0,enterTouchDelay:w=700,followCursor:C=!1,id:k,leaveDelay:E=0,leaveTouchDelay:D=1500,onClose:M,onOpen:A,open:O,placement:N="bottom",PopperComponent:F,PopperProps:P={},slotProps:j={},slots:R={},title:W,TransitionComponent:Y,TransitionProps:Z,...B}=n,ne=_.isValidElement(s)?s:m.jsx("span",{children:s}),ce=ai(),U=Xo(),[H,ie]=_.useState(),[z,K]=_.useState(null),Q=_.useRef(!1),ee=x||C,ae=Mo(),xe=Mo(),ye=Mo(),Te=Mo(),[he,Ve]=Pl({controlled:O,default:!1,name:"Tooltip",state:"open"});let te=he;const rt=Yo(k),Ue=_.useRef(),ve=ha(()=>{Ue.current!==void 0&&(document.body.style.WebkitUserSelect=Ue.current,Ue.current=void 0),Te.clear()});_.useEffect(()=>ve,[ve]);const Ge=Nt=>{lE.clear(),Dh=!0,Ve(!0),A&&!te&&A(Nt)},Ae=ha(Nt=>{lE.start(800+E,()=>{Dh=!1}),Ve(!1),M&&te&&M(Nt),ae.start(ce.transitions.duration.shortest,()=>{Q.current=!1})}),st=Nt=>{Q.current&&Nt.type!=="touchstart"||(H&&H.removeAttribute("title"),xe.clear(),ye.clear(),b||Dh&&v?xe.start(Dh?v:b,()=>{Ge(Nt)}):Ge(Nt))},yt=Nt=>{xe.clear(),ye.start(E,()=>{Ae(Nt)})},[,Ct]=_.useState(!1),mt=Nt=>{su(Nt.target)||(Ct(!1),yt(Nt))},qe=Nt=>{H||ie(Nt.currentTarget),su(Nt.target)&&(Ct(!0),st(Nt))},Ut=Nt=>{Q.current=!0;const le=ne.props;le.onTouchStart&&le.onTouchStart(Nt)},Dt=Nt=>{Ut(Nt),ye.clear(),ae.clear(),ve(),Ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Te.start(w,()=>{document.body.style.WebkitUserSelect=Ue.current,st(Nt)})},vt=Nt=>{ne.props.onTouchEnd&&ne.props.onTouchEnd(Nt),ve(),ye.start(D,()=>{Ae(Nt)})};_.useEffect(()=>{if(!te)return;function Nt(le){le.key==="Escape"&&Ae(le)}return document.addEventListener("keydown",Nt),()=>{document.removeEventListener("keydown",Nt)}},[Ae,te]);const Et=Lr(Ko(ne),ie,r);!W&&W!==0&&(te=!1);const pt=_.useRef(),_t=Nt=>{const le=ne.props;le.onMouseMove&&le.onMouseMove(Nt),Df={x:Nt.clientX,y:Nt.clientY},pt.current&&pt.current.update()},At={},xt=typeof W=="string";d?(At.title=!te&&xt&&!g?W:null,At["aria-describedby"]=te?rt:null):(At["aria-label"]=xt?W:null,At["aria-labelledby"]=te&&!xt?rt:null);const ot={...At,...B,...ne.props,className:We(B.className,ne.props.className),onTouchStart:Ut,ref:Et,...C?{onMouseMove:_t}:{}},nr={};y||(ot.onTouchStart=Dt,ot.onTouchEnd=vt),g||(ot.onMouseOver=Mh(st,ot.onMouseOver),ot.onMouseLeave=Mh(yt,ot.onMouseLeave),ee||(nr.onMouseOver=st,nr.onMouseLeave=yt)),h||(ot.onFocus=Mh(qe,ot.onFocus),ot.onBlur=Mh(mt,ot.onBlur),ee||(nr.onFocus=qe,nr.onBlur=mt));const It={...n,isRtl:U,arrow:a,disableInteractive:ee,placement:N,PopperComponentProp:F,touch:Q.current},Rr=typeof j.popper=="function"?j.popper(It):j.popper,ht=_.useMemo(()=>{let Nt=[{name:"arrow",enabled:!!z,options:{element:z,padding:4}}];return P.popperOptions?.modifiers&&(Nt=Nt.concat(P.popperOptions.modifiers)),Rr?.popperOptions?.modifiers&&(Nt=Nt.concat(Rr.popperOptions.modifiers)),{...P.popperOptions,...Rr?.popperOptions,modifiers:Nt}},[z,P.popperOptions,Rr?.popperOptions]),$t=mU(It),tr=typeof j.transition=="function"?j.transition(It):j.transition,Wr={slots:{popper:c.Popper,transition:c.Transition??Y,tooltip:c.Tooltip,arrow:c.Arrow,...R},slotProps:{arrow:j.arrow??f.arrow,popper:{...P,...Rr??f.popper},tooltip:j.tooltip??f.tooltip,transition:{...Z,...tr??f.transition}}},[gn,Li]=ut("popper",{elementType:gU,externalForwardedProps:Wr,ownerState:It,className:We($t.popper,P?.className)}),[ii,sa]=ut("transition",{elementType:vd,externalForwardedProps:Wr,ownerState:It}),[ja,La]=ut("tooltip",{elementType:xU,className:$t.tooltip,externalForwardedProps:Wr,ownerState:It}),[Ia,Ii]=ut("arrow",{elementType:vU,className:$t.arrow,externalForwardedProps:Wr,ownerState:It,ref:K});return m.jsxs(_.Fragment,{children:[_.cloneElement(ne,ot),m.jsx(gn,{as:F??Ok,placement:N,anchorEl:C?{getBoundingClientRect:()=>({top:Df.y,left:Df.x,right:Df.x,bottom:Df.y,width:0,height:0})}:H,popperRef:pt,open:H?te:!1,id:rt,transition:!0,...nr,...Li,popperOptions:ht,children:({TransitionProps:Nt})=>m.jsx(ii,{timeout:ce.transitions.duration.shorter,...Nt,...sa,children:m.jsxs(ja,{...La,children:[W,a?m.jsx(Ia,{...Ii}):null]})})})]})});function yU(e){return nt("MuiTab",e)}const gi=it("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),bU=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:s,label:o,selected:c,disabled:f}=e,d={root:["root",s&&o&&"labelIcon",`textColor${Oe(r)}`,n&&"fullWidth",a&&"wrapped",c&&"selected",f&&"disabled"],icon:["iconWrapper","icon"]};return at(d,yU,t)},SU=_e(Oi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Oe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${gi.iconWrapper}`]:t.iconWrapper},{[`& .${gi.icon}`]:t.icon}]}})(dt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${gi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${gi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${gi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${gi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${gi.selected}`]:{opacity:1},[`&.${gi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${gi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${gi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${gi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${gi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),cE=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:o=!1,fullWidth:c,icon:f,iconPosition:d="top",indicator:h,label:g,onChange:x,onClick:y,onFocus:b,selected:v,selectionFollowsFocus:w,textColor:C="inherit",value:k,wrapped:E=!1,...D}=n,M={...n,disabled:s,disableFocusRipple:o,selected:v,icon:!!f,iconPosition:d,label:!!g,fullWidth:c,textColor:C,wrapped:E},A=bU(M),O=f&&g&&_.isValidElement(f)?_.cloneElement(f,{className:We(A.icon,f.props.className)}):f,N=P=>{!v&&x&&x(P,k),y&&y(P)},F=P=>{w&&!v&&x&&x(P,k),b&&b(P)};return m.jsxs(SU,{focusRipple:!o,className:We(A.root,a),ref:r,role:"tab","aria-selected":v,disabled:s,onClick:N,onFocus:F,ownerState:M,tabIndex:v?0:-1,...D,children:[d==="top"||d==="start"?m.jsxs(_.Fragment,{children:[O,g]}):m.jsxs(_.Fragment,{children:[g,O]}),h]})}),e3=_.createContext();function wU(e){return nt("MuiTable",e)}it("MuiTable",["root","stickyHeader"]);const TU=e=>{const{classes:t,stickyHeader:r}=e;return at({root:["root",r&&"stickyHeader"]},wU,t)},CU=_e("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(dt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),uE="table",Gs=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTable"}),{className:a,component:s=uE,padding:o="normal",size:c="medium",stickyHeader:f=!1,...d}=n,h={...n,component:s,padding:o,size:c,stickyHeader:f},g=TU(h),x=_.useMemo(()=>({padding:o,size:c,stickyHeader:f}),[o,c,f]);return m.jsx(e3.Provider,{value:x,children:m.jsx(CU,{as:s,role:s===uE?null:"table",ref:r,className:We(g.root,a),ownerState:h,...d})})}),um=_.createContext();function EU(e){return nt("MuiTableBody",e)}it("MuiTableBody",["root"]);const _U=e=>{const{classes:t}=e;return at({root:["root"]},EU,t)},kU=_e("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),AU={variant:"body"},fE="tbody",Xs=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTableBody"}),{className:a,component:s=fE,...o}=n,c={...n,component:s},f=_U(c);return m.jsx(um.Provider,{value:AU,children:m.jsx(kU,{className:We(f.root,a),as:s,ref:r,role:s===fE?null:"rowgroup",ownerState:c,...o})})});function RU(e){return nt("MuiTableCell",e)}const OU=it("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),DU=e=>{const{classes:t,variant:r,align:n,padding:a,size:s,stickyHeader:o}=e,c={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Oe(n)}`,a!=="normal"&&`padding${Oe(a)}`,`size${Oe(s)}`]};return at(c,RU,t)},MU=_e("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Oe(r.size)}`],r.padding!=="normal"&&t[`padding${Oe(r.padding)}`],r.align!=="inherit"&&t[`align${Oe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(dt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
    ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${OU.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),je=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTableCell"}),{align:a="inherit",className:s,component:o,padding:c,scope:f,size:d,sortDirection:h,variant:g,...x}=n,y=_.useContext(e3),b=_.useContext(um),v=b&&b.variant==="head";let w;o?w=o:w=v?"th":"td";let C=f;w==="td"?C=void 0:!C&&v&&(C="col");const k=g||b&&b.variant,E={...n,align:a,component:w,padding:c||(y&&y.padding?y.padding:"normal"),size:d||(y&&y.size?y.size:"medium"),sortDirection:h,stickyHeader:k==="head"&&y&&y.stickyHeader,variant:k},D=DU(E);let M=null;return h&&(M=h==="asc"?"ascending":"descending"),m.jsx(MU,{as:w,ref:r,className:We(D.root,s),"aria-sort":M,scope:C,ownerState:E,...x})});function FU(e){return nt("MuiTableContainer",e)}it("MuiTableContainer",["root"]);const NU=e=>{const{classes:t}=e;return at({root:["root"]},FU,t)},PU=_e("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Ys=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTableContainer"}),{className:a,component:s="div",...o}=n,c={...n,component:s},f=NU(c);return m.jsx(PU,{ref:r,as:s,className:We(f.root,a),ownerState:c,...o})});function jU(e){return nt("MuiTableHead",e)}it("MuiTableHead",["root"]);const LU=e=>{const{classes:t}=e;return at({root:["root"]},jU,t)},IU=_e("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),BU={variant:"head"},dE="thead",qs=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTableHead"}),{className:a,component:s=dE,...o}=n,c={...n,component:s},f=LU(c);return m.jsx(um.Provider,{value:BU,children:m.jsx(IU,{as:s,className:We(f.root,a),ref:r,role:s===dE?null:"rowgroup",ownerState:c,...o})})});function zU(e){return nt("MuiToolbar",e)}it("MuiToolbar",["root","gutters","regular","dense"]);const UU=e=>{const{classes:t,disableGutters:r,variant:n}=e;return at({root:["root",!r&&"gutters",n]},zU,t)},$U=_e("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(dt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),hE=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiToolbar"}),{className:a,component:s="div",disableGutters:o=!1,variant:c="regular",...f}=n,d={...n,component:s,disableGutters:o,variant:c},h=UU(d);return m.jsx($U,{as:s,className:We(h.root,a),ref:r,ownerState:d,...f})}),HU=tt(m.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),WU=tt(m.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function VU(e){return nt("MuiTableRow",e)}const pE=it("MuiTableRow",["root","selected","hover","head","footer"]),GU=e=>{const{classes:t,selected:r,hover:n,head:a,footer:s}=e;return at({root:["root",r&&"selected",n&&"hover",a&&"head",s&&"footer"]},VU,t)},XU=_e("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(dt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${pE.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${pE.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),mE="tr",Dr=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTableRow"}),{className:a,component:s=mE,hover:o=!1,selected:c=!1,...f}=n,d=_.useContext(um),h={...n,component:s,hover:o,selected:c,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},g=GU(h);return m.jsx(XU,{as:s,ref:r,className:We(g.root,a),role:s===mE?null:"row",ownerState:h,...f})});function YU(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qU(e,t,r,n={},a=()=>{}){const{ease:s=YU,duration:o=300}=n;let c=null;const f=t[e];let d=!1;const h=()=>{d=!0},g=x=>{if(d){a(new Error("Animation cancelled"));return}c===null&&(c=x);const y=Math.min(1,(x-c)/o);if(t[e]=s(y)*(r-f)+f,y>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(g)};return f===r?(a(new Error("Element already at target position")),h):(requestAnimationFrame(g),h)}const KU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function QU(e){const{onChange:t,...r}=e,n=_.useRef(),a=_.useRef(null),s=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return ga(()=>{const o=Yd(()=>{const f=n.current;s(),f!==n.current&&t(n.current)}),c=ti(a.current);return c.addEventListener("resize",o),()=>{o.clear(),c.removeEventListener("resize",o)}},[t]),_.useEffect(()=>{s(),t(n.current)},[t]),m.jsx("div",{style:KU,...r,ref:a})}function ZU(e){return nt("MuiTabScrollButton",e)}const JU=it("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),e$=e=>{const{classes:t,orientation:r,disabled:n}=e;return at({root:["root",r,n&&"disabled"]},ZU,t)},t$=_e(Oi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${JU.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),r$=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:o={},direction:c,orientation:f,disabled:d,...h}=n,g=Xo(),x={isRtl:g,...n},y=e$(x),b=s.StartScrollButtonIcon??HU,v=s.EndScrollButtonIcon??WU,w=Ll({elementType:b,externalSlotProps:o.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=Ll({elementType:v,externalSlotProps:o.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return m.jsx(t$,{component:"div",className:We(y.root,a),ref:r,role:null,ownerState:x,tabIndex:null,...h,style:{...h.style,...f==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${g?-90:90}deg)`}},children:c==="left"?m.jsx(b,{...w}):m.jsx(v,{...C})})});function n$(e){return nt("MuiTabs",e)}const tx=it("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),gE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,xE=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Fh=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const s=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||s)a=r(e,a);else{a.focus();return}}},a$=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:s,centered:o,scrollButtonsHideMobile:c,classes:f}=e;return at({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},n$,f)},i$=_e("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tx.scrollButtons}`]:t.scrollButtons},{[`& .${tx.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(dt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${tx.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),s$=_e("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),o$=_e("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),l$=_e("span",{name:"MuiTabs",slot:"Indicator"})(dt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),c$=_e(QU)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vE={},u$=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTabs"}),a=ai(),s=Xo(),{"aria-label":o,"aria-labelledby":c,action:f,centered:d=!1,children:h,className:g,component:x="div",allowScrollButtonsMobile:y=!1,indicatorColor:b="primary",onChange:v,orientation:w="horizontal",ScrollButtonComponent:C,scrollButtons:k="auto",selectionFollowsFocus:E,slots:D={},slotProps:M={},TabIndicatorProps:A={},TabScrollButtonProps:O={},textColor:N="primary",value:F,variant:P="standard",visibleScrollbar:j=!1,...R}=n,W=P==="scrollable",Y=w==="vertical",Z=Y?"scrollTop":"scrollLeft",B=Y?"top":"left",ne=Y?"bottom":"right",ce=Y?"clientHeight":"clientWidth",U=Y?"height":"width",H={...n,component:x,allowScrollButtonsMobile:y,indicatorColor:b,orientation:w,vertical:Y,scrollButtons:k,textColor:N,variant:P,visibleScrollbar:j,fixed:!W,hideScrollbar:W&&!j,scrollableX:W&&!Y,scrollableY:W&&Y,centered:d&&!W,scrollButtonsHideMobile:!y},ie=a$(H),z=Ll({elementType:D.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:H}),K=Ll({elementType:D.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:H}),[Q,ee]=_.useState(!1),[ae,xe]=_.useState(vE),[ye,Te]=_.useState(!1),[he,Ve]=_.useState(!1),[te,rt]=_.useState(!1),[Ue,ve]=_.useState({overflow:"hidden",scrollbarWidth:0}),Ge=new Map,Ae=_.useRef(null),st=_.useRef(null),yt={slots:D,slotProps:{indicator:A,scrollButton:O,...M}},Ct=()=>{const oe=Ae.current;let fe;if(oe){const Fe=oe.getBoundingClientRect();fe={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollWidth:oe.scrollWidth,top:Fe.top,bottom:Fe.bottom,left:Fe.left,right:Fe.right}}let Re;if(oe&&F!==!1){const Fe=st.current.children;if(Fe.length>0){const Ke=Fe[Ge.get(F)];Re=Ke?Ke.getBoundingClientRect():null}}return{tabsMeta:fe,tabMeta:Re}},mt=ha(()=>{const{tabsMeta:oe,tabMeta:fe}=Ct();let Re=0,Fe;Y?(Fe="top",fe&&oe&&(Re=fe.top-oe.top+oe.scrollTop)):(Fe=s?"right":"left",fe&&oe&&(Re=(s?-1:1)*(fe[Fe]-oe[Fe]+oe.scrollLeft)));const Ke={[Fe]:Re,[U]:fe?fe[U]:0};if(typeof ae[Fe]!="number"||typeof ae[U]!="number")xe(Ke);else{const ct=Math.abs(ae[Fe]-Ke[Fe]),ft=Math.abs(ae[U]-Ke[U]);(ct>=1||ft>=1)&&xe(Ke)}}),qe=(oe,{animation:fe=!0}={})=>{fe?qU(Z,Ae.current,oe,{duration:a.transitions.duration.standard}):Ae.current[Z]=oe},Ut=oe=>{let fe=Ae.current[Z];Y?fe+=oe:fe+=oe*(s?-1:1),qe(fe)},Dt=()=>{const oe=Ae.current[ce];let fe=0;const Re=Array.from(st.current.children);for(let Fe=0;Fe<Re.length;Fe+=1){const Ke=Re[Fe];if(fe+Ke[ce]>oe){Fe===0&&(fe=oe);break}fe+=Ke[ce]}return fe},vt=()=>{Ut(-1*Dt())},Et=()=>{Ut(Dt())},[pt,{onChange:_t,...At}]=ut("scrollbar",{className:We(ie.scrollableX,ie.hideScrollbar),elementType:c$,shouldForwardComponentProp:!0,externalForwardedProps:yt,ownerState:H}),xt=_.useCallback(oe=>{_t?.(oe),ve({overflow:null,scrollbarWidth:oe})},[_t]),[ot,nr]=ut("scrollButtons",{className:We(ie.scrollButtons,O.className),elementType:r$,externalForwardedProps:yt,ownerState:H,additionalProps:{orientation:w,slots:{StartScrollButtonIcon:D.startScrollButtonIcon||D.StartScrollButtonIcon,EndScrollButtonIcon:D.endScrollButtonIcon||D.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:z,endScrollButtonIcon:K}}}),It=()=>{const oe={};oe.scrollbarSizeListener=W?m.jsx(pt,{...At,onChange:xt}):null;const Re=W&&(k==="auto"&&(ye||he)||k===!0);return oe.scrollButtonStart=Re?m.jsx(ot,{direction:s?"right":"left",onClick:vt,disabled:!ye,...nr}):null,oe.scrollButtonEnd=Re?m.jsx(ot,{direction:s?"left":"right",onClick:Et,disabled:!he,...nr}):null,oe},Rr=ha(oe=>{const{tabsMeta:fe,tabMeta:Re}=Ct();if(!(!Re||!fe)){if(Re[B]<fe[B]){const Fe=fe[Z]+(Re[B]-fe[B]);qe(Fe,{animation:oe})}else if(Re[ne]>fe[ne]){const Fe=fe[Z]+(Re[ne]-fe[ne]);qe(Fe,{animation:oe})}}}),ht=ha(()=>{W&&k!==!1&&rt(!te)});_.useEffect(()=>{const oe=Yd(()=>{Ae.current&&mt()});let fe;const Re=ct=>{ct.forEach(ft=>{ft.removedNodes.forEach(I=>{fe?.unobserve(I)}),ft.addedNodes.forEach(I=>{fe?.observe(I)})}),oe(),ht()},Fe=ti(Ae.current);Fe.addEventListener("resize",oe);let Ke;return typeof ResizeObserver<"u"&&(fe=new ResizeObserver(oe),Array.from(st.current.children).forEach(ct=>{fe.observe(ct)})),typeof MutationObserver<"u"&&(Ke=new MutationObserver(Re),Ke.observe(st.current,{childList:!0})),()=>{oe.clear(),Fe.removeEventListener("resize",oe),Ke?.disconnect(),fe?.disconnect()}},[mt,ht]),_.useEffect(()=>{const oe=Array.from(st.current.children),fe=oe.length;if(typeof IntersectionObserver<"u"&&fe>0&&W&&k!==!1){const Re=oe[0],Fe=oe[fe-1],Ke={root:Ae.current,threshold:.99},ct=V=>{Te(!V[0].isIntersecting)},ft=new IntersectionObserver(ct,Ke);ft.observe(Re);const I=V=>{Ve(!V[0].isIntersecting)},q=new IntersectionObserver(I,Ke);return q.observe(Fe),()=>{ft.disconnect(),q.disconnect()}}},[W,k,te,h?.length]),_.useEffect(()=>{ee(!0)},[]),_.useEffect(()=>{mt()}),_.useEffect(()=>{Rr(vE!==ae)},[Rr,ae]),_.useImperativeHandle(f,()=>({updateIndicator:mt,updateScrollButtons:ht}),[mt,ht]);const[$t,tr]=ut("indicator",{className:We(ie.indicator,A.className),elementType:l$,externalForwardedProps:yt,ownerState:H,additionalProps:{style:ae}}),Wr=m.jsx($t,{...tr});let gn=0;const Li=_.Children.map(h,oe=>{if(!_.isValidElement(oe))return null;const fe=oe.props.value===void 0?gn:oe.props.value;Ge.set(fe,gn);const Re=fe===F;return gn+=1,_.cloneElement(oe,{fullWidth:P==="fullWidth",indicator:Re&&!Q&&Wr,selected:Re,selectionFollowsFocus:E,onChange:v,textColor:N,value:fe,...gn===1&&F===!1&&!oe.props.tabIndex?{tabIndex:0}:{}})}),ii=oe=>{if(oe.altKey||oe.shiftKey||oe.ctrlKey||oe.metaKey)return;const fe=st.current,Re=zn(fe).activeElement;if(Re.getAttribute("role")!=="tab")return;let Ke=w==="horizontal"?"ArrowLeft":"ArrowUp",ct=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&s&&(Ke="ArrowRight",ct="ArrowLeft"),oe.key){case Ke:oe.preventDefault(),Fh(fe,Re,xE);break;case ct:oe.preventDefault(),Fh(fe,Re,gE);break;case"Home":oe.preventDefault(),Fh(fe,null,gE);break;case"End":oe.preventDefault(),Fh(fe,null,xE);break}},sa=It(),[ja,La]=ut("root",{ref:r,className:We(ie.root,g),elementType:i$,externalForwardedProps:{...yt,...R,component:x},ownerState:H}),[Ia,Ii]=ut("scroller",{ref:Ae,className:ie.scroller,elementType:s$,externalForwardedProps:yt,ownerState:H,additionalProps:{style:{overflow:Ue.overflow,[Y?`margin${s?"Left":"Right"}`:"marginBottom"]:j?void 0:-Ue.scrollbarWidth}}}),[Nt,le]=ut("list",{ref:st,className:We(ie.list,ie.flexContainer),elementType:o$,externalForwardedProps:yt,ownerState:H,getSlotProps:oe=>({...oe,onKeyDown:fe=>{ii(fe),oe.onKeyDown?.(fe)}})});return m.jsxs(ja,{...La,children:[sa.scrollButtonStart,sa.scrollbarSizeListener,m.jsxs(Ia,{...Ii,children:[m.jsx(Nt,{"aria-label":o,"aria-labelledby":c,"aria-orientation":w==="vertical"?"vertical":null,role:"tablist",...le,children:Li}),Q&&Wr]}),sa.scrollButtonEnd]})});function f$(e){return nt("MuiTextField",e)}it("MuiTextField",["root"]);const d$={standard:yy,filled:vy,outlined:Ty},h$=e=>{const{classes:t}=e;return at({root:["root"]},f$,t)},p$=_e(Ra,{name:"MuiTextField",slot:"Root"})({}),An=_.forwardRef(function(t,r){const n=lt({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:s=!1,children:o,className:c,color:f="primary",defaultValue:d,disabled:h=!1,error:g=!1,FormHelperTextProps:x,fullWidth:y=!1,helperText:b,id:v,InputLabelProps:w,inputProps:C,InputProps:k,inputRef:E,label:D,maxRows:M,minRows:A,multiline:O=!1,name:N,onBlur:F,onChange:P,onFocus:j,placeholder:R,required:W=!1,rows:Y,select:Z=!1,SelectProps:B,slots:ne={},slotProps:ce={},type:U,value:H,variant:ie="outlined",...z}=n,K={...n,autoFocus:s,color:f,disabled:h,error:g,fullWidth:y,multiline:O,required:W,select:Z,variant:ie},Q=h$(K),ee=Yo(v),ae=b&&ee?`${ee}-helper-text`:void 0,xe=D&&ee?`${ee}-label`:void 0,ye=d$[ie],Te={slots:ne,slotProps:{input:k,inputLabel:w,htmlInput:C,formHelperText:x,select:B,...ce}},he={},Ve=Te.slotProps.inputLabel;ie==="outlined"&&(Ve&&typeof Ve.shrink<"u"&&(he.notched=Ve.shrink),he.label=D),Z&&((!B||!B.native)&&(he.id=void 0),he["aria-describedby"]=void 0);const[te,rt]=ut("root",{elementType:p$,shouldForwardComponentProp:!0,externalForwardedProps:{...Te,...z},ownerState:K,className:We(Q.root,c),ref:r,additionalProps:{disabled:h,error:g,fullWidth:y,required:W,color:f,variant:ie}}),[Ue,ve]=ut("input",{elementType:ye,externalForwardedProps:Te,additionalProps:he,ownerState:K}),[Ge,Ae]=ut("inputLabel",{elementType:ki,externalForwardedProps:Te,ownerState:K}),[st,yt]=ut("htmlInput",{elementType:"input",externalForwardedProps:Te,ownerState:K}),[Ct,mt]=ut("formHelperText",{elementType:$I,externalForwardedProps:Te,ownerState:K}),[qe,Ut]=ut("select",{elementType:Oa,externalForwardedProps:Te,ownerState:K}),Dt=m.jsx(Ue,{"aria-describedby":ae,autoComplete:a,autoFocus:s,defaultValue:d,fullWidth:y,multiline:O,name:N,rows:Y,maxRows:M,minRows:A,type:U,value:H,id:ee,inputRef:E,onBlur:F,onChange:P,onFocus:j,placeholder:R,inputProps:yt,slots:{input:ne.htmlInput?st:void 0},...ve});return m.jsxs(te,{...rt,children:[D!=null&&D!==""&&m.jsx(Ge,{htmlFor:ee,id:xe,...Ae,children:D}),Z?m.jsx(qe,{"aria-describedby":ae,id:ee,labelId:xe,value:H,input:Dt,...Ut,children:o}):Dt,b&&m.jsx(Ct,{id:ae,...mt,children:b})]})}),m$=Q_({themeId:Gi}),vu=_.createContext(),Ro={SUCCESS:"success",ERROR:"error",WARNING:"warning",INFO:"info"};function g$({children:e}){const[t,r]=_.useState({open:!1,text:"",type:Ro.SUCCESS,duration:6e3}),n=_.useCallback((h,g=Ro.SUCCESS,x=6e3)=>{r({open:!0,text:h,type:g,duration:x})},[]),a=_.useCallback((h,g)=>{n(h,Ro.SUCCESS,g)},[n]),s=_.useCallback((h,g)=>{n(h,Ro.ERROR,g)},[n]),o=_.useCallback((h,g)=>{n(h,Ro.WARNING,g)},[n]),c=_.useCallback((h,g)=>{n(h,Ro.INFO,g)},[n]),f=_.useCallback(()=>{r(h=>({...h,open:!1}))},[]),d={message:t,showMessage:n,showSuccess:a,showError:s,showWarning:o,showInfo:c,hideMessage:f};return m.jsx(vu.Provider,{value:d,children:e})}function xa(){const e=_.useContext(vu);if(!e)throw new Error("useMessage必须在MessageProvider内部使用");return e}function t3(e,t){return function(){return e.apply(t,arguments)}}const{toString:x$}=Object.prototype,{getPrototypeOf:Ey}=Object,{iterator:fm,toStringTag:r3}=Symbol,dm=(e=>t=>{const r=x$.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Qi=e=>(e=e.toLowerCase(),t=>dm(t)===e),hm=e=>t=>typeof t===e,{isArray:yu}=Array,yd=hm("undefined");function Qd(e){return e!==null&&!yd(e)&&e.constructor!==null&&!yd(e.constructor)&&Da(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n3=Qi("ArrayBuffer");function v$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n3(e.buffer),t}const y$=hm("string"),Da=hm("function"),a3=hm("number"),Zd=e=>e!==null&&typeof e=="object",b$=e=>e===!0||e===!1,tp=e=>{if(dm(e)!=="object")return!1;const t=Ey(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(r3 in e)&&!(fm in e)},S$=e=>{if(!Zd(e)||Qd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},w$=Qi("Date"),T$=Qi("File"),C$=Qi("Blob"),E$=Qi("FileList"),_$=e=>Zd(e)&&Da(e.pipe),k$=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Da(e.append)&&((t=dm(e))==="formdata"||t==="object"&&Da(e.toString)&&e.toString()==="[object FormData]"))},A$=Qi("URLSearchParams"),[R$,O$,D$,M$]=["ReadableStream","Request","Response","Headers"].map(Qi),F$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jd(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),yu(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if(Qd(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let c;for(n=0;n<o;n++)c=s[n],t.call(null,e[c],c,e)}}function i3(e,t){if(Qd(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const kl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,s3=e=>!yd(e)&&e!==kl;function rv(){const{caseless:e}=s3(this)&&this||{},t={},r=(n,a)=>{const s=e&&i3(t,a)||a;tp(t[s])&&tp(n)?t[s]=rv(t[s],n):tp(n)?t[s]=rv({},n):yu(n)?t[s]=n.slice():t[s]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&Jd(arguments[n],r);return t}const N$=(e,t,r,{allOwnKeys:n}={})=>(Jd(t,(a,s)=>{r&&Da(a)?e[s]=t3(a,r):e[s]=a},{allOwnKeys:n}),e),P$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),j$=(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)},L$=(e,t,r,n)=>{let a,s,o;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)o=a[s],(!n||n(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=r!==!1&&Ey(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},I$=(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},B$=e=>{if(!e)return null;if(yu(e))return e;let t=e.length;if(!a3(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},z$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ey(Uint8Array)),U$=(e,t)=>{const n=(e&&e[fm]).call(e);let a;for(;(a=n.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},$$=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},H$=Qi("HTMLFormElement"),W$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),yE=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),V$=Qi("RegExp"),o3=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Jd(r,(a,s)=>{let o;(o=t(a,s,e))!==!1&&(n[s]=o||a)}),Object.defineProperties(e,n)},G$=e=>{o3(e,(t,r)=>{if(Da(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Da(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+"'")})}})},X$=(e,t)=>{const r={},n=a=>{a.forEach(s=>{r[s]=!0})};return yu(e)?n(e):n(String(e).split(t)),r},Y$=()=>{},q$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function K$(e){return!!(e&&Da(e.append)&&e[r3]==="FormData"&&e[fm])}const Q$=e=>{const t=new Array(10),r=(n,a)=>{if(Zd(n)){if(t.indexOf(n)>=0)return;if(Qd(n))return n;if(!("toJSON"in n)){t[a]=n;const s=yu(n)?[]:{};return Jd(n,(o,c)=>{const f=r(o,a+1);!yd(f)&&(s[c]=f)}),t[a]=void 0,s}}return n};return r(e,0)},Z$=Qi("AsyncFunction"),J$=e=>e&&(Zd(e)||Da(e))&&Da(e.then)&&Da(e.catch),l3=((e,t)=>e?setImmediate:t?((r,n)=>(kl.addEventListener("message",({source:a,data:s})=>{a===kl&&s===r&&n.length&&n.shift()()},!1),a=>{n.push(a),kl.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Da(kl.postMessage)),eH=typeof queueMicrotask<"u"?queueMicrotask.bind(kl):typeof process<"u"&&process.nextTick||l3,tH=e=>e!=null&&Da(e[fm]),De={isArray:yu,isArrayBuffer:n3,isBuffer:Qd,isFormData:k$,isArrayBufferView:v$,isString:y$,isNumber:a3,isBoolean:b$,isObject:Zd,isPlainObject:tp,isEmptyObject:S$,isReadableStream:R$,isRequest:O$,isResponse:D$,isHeaders:M$,isUndefined:yd,isDate:w$,isFile:T$,isBlob:C$,isRegExp:V$,isFunction:Da,isStream:_$,isURLSearchParams:A$,isTypedArray:z$,isFileList:E$,forEach:Jd,merge:rv,extend:N$,trim:F$,stripBOM:P$,inherits:j$,toFlatObject:L$,kindOf:dm,kindOfTest:Qi,endsWith:I$,toArray:B$,forEachEntry:U$,matchAll:$$,isHTMLForm:H$,hasOwnProperty:yE,hasOwnProp:yE,reduceDescriptors:o3,freezeMethods:G$,toObjectSet:X$,toCamelCase:W$,noop:Y$,toFiniteNumber:q$,findKey:i3,global:kl,isContextDefined:s3,isSpecCompliantForm:K$,toJSONObject:Q$,isAsyncFn:Z$,isThenable:J$,setImmediate:l3,asap:eH,isIterable:tH};function Bt(e,t,r,n,a){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),a&&(this.response=a,this.status=a.status?a.status:null)}De.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:De.toJSONObject(this.config),code:this.code,status:this.status}}});const c3=Bt.prototype,u3={};["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=>{u3[e]={value:e}});Object.defineProperties(Bt,u3);Object.defineProperty(c3,"isAxiosError",{value:!0});Bt.from=(e,t,r,n,a,s)=>{const o=Object.create(c3);return De.toFlatObject(e,o,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),Bt.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const rH=null;function nv(e){return De.isPlainObject(e)||De.isArray(e)}function f3(e){return De.endsWith(e,"[]")?e.slice(0,-2):e}function bE(e,t,r){return e?e.concat(t).map(function(a,s){return a=f3(a),!r&&s?"["+a+"]":a}).join(r?".":""):t}function nH(e){return De.isArray(e)&&!e.some(nv)}const aH=De.toFlatObject(De,{},null,function(t){return/^is[A-Z]/.test(t)});function pm(e,t,r){if(!De.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=De.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!De.isUndefined(w[v])});const n=r.metaTokens,a=r.visitor||h,s=r.dots,o=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&De.isSpecCompliantForm(t);if(!De.isFunction(a))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(De.isDate(b))return b.toISOString();if(De.isBoolean(b))return b.toString();if(!f&&De.isBlob(b))throw new Bt("Blob is not supported. Use a Buffer instead.");return De.isArrayBuffer(b)||De.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,v,w){let C=b;if(b&&!w&&typeof b=="object"){if(De.endsWith(v,"{}"))v=n?v:v.slice(0,-2),b=JSON.stringify(b);else if(De.isArray(b)&&nH(b)||(De.isFileList(b)||De.endsWith(v,"[]"))&&(C=De.toArray(b)))return v=f3(v),C.forEach(function(E,D){!(De.isUndefined(E)||E===null)&&t.append(o===!0?bE([v],D,s):o===null?v:v+"[]",d(E))}),!1}return nv(b)?!0:(t.append(bE(w,v,s),d(b)),!1)}const g=[],x=Object.assign(aH,{defaultVisitor:h,convertValue:d,isVisitable:nv});function y(b,v){if(!De.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+v.join("."));g.push(b),De.forEach(b,function(C,k){(!(De.isUndefined(C)||C===null)&&a.call(t,C,De.isString(k)?k.trim():k,v,x))===!0&&y(C,v?v.concat(k):[k])}),g.pop()}}if(!De.isObject(e))throw new TypeError("data must be an object");return y(e),t}function SE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function _y(e,t){this._pairs=[],e&&pm(e,this,t)}const d3=_y.prototype;d3.append=function(t,r){this._pairs.push([t,r])};d3.toString=function(t){const r=t?function(n){return t.call(this,n,SE)}:SE;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function iH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function h3(e,t,r){if(!t)return e;const n=r&&r.encode||iH;De.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let s;if(a?s=a(t,r):s=De.isURLSearchParams(t)?t.toString():new _y(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class wE{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){De.forEach(this.handlers,function(n){n!==null&&t(n)})}}const p3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sH=typeof URLSearchParams<"u"?URLSearchParams:_y,oH=typeof FormData<"u"?FormData:null,lH=typeof Blob<"u"?Blob:null,cH={isBrowser:!0,classes:{URLSearchParams:sH,FormData:oH,Blob:lH},protocols:["http","https","file","blob","url","data"]},ky=typeof window<"u"&&typeof document<"u",av=typeof navigator=="object"&&navigator||void 0,uH=ky&&(!av||["ReactNative","NativeScript","NS"].indexOf(av.product)<0),fH=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dH=ky&&window.location.href||"http://localhost",hH=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ky,hasStandardBrowserEnv:uH,hasStandardBrowserWebWorkerEnv:fH,navigator:av,origin:dH},Symbol.toStringTag,{value:"Module"})),Qn={...hH,...cH};function pH(e,t){return pm(e,new Qn.classes.URLSearchParams,{visitor:function(r,n,a,s){return Qn.isNode&&De.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function mH(e){return De.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gH(e){const t={},r=Object.keys(e);let n;const a=r.length;let s;for(n=0;n<a;n++)s=r[n],t[s]=e[s];return t}function m3(e){function t(r,n,a,s){let o=r[s++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),f=s>=r.length;return o=!o&&De.isArray(a)?a.length:o,f?(De.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!c):((!a[o]||!De.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],s)&&De.isArray(a[o])&&(a[o]=gH(a[o])),!c)}if(De.isFormData(e)&&De.isFunction(e.entries)){const r={};return De.forEachEntry(e,(n,a)=>{t(mH(n),a,r,0)}),r}return null}function xH(e,t,r){if(De.isString(e))try{return(t||JSON.parse)(e),De.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const e0={transitional:p3,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,s=De.isObject(t);if(s&&De.isHTMLForm(t)&&(t=new FormData(t)),De.isFormData(t))return a?JSON.stringify(m3(t)):t;if(De.isArrayBuffer(t)||De.isBuffer(t)||De.isStream(t)||De.isFile(t)||De.isBlob(t)||De.isReadableStream(t))return t;if(De.isArrayBufferView(t))return t.buffer;if(De.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pH(t,this.formSerializer).toString();if((c=De.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return pm(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||a?(r.setContentType("application/json",!1),xH(t)):t}],transformResponse:[function(t){const r=this.transitional||e0.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(De.isResponse(t)||De.isReadableStream(t))return t;if(t&&De.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(o)throw c.name==="SyntaxError"?Bt.from(c,Bt.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qn.classes.FormData,Blob:Qn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};De.forEach(["delete","get","head","post","put","patch"],e=>{e0.headers[e]={}});const vH=De.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"]),yH=e=>{const t={};let r,n,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&vH[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},TE=Symbol("internals");function Mf(e){return e&&String(e).trim().toLowerCase()}function rp(e){return e===!1||e==null?e:De.isArray(e)?e.map(rp):String(e)}function bH(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 SH=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rx(e,t,r,n,a){if(De.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!De.isString(t)){if(De.isString(n))return t.indexOf(n)!==-1;if(De.isRegExp(n))return n.test(t)}}function wH(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function TH(e,t){const r=De.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,s,o){return this[n].call(this,t,a,s,o)},configurable:!0})})}let Ma=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function s(c,f,d){const h=Mf(f);if(!h)throw new Error("header name must be a non-empty string");const g=De.findKey(a,h);(!g||a[g]===void 0||d===!0||d===void 0&&a[g]!==!1)&&(a[g||f]=rp(c))}const o=(c,f)=>De.forEach(c,(d,h)=>s(d,h,f));if(De.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(De.isString(t)&&(t=t.trim())&&!SH(t))o(yH(t),r);else if(De.isObject(t)&&De.isIterable(t)){let c={},f,d;for(const h of t){if(!De.isArray(h))throw TypeError("Object iterator must return a key-value pair");c[d=h[0]]=(f=c[d])?De.isArray(f)?[...f,h[1]]:[f,h[1]]:h[1]}o(c,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=Mf(t),t){const n=De.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return bH(a);if(De.isFunction(r))return r.call(this,a,n);if(De.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Mf(t),t){const n=De.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||rx(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function s(o){if(o=Mf(o),o){const c=De.findKey(n,o);c&&(!r||rx(n,n[c],c,r))&&(delete n[c],a=!0)}}return De.isArray(t)?t.forEach(s):s(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const s=r[n];(!t||rx(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const r=this,n={};return De.forEach(this,(a,s)=>{const o=De.findKey(n,s);if(o){r[o]=rp(a),delete r[s];return}const c=t?wH(s):String(s).trim();c!==s&&delete r[s],r[c]=rp(a),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return De.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&De.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(a=>n.set(a)),n}static accessor(t){const n=(this[TE]=this[TE]={accessors:{}}).accessors,a=this.prototype;function s(o){const c=Mf(o);n[c]||(TH(a,o),n[c]=!0)}return De.isArray(t)?t.forEach(s):s(t),this}};Ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);De.reduceDescriptors(Ma.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});De.freezeMethods(Ma);function nx(e,t){const r=this||e0,n=t||r,a=Ma.from(n.headers);let s=n.data;return De.forEach(e,function(c){s=c.call(r,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function g3(e){return!!(e&&e.__CANCEL__)}function bu(e,t,r){Bt.call(this,e??"canceled",Bt.ERR_CANCELED,t,r),this.name="CanceledError"}De.inherits(bu,Bt,{__CANCEL__:!0});function x3(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 CH(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function EH(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,s=0,o;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),h=n[s];o||(o=d),r[a]=f,n[a]=d;let g=s,x=0;for(;g!==a;)x+=r[g++],g=g%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),d-o<t)return;const y=h&&d-h;return y?Math.round(x*1e3/y):void 0}}function _H(e,t){let r=0,n=1e3/t,a,s;const o=(d,h=Date.now())=>{r=h,a=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const h=Date.now(),g=h-r;g>=n?o(d,h):(a=d,s||(s=setTimeout(()=>{s=null,o(a)},n-g)))},()=>a&&o(a)]}const bp=(e,t,r=3)=>{let n=0;const a=EH(50,250);return _H(s=>{const o=s.loaded,c=s.lengthComputable?s.total:void 0,f=o-n,d=a(f),h=o<=c;n=o;const g={loaded:o,total:c,progress:c?o/c:void 0,bytes:f,rate:d||void 0,estimated:d&&c&&h?(c-o)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},r)},CE=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},EE=e=>(...t)=>De.asap(()=>e(...t)),kH=Qn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Qn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Qn.origin),Qn.navigator&&/(msie|trident)/i.test(Qn.navigator.userAgent)):()=>!0,AH=Qn.hasStandardBrowserEnv?{write(e,t,r,n,a,s){const o=[e+"="+encodeURIComponent(t)];De.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),De.isString(n)&&o.push("path="+n),De.isString(a)&&o.push("domain="+a),s===!0&&o.push("secure"),document.cookie=o.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 RH(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OH(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function v3(e,t,r){let n=!RH(t);return e&&(n||r==!1)?OH(e,t):t}const _E=e=>e instanceof Ma?{...e}:e;function Bl(e,t){t=t||{};const r={};function n(d,h,g,x){return De.isPlainObject(d)&&De.isPlainObject(h)?De.merge.call({caseless:x},d,h):De.isPlainObject(h)?De.merge({},h):De.isArray(h)?h.slice():h}function a(d,h,g,x){if(De.isUndefined(h)){if(!De.isUndefined(d))return n(void 0,d,g,x)}else return n(d,h,g,x)}function s(d,h){if(!De.isUndefined(h))return n(void 0,h)}function o(d,h){if(De.isUndefined(h)){if(!De.isUndefined(d))return n(void 0,d)}else return n(void 0,h)}function c(d,h,g){if(g in t)return n(d,h);if(g in e)return n(void 0,d)}const f={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(d,h,g)=>a(_E(d),_E(h),g,!0)};return De.forEach(Object.keys({...e,...t}),function(h){const g=f[h]||a,x=g(e[h],t[h],h);De.isUndefined(x)&&g!==c||(r[h]=x)}),r}const y3=e=>{const t=Bl({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:s,headers:o,auth:c}=t;t.headers=o=Ma.from(o),t.url=h3(v3(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(De.isFormData(r)){if(Qn.hasStandardBrowserEnv||Qn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((f=o.getContentType())!==!1){const[d,...h]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...h].join("; "))}}if(Qn.hasStandardBrowserEnv&&(n&&De.isFunction(n)&&(n=n(t)),n||n!==!1&&kH(t.url))){const d=a&&s&&AH.read(s);d&&o.set(a,d)}return t},DH=typeof XMLHttpRequest<"u",MH=DH&&function(e){return new Promise(function(r,n){const a=y3(e);let s=a.data;const o=Ma.from(a.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:d}=a,h,g,x,y,b;function v(){y&&y(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,!0),w.timeout=a.timeout;function C(){if(!w)return;const E=Ma.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:E,config:e,request:w};x3(function(O){r(O),v()},function(O){n(O),v()},M),w=null}"onloadend"in w?w.onloadend=C:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(C)},w.onabort=function(){w&&(n(new Bt("Request aborted",Bt.ECONNABORTED,e,w)),w=null)},w.onerror=function(){n(new Bt("Network Error",Bt.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let D=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const M=a.transitional||p3;a.timeoutErrorMessage&&(D=a.timeoutErrorMessage),n(new Bt(D,M.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,w)),w=null},s===void 0&&o.setContentType(null),"setRequestHeader"in w&&De.forEach(o.toJSON(),function(D,M){w.setRequestHeader(M,D)}),De.isUndefined(a.withCredentials)||(w.withCredentials=!!a.withCredentials),c&&c!=="json"&&(w.responseType=a.responseType),d&&([x,b]=bp(d,!0),w.addEventListener("progress",x)),f&&w.upload&&([g,y]=bp(f),w.upload.addEventListener("progress",g),w.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(h=E=>{w&&(n(!E||E.type?new bu(null,e,w):E),w.abort(),w=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));const k=CH(a.url);if(k&&Qn.protocols.indexOf(k)===-1){n(new Bt("Unsupported protocol "+k+":",Bt.ERR_BAD_REQUEST,e));return}w.send(s||null)})},FH=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const s=function(d){if(!a){a=!0,c();const h=d instanceof Error?d:this.reason;n.abort(h instanceof Bt?h:new bu(h instanceof Error?h.message:h))}};let o=t&&setTimeout(()=>{o=null,s(new Bt(`timeout ${t} of ms exceeded`,Bt.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:f}=n;return f.unsubscribe=()=>De.asap(c),f}},NH=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},PH=async function*(e,t){for await(const r of jH(e))yield*NH(r,t)},jH=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()}},kE=(e,t,r,n)=>{const a=PH(e,t);let s=0,o,c=f=>{o||(o=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:d,value:h}=await a.next();if(d){c(),f.close();return}let g=h.byteLength;if(r){let x=s+=g;r(x)}f.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(f){return c(f),a.return()}},{highWaterMark:2})},mm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",b3=mm&&typeof ReadableStream=="function",LH=mm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),S3=(e,...t)=>{try{return!!e(...t)}catch{return!1}},IH=b3&&S3(()=>{let e=!1;const t=new Request(Qn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),AE=64*1024,iv=b3&&S3(()=>De.isReadableStream(new Response("").body)),Sp={stream:iv&&(e=>e.body)};mm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sp[t]&&(Sp[t]=De.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 BH=async e=>{if(e==null)return 0;if(De.isBlob(e))return e.size;if(De.isSpecCompliantForm(e))return(await new Request(Qn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(De.isArrayBufferView(e)||De.isArrayBuffer(e))return e.byteLength;if(De.isURLSearchParams(e)&&(e=e+""),De.isString(e))return(await LH(e)).byteLength},zH=async(e,t)=>{const r=De.toFiniteNumber(e.getContentLength());return r??BH(t)},UH=mm&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:s,timeout:o,onDownloadProgress:c,onUploadProgress:f,responseType:d,headers:h,withCredentials:g="same-origin",fetchOptions:x}=y3(e);d=d?(d+"").toLowerCase():"text";let y=FH([a,s&&s.toAbortSignal()],o),b;const v=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let w;try{if(f&&IH&&r!=="get"&&r!=="head"&&(w=await zH(h,n))!==0){let M=new Request(t,{method:"POST",body:n,duplex:"half"}),A;if(De.isFormData(n)&&(A=M.headers.get("content-type"))&&h.setContentType(A),M.body){const[O,N]=CE(w,bp(EE(f)));n=kE(M.body,AE,O,N)}}De.isString(g)||(g=g?"include":"omit");const C="credentials"in Request.prototype;b=new Request(t,{...x,signal:y,method:r.toUpperCase(),headers:h.normalize().toJSON(),body:n,duplex:"half",credentials:C?g:void 0});let k=await fetch(b,x);const E=iv&&(d==="stream"||d==="response");if(iv&&(c||E&&v)){const M={};["status","statusText","headers"].forEach(F=>{M[F]=k[F]});const A=De.toFiniteNumber(k.headers.get("content-length")),[O,N]=c&&CE(A,bp(EE(c),!0))||[];k=new Response(kE(k.body,AE,O,()=>{N&&N(),v&&v()}),M)}d=d||"text";let D=await Sp[De.findKey(Sp,d)||"text"](k,e);return!E&&v&&v(),await new Promise((M,A)=>{x3(M,A,{data:D,headers:Ma.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:b})})}catch(C){throw v&&v(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new Bt("Network Error",Bt.ERR_NETWORK,e,b),{cause:C.cause||C}):Bt.from(C,C&&C.code,e,b)}}),sv={http:rH,xhr:MH,fetch:UH};De.forEach(sv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const RE=e=>`- ${e}`,$H=e=>De.isFunction(e)||e===null||e===!1,w3={getAdapter:e=>{e=De.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!$H(r)&&(n=sv[(o=String(r)).toLowerCase()],n===void 0))throw new Bt(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+s]=n}if(!n){const s=Object.entries(a).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
`+s.map(RE).join(`
`):" "+RE(s[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:sv};function ax(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bu(null,e)}function OE(e){return ax(e),e.headers=Ma.from(e.headers),e.data=nx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),w3.getAdapter(e.adapter||e0.adapter)(e).then(function(n){return ax(e),n.data=nx.call(e,e.transformResponse,n),n.headers=Ma.from(n.headers),n},function(n){return g3(n)||(ax(e),n&&n.response&&(n.response.data=nx.call(e,e.transformResponse,n.response),n.response.headers=Ma.from(n.response.headers))),Promise.reject(n)})}const T3="1.11.0",gm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gm[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const DE={};gm.transitional=function(t,r,n){function a(s,o){return"[Axios v"+T3+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,c)=>{if(t===!1)throw new Bt(a(o," has been removed"+(r?" in "+r:"")),Bt.ERR_DEPRECATED);return r&&!DE[o]&&(DE[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,o,c):!0}};gm.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function HH(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 a=n.length;for(;a-- >0;){const s=n[a],o=t[s];if(o){const c=e[s],f=c===void 0||o(c,s,e);if(f!==!0)throw new Bt("option "+s+" must be "+f,Bt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Bt("Unknown option "+s,Bt.ERR_BAD_OPTION)}}const np={assertOptions:HH,validators:gm},is=np.validators;let Ol=class{constructor(t){this.defaults=t||{},this.interceptors={request:new wE,response:new wE}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Bl(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:s}=r;n!==void 0&&np.assertOptions(n,{silentJSONParsing:is.transitional(is.boolean),forcedJSONParsing:is.transitional(is.boolean),clarifyTimeoutError:is.transitional(is.boolean)},!1),a!=null&&(De.isFunction(a)?r.paramsSerializer={serialize:a}:np.assertOptions(a,{encode:is.function,serialize:is.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),np.assertOptions(r,{baseUrl:is.spelling("baseURL"),withXsrfToken:is.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&De.merge(s.common,s[r.method]);s&&De.forEach(["delete","get","head","post","put","patch","common"],b=>{delete s[b]}),r.headers=Ma.concat(o,s);const c=[];let f=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(f=f&&v.synchronous,c.unshift(v.fulfilled,v.rejected))});const d=[];this.interceptors.response.forEach(function(v){d.push(v.fulfilled,v.rejected)});let h,g=0,x;if(!f){const b=[OE.bind(this),void 0];for(b.unshift(...c),b.push(...d),x=b.length,h=Promise.resolve(r);g<x;)h=h.then(b[g++],b[g++]);return h}x=c.length;let y=r;for(g=0;g<x;){const b=c[g++],v=c[g++];try{y=b(y)}catch(w){v.call(this,w);break}}try{h=OE.call(this,y)}catch(b){return Promise.reject(b)}for(g=0,x=d.length;g<x;)h=h.then(d[g++],d[g++]);return h}getUri(t){t=Bl(this.defaults,t);const r=v3(t.baseURL,t.url,t.allowAbsoluteUrls);return h3(r,t.params,t.paramsSerializer)}};De.forEach(["delete","get","head","options"],function(t){Ol.prototype[t]=function(r,n){return this.request(Bl(n||{},{method:t,url:r,data:(n||{}).data}))}});De.forEach(["post","put","patch"],function(t){function r(n){return function(s,o,c){return this.request(Bl(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Ol.prototype[t]=r(),Ol.prototype[t+"Form"]=r(!0)});let WH=class C3{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(a=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const o=new Promise(c=>{n.subscribe(c),s=c}).then(a);return o.cancel=function(){n.unsubscribe(s)},o},t(function(s,o,c){n.reason||(n.reason=new bu(s,o,c),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 C3(function(a){t=a}),cancel:t}}};function VH(e){return function(r){return e.apply(null,r)}}function GH(e){return De.isObject(e)&&e.isAxiosError===!0}const ov={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(ov).forEach(([e,t])=>{ov[t]=e});function E3(e){const t=new Ol(e),r=t3(Ol.prototype.request,t);return De.extend(r,Ol.prototype,t,{allOwnKeys:!0}),De.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return E3(Bl(e,a))},r}const bt=E3(e0);bt.Axios=Ol;bt.CanceledError=bu;bt.CancelToken=WH;bt.isCancel=g3;bt.VERSION=T3;bt.toFormData=pm;bt.AxiosError=Bt;bt.Cancel=bt.CanceledError;bt.all=function(t){return Promise.all(t)};bt.spread=VH;bt.isAxiosError=GH;bt.mergeConfig=Bl;bt.AxiosHeaders=Ma;bt.formToJSON=e=>m3(De.isHTMLForm(e)?new FormData(e):e);bt.getAdapter=w3.getAdapter;bt.HttpStatusCode=ov;bt.default=bt;const{Axios:Yne,AxiosError:qne,CanceledError:Kne,isCancel:Qne,CancelToken:Zne,VERSION:Jne,all:eae,Cancel:tae,isAxiosError:rae,spread:nae,toFormData:aae,AxiosHeaders:iae,HttpStatusCode:sae,formToJSON:oae,getAdapter:lae,mergeConfig:cae}=bt;let bd=null;const XH=e=>{bd=e};bt.defaults.baseURL="/api/v1";bt.defaults.timeout=3e4;bt.defaults.headers.common["Content-Type"]="application/json";bt.interceptors.request.use(function(e){return e},function(e){return bd&&bd("请求配置错误",Ro.ERROR),Promise.reject(e)});bt.interceptors.response.use(function(e){return e.data},function(e){let t="请求失败";if(e.response&&e.response.data){const r=e.response.data;r.detail?t=r.detail:r.title?t=r.title:r.message&&(t=r.message),e.response.status&&(t=`${t} (状态码: ${e.response.status})`)}else e.request?t="网络连接失败，请检查网络":e.code==="ECONNABORTED"&&(t="请求超时，请检查网络连接");return bd?bd(t,Ro.ERROR):console.error("API Error:",t,e),Promise.reject(e)});const YH=tt([m.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),wp=tt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"})),ME=tt(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),qH=tt(m.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),KH=tt(m.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"})),FE=tt(m.jsx("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"})),QH=tt(m.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),t0=tt(m.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"})),ZH=tt(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"})),JH=tt(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),zo=tt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),eW=tt([m.jsx("circle",{cx:"14.5",cy:"10.5",r:"1.25"},"0"),m.jsx("circle",{cx:"9.5",cy:"10.5",r:"1.25"},"1"),m.jsx("path",{d:"M22.94 12.66q.06-.315.06-.66c0-.345-.02-.45-.06-.66-.25-1.51-1.36-2.74-2.81-3.17-.53-1.12-1.28-2.1-2.19-2.91C16.36 3.85 14.28 3 12 3s-4.36.85-5.94 2.26c-.92.81-1.67 1.8-2.19 2.91-1.45.43-2.56 1.65-2.81 3.17Q1 11.655 1 12c0 .345.02.45.06.66.25 1.51 1.36 2.74 2.81 3.17.52 1.11 1.27 2.09 2.17 2.89C7.62 20.14 9.71 21 12 21s4.38-.86 5.97-2.28c.9-.8 1.65-1.79 2.17-2.89 1.44-.43 2.55-1.65 2.8-3.17M19 14c-.1 0-.19-.02-.29-.03-.2.67-.49 1.29-.86 1.86C16.6 17.74 14.45 19 12 19s-4.6-1.26-5.85-3.17c-.37-.57-.66-1.19-.86-1.86-.1.01-.19.03-.29.03-1.1 0-2-.9-2-2s.9-2 2-2c.1 0 .19.02.29.03.2-.67.49-1.29.86-1.86C7.4 6.26 9.55 5 12 5s4.6 1.26 5.85 3.17c.37.57.66 1.19.86 1.86.1-.01.19-.03.29-.03 1.1 0 2 .9 2 2s-.9 2-2 2M7.5 14c.76 1.77 2.49 3 4.5 3s3.74-1.23 4.5-3z"},"2")]),tW=tt(m.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ay=tt(m.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),rW=tt(m.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),_3=tt(m.jsx("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"})),nW=tt(m.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),aW=tt(m.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"})),Tp=tt(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),iW=tt(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})),sW=tt(m.jsx("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"})),k3=tt(m.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),oW=tt(m.jsx("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"})),lW=tt(m.jsx("path",{d:"M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6.5 7V23h-1V12.5c0-.28-.22-.5-.5-.5s-.5.22-.5.5v1h-1v-.69c-1.46-.38-2.7-1.29-3.51-2.52-.31.87-.49 1.78-.49 2.71 0 .23.02.46.03.69L15 16.5V23h-2v-5l-1.78-2.54L11 19l-3 4-1.6-1.2L9 18.33V13c0-1.15.18-2.29.5-3.39l-1.5.85V14H6V9.3l5.4-3.07v.01c.59-.31 1.32-.33 1.94.03.36.21.63.51.8.85l.79 1.67C15.58 10.1 16.94 11 18.5 11c.83 0 1.5.67 1.5 1.5"})),A3=tt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),cW=tt(m.jsx("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"})),Cp=tt(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),uW=tt(m.jsx("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"})),fW=tt(m.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"})),dW=tt(m.jsx("path",{d:"M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28M3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7s-.54.11-.7-.12c-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21m6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15m7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12M14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38"})),R3=tt(m.jsx("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"})),Sd=tt(m.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),lv=tt(m.jsx("path",{d:"M22 9V7h-2v2h-2v2h2v2h2v-2h2V9zM8 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 1c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ry=tt(m.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),O3=tt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),hW=tt(m.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4l16-.02z"})),pW=tt(m.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),mW=tt(m.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"})),gW=tt(m.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),xW=tt(m.jsx("path",{d:"M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.53.12-1.03.3-1.48.54l1.47 1.47c.41-.17.91-.27 1.51-.27M5.33 4.06 4.06 5.33 7.5 8.77c0 2.08 1.56 3.21 3.91 3.91l3.51 3.51c-.34.48-1.05.91-2.42.91-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c.96-.18 1.82-.55 2.45-1.12l2.22 2.22 1.27-1.27z"})),vW=tt(m.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),yW=tt(m.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),Bf=tt(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),Oy=tt(m.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),bW=tt(m.jsx("path",{d:"M8.65 5.82C9.36 4.72 10.6 4 12 4c2.21 0 4 1.79 4 4 0 1.4-.72 2.64-1.82 3.35zM20 17.17c-.02-1.1-.63-2.11-1.61-2.62-.54-.28-1.13-.54-1.77-.76zm1.19 4.02L2.81 2.81 1.39 4.22l8.89 8.89c-1.81.23-3.39.79-4.67 1.45-1 .51-1.61 1.54-1.61 2.66V20h13.17l2.61 2.61z"})),SW=tt(m.jsx("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"})),Zo=tt(m.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),wW=tt(m.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"})),Dy=tt(m.jsx("path",{d:"M19.8 18.4 14 10.67V6.5l1.35-1.69c.26-.33.03-.81-.39-.81H9.04c-.42 0-.65.48-.39.81L10 6.5v4.17L4.2 18.4c-.49.66-.02 1.6.8 1.6h14c.82 0 1.29-.94.8-1.6"})),cv=tt(m.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),TW=tt(m.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),CW=tt(m.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"})),EW=tt(m.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"})),_W=tt(m.jsx("path",{d:"M6 6h12v12H6z"})),kW=tt(m.jsx("path",{d:"M20 10V8h-4V4h-2v4h-4V4H8v4H4v2h4v4H4v2h4v4h2v-4h4v4h2v-4h4v-2h-4v-4zm-6 4h-4v-4h4z"})),AW=tt(m.jsx("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2"})),RW=tt(m.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"})),OW=tt(m.jsx("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"})),D3=tt(m.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),ix=tt(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),Ic=200;function NE({onClose:e,isMobile:t}){const r=Mv(),n=Zs(),a=o=>({AccountCircle:m.jsx(wp,{}),ConfirmationNumber:m.jsx(_3,{}),Flag:m.jsx(R3,{}),Science:m.jsx(Dy,{}),Receipt:m.jsx(SW,{}),Inventory:m.jsx(hW,{})})[o]||m.jsx(wp,{}),s=o=>{r(o),t&&e()};return m.jsxs(Me,{sx:{overflow:"auto"},children:[m.jsxs(Me,{sx:{p:1.5,display:"flex",alignItems:"center",gap:1.5},children:[m.jsx(Me,{sx:{flexGrow:1},children:m.jsx(Le,{variant:"h6",noWrap:!0,component:"div",color:"primary",sx:{fontSize:"1.1rem"},children:"票务系统"})}),t&&m.jsx(bn,{onClick:e,size:"small",children:m.jsx(Ay,{})})]}),m.jsx(Qa,{}),m.jsx(cm,{sx:{px:.5,py:1.5},children:$ne.map(o=>m.jsx(Ta,{disablePadding:!0,children:m.jsxs($k,{selected:n.pathname===o.path,onClick:()=>s(o.path),sx:{borderRadius:1,mb:.5,"&.Mui-selected":{backgroundColor:"primary.main",color:"primary.contrastText","&:hover":{backgroundColor:"primary.dark"},"& .MuiListItemIcon-root":{color:"primary.contrastText"}}},children:[m.jsx(ca,{sx:{minWidth:32},children:a(o.icon)}),m.jsx(Ca,{primary:o.label,primaryTypographyProps:{fontSize:"0.85rem",fontWeight:n.pathname===o.path?600:400}})]})},o.id))})]})}function DW(){const e=ai();m$(e.breakpoints.down("md"));const{message:t,hideMessage:r,showMessage:n}=xa(),[a,s]=_.useState(!1);_.useEffect(()=>{XH(n)},[n]);const o=()=>{s(!a)},c=()=>{s(!1)},f=(d,h)=>{h!=="clickaway"&&r()};return m.jsxs(Me,{sx:{display:"flex"},children:[m.jsx(Pk,{}),m.jsx(Hj,{position:"fixed",sx:{width:{md:`calc(100% - ${Ic}px)`},ml:{md:`${Ic}px`}},children:m.jsxs(hE,{children:[m.jsx(bn,{color:"inherit","aria-label":"打开导航菜单",edge:"start",onClick:o,sx:{mr:2,display:{md:"none"}},children:m.jsx(gW,{})}),m.jsx(Le,{variant:"h6",noWrap:!0,component:"div",children:"票务系统"})]})}),m.jsxs(Me,{component:"nav",sx:{width:{md:Ic},flexShrink:{md:0}},"aria-label":"navigation menu",children:[m.jsx(GC,{variant:"temporary",open:a,onClose:o,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",md:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:Ic}},children:m.jsx(NE,{onClose:c,isMobile:!0})}),m.jsx(GC,{variant:"permanent",sx:{display:{xs:"none",md:"block"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:Ic}},open:!0,children:m.jsx(NE,{onClose:c,isMobile:!1})})]}),m.jsxs(Me,{component:"main",sx:{flexGrow:1,p:3,width:{md:`calc(100% - ${Ic}px)`},minHeight:"100vh",backgroundColor:"background.default"},children:[m.jsx(hE,{})," ",m.jsx(UO,{})," "]}),m.jsx(dU,{open:t.open,autoHideDuration:t.duration,onClose:f,anchorOrigin:{vertical:"top",horizontal:"center"},children:m.jsx(Mn,{onClose:f,severity:t.type,variant:"filled",sx:{width:"100%"},children:t.text})})]})}function PE(){return m.jsx(Me,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",minHeight:"60vh"},children:m.jsx(Le,{variant:"h6",color:"text.secondary"})})}function Su(e={}){const[t,r]=yD(),n=_.useMemo(()=>e,[JSON.stringify(e)]),a=_.useCallback(()=>{const f={...n};for(const[d,h]of Object.entries(n)){const g=t.get(d);if(g!==null)if(typeof h=="number"){const x=parseInt(g,10);isNaN(x)||(f[d]=x)}else typeof h=="boolean"?f[d]=g==="true":f[d]=g}return f},[t,n]),[s,o]=_.useState(()=>a());_.useEffect(()=>{o(a())},[a]),_.useEffect(()=>{const f=new URLSearchParams;for(const[g,x]of Object.entries(s))x!==n[g]&&x!==""&&x!=null&&f.set(g,String(x));const d=t.toString(),h=f.toString();d!==h&&r(f)},[s,n,r,t]);const c=_.useCallback(f=>{o(d=>typeof f=="function"?f(d):{...d,...f})},[]);return[s,c]}const er={POC:"poc",CSTM:"cstm",TAMGW:"tamgw",TAMGW_TEAM:"tamgw-team",TAMGW_INDIVIDUAL:"tamgw-individual",CHENGLOU:"chenglou"},Yn={PROCESSING:"processing",COMPLETED:"completed",FAILED:"failed",DUPLICATED:"duplicated",ALL_DUPLICATED:"all_duplicated",CANCELLED:"cancelled",CANCEL_FAILED:"cancel_failed"},da={[er.POC]:"恭王府",[er.CSTM]:"北京科技馆",[er.TAMGW]:"天安门升旗",[er.TAMGW_TEAM]:"升旗-团队",[er.TAMGW_INDIVIDUAL]:"升旗-散客",[er.CHENGLOU]:"城楼"},xm={[er.POC]:"primary",[er.CSTM]:"secondary",[er.TAMGW]:"success",[er.TAMGW_TEAM]:"success",[er.TAMGW_INDIVIDUAL]:"warning",[er.CHENGLOU]:"info"},qf={[Yn.PROCESSING]:"处理中",[Yn.COMPLETED]:"已完成",[Yn.FAILED]:"失败",[Yn.DUPLICATED]:"有重复单",[Yn.ALL_DUPLICATED]:"全部重复",[Yn.CANCELLED]:"已取消",[Yn.CANCEL_FAILED]:"取消失败"},M3={[Yn.PROCESSING]:"warning",[Yn.COMPLETED]:"success",[Yn.FAILED]:"error",[Yn.DUPLICATED]:"secondary",[Yn.ALL_DUPLICATED]:"info",[Yn.CANCELLED]:"default",[Yn.CANCEL_FAILED]:"error"},MW=[{label:"全部平台",value:null},{label:"恭王府",value:er.POC},{label:"北京科技馆",value:er.CSTM},{label:"天安门升旗",value:er.TAMGW}],F3=[{label:"全部",value:""},{label:"恭王府",value:er.POC},{label:"北京科技馆",value:er.CSTM},{label:"升旗-团队",value:er.TAMGW_TEAM},{label:"升旗-散客",value:er.TAMGW_INDIVIDUAL},{label:"城楼",value:er.CHENGLOU}];class FW{constructor(){this.baseEndpoint="/accounts"}async findAll({page:t=1,pageSize:r=10,platform:n=""}={}){const a={page:t,size:r};return n&&(a.platform=n),await bt.get(this.baseEndpoint,{params:a})}async create(t){return await this.createBatch([t])}async createBatch(t){const r=t.map(n=>({username:n.username,password:n.password,platform:n.platform,tag:n.tag||null,...n.captcha&&{captcha:n.captcha}}));return await bt.post(`${this.baseEndpoint}/batch`,r)}async updateTag(t,r){return await bt.patch(`${this.baseEndpoint}/${t}`,{tag:r})}async markAsAvailable(t){return await bt.put(`${this.baseEndpoint}/batch/mark-as-available`,t)}async markAsNotUsing(t){return await bt.put(`${this.baseEndpoint}/batch/mark-not-using`,t)}async removeBatch(t){return await bt.delete(`${this.baseEndpoint}/batch`,{data:t})}async removeAll(){const r=(await this.findAll({page:1,pageSize:1e3})).items.map(n=>n.id);return r.length>0?await this.removeBatch(r):0}}const Is=new FW;function NW({refreshTrigger:e}){const[t,r]=Su({platform:"",page:1,pageSize:10}),[n,a]=_.useState([]),[s,o]=_.useState(!1),[c,f]=_.useState([]),[d,h]=_.useState(0),{platform:g,page:x,pageSize:y}=t,[b,v]=_.useState({open:!1,loading:!1,type:"single",targetId:null}),[w,C]=_.useState({open:!1,loading:!1,account:null,newTag:""}),[k,E]=_.useState({open:!1,loading:!1,type:"",accounts:[]}),{showSuccess:D}=xa(),M=_.useCallback(async()=>{o(!0);const U=await Is.findAll({page:x,pageSize:y,platform:g});a(U.items||U.data||[]),h(U.total||U.count||0),f([]),o(!1)},[x,y,g]),A=U=>{U.target.checked?f(n.map(H=>H.username)):f([])},O=U=>{const H=[...c],ie=H.indexOf(U);ie===-1?H.push(U):H.splice(ie,1),f(H)},N=(U,H)=>{r({page:H})},F=U=>{const H=parseInt(U.target.value,10);r({pageSize:H,page:1})},P=U=>{r({platform:U.target.value,page:1})},j=(U,H=null)=>{v({open:!0,loading:!1,type:U,targetId:H})},R=async()=>{if(v(U=>({...U,loading:!0})),b.type==="single"){const U=n.find(H=>H.username===b.targetId);U&&await Is.removeBatch([U.id])}else if(b.type==="batch"){const U=n.filter(H=>c.includes(H.username)).map(H=>H.id);await Is.removeBatch(U)}else b.type==="all"&&await Is.removeAll();v({open:!1,loading:!1,type:"single",targetId:null}),await M(),D("删除成功")},W=U=>{C({open:!0,loading:!1,account:U,newTag:U.tag||""})},Y=async()=>{C(U=>({...U,loading:!0})),await Is.updateTag(w.account.username,w.newTag),C({open:!1,loading:!1,account:null,newTag:""}),await M(),D("标记更新成功")},Z=(U,H=null)=>{let ie=[];H?ie=H:U==="not-using"?ie=n.filter(z=>c.includes(z.username)&&z.isUsing):U==="available"&&(ie=n.filter(z=>c.includes(z.username)&&!z.isAvailable)),E({open:!0,loading:!1,type:U,accounts:ie})},B=async()=>{E(H=>({...H,loading:!0}));const U=k.accounts.map(H=>H.username);k.type==="not-using"?await Is.markAsNotUsing(U):k.type==="available"&&await Is.markAsAvailable(U),E({open:!1,loading:!1,type:"",accounts:[]}),await M(),D(k.type==="not-using"?"标记为未使用成功":"标记为可用成功")},ne=n.filter(U=>c.includes(U.username)&&U.isUsing).length,ce=n.filter(U=>c.includes(U.username)&&!U.isAvailable).length;return _.useEffect(()=>{M()},[M,e]),m.jsxs(Me,{children:[m.jsx(Jt,{container:!0,spacing:2,sx:{mb:3},children:m.jsx(Jt,{size:{xs:12,sm:6,md:4,lg:3},children:m.jsxs(Ra,{size:"small",sx:{minWidth:200},children:[m.jsx(ki,{children:"筛选平台"}),m.jsx(Oa,{value:g,label:"筛选平台",onChange:P,children:F3.map(U=>m.jsx(Qr,{value:U.value,children:U.label},U.value))})]})})}),m.jsxs(Me,{sx:{mb:2,display:"flex",gap:1,flexWrap:"wrap"},children:[m.jsxs(Tt,{variant:"outlined",color:"error",startIcon:m.jsx(sW,{}),disabled:c.length===0,onClick:()=>j("batch"),size:"small",children:["删除已选 (",c.length,")"]}),m.jsxs(Tt,{variant:"outlined",color:"warning",startIcon:m.jsx(bW,{}),disabled:ne===0,onClick:()=>Z("not-using"),size:"small",children:["标记为未使用 (",ne,")"]}),m.jsxs(Tt,{variant:"outlined",color:"success",startIcon:m.jsx(Oy,{}),disabled:ce===0,onClick:()=>Z("available"),size:"small",children:["标记为可用 (",ce,")"]}),m.jsx(Tt,{variant:"outlined",color:"error",startIcon:m.jsx(iW,{}),onClick:()=>j("all"),size:"small",children:"清空所有账号"})]}),m.jsxs(Ys,{component:zr,children:[m.jsxs(Gs,{children:[m.jsx(qs,{children:m.jsxs(Dr,{children:[m.jsx(je,{padding:"checkbox",children:m.jsx(Il,{indeterminate:c.length>0&&c.length<n.length,checked:n.length>0&&c.length===n.length,onChange:A})}),m.jsx(je,{children:"ID"}),m.jsx(je,{children:"用户名"}),m.jsx(je,{children:"密码"}),m.jsx(je,{children:"平台"}),m.jsx(je,{children:"是否可用"}),m.jsx(je,{children:"正在使用"}),m.jsx(je,{children:"标记"}),m.jsx(je,{children:"操作"})]})}),m.jsx(Xs,{children:s?m.jsx(Dr,{children:m.jsx(je,{colSpan:9,align:"center",sx:{py:4},children:m.jsx($n,{})})}):n.length===0?m.jsx(Dr,{children:m.jsx(je,{colSpan:9,align:"center",sx:{py:4},children:m.jsx(Le,{color:"text.secondary",children:"暂无账号数据"})})}):n.map(U=>m.jsxs(Dr,{hover:!0,children:[m.jsx(je,{padding:"checkbox",children:m.jsx(Il,{checked:c.includes(U.username),onChange:()=>O(U.username)})}),m.jsx(je,{children:U.id}),m.jsx(je,{children:U.username}),m.jsx(je,{children:m.jsx(Le,{variant:"body2",sx:{fontFamily:"monospace"},children:U.password&&U.password.length>12?`${U.password.substring(0,12)}...`:U.password})}),m.jsx(je,{children:m.jsx(pr,{label:da[U.platform]||U.platform,color:xm[U.platform]||"default",size:"small"})}),m.jsx(je,{children:m.jsx(pr,{label:U.isAvailable?"可用":"不可用",color:U.isAvailable?"success":"error",variant:"outlined",size:"small"})}),m.jsx(je,{children:m.jsx(pr,{label:U.isUsing?"正在使用":"未使用",color:U.isUsing?"warning":"default",variant:"outlined",size:"small"})}),m.jsx(je,{children:U.tag?m.jsx(pr,{label:U.tag,color:"info",variant:"outlined",size:"small"}):m.jsx(Le,{variant:"caption",color:"text.disabled",children:"无标记"})}),m.jsx(je,{children:m.jsx(Un,{title:"编辑标记",children:m.jsx(bn,{onClick:()=>W(U),children:m.jsx(k3,{fontSize:"small"})})})})]},U.id))})]}),m.jsxs(Me,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:2,px:2,py:1},children:[m.jsxs(Me,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Le,{variant:"body2",children:"每页显示："}),m.jsx(Ra,{size:"small",sx:{minWidth:80},children:m.jsxs(Oa,{value:y,onChange:F,displayEmpty:!0,children:[m.jsx(Qr,{value:10,children:"10"}),m.jsx(Qr,{value:20,children:"20"}),m.jsx(Qr,{value:50,children:"50"}),m.jsx(Qr,{value:100,children:"100"})]})}),m.jsx(Le,{variant:"body2",color:"text.secondary",children:d>0?`${(x-1)*y+1}-${Math.min(x*y,d)} 共 ${d} 条`:"0 条"})]}),d>0&&m.jsx(Kk,{count:Math.ceil(d/y),page:x,onChange:N,color:"primary",shape:"rounded",showFirstButton:!0,showLastButton:!0})]})]}),m.jsxs(ea,{open:b.open,maxWidth:"sm",fullWidth:!0,children:[m.jsx(ra,{children:b.type==="all"?"危险操作":"确认删除"}),m.jsxs(ta,{children:[b.type==="single"&&m.jsx(Le,{children:"您确定要删除这个账号吗？此操作无法撤销。"}),b.type==="batch"&&m.jsxs(Le,{children:["您确定要删除选中的 ",c.length," 个账号吗？此操作无法撤销。"]}),b.type==="all"&&m.jsxs(Me,{children:[m.jsx(Mn,{severity:"warning",sx:{mb:2},children:"此操作将删除所有账号，包括所有景点的所有账号"}),m.jsx(Le,{children:"您确定要清空所有账号吗？此操作无法撤销。"})]})]}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:()=>v({open:!1,loading:!1,type:"single",targetId:null}),children:"取消"}),m.jsx(Tt,{color:"error",variant:"contained",loading:b.loading,onClick:R,children:"确认删除"})]})]}),m.jsxs(ea,{open:w.open,maxWidth:"sm",fullWidth:!0,children:[m.jsx(ra,{children:"编辑标记"}),m.jsx(ta,{children:w.account&&m.jsxs(Me,{children:[m.jsxs(Le,{sx:{mb:2},children:["正在为账号 ",m.jsx("strong",{children:w.account.username})," 编辑标记。"]}),m.jsx(An,{fullWidth:!0,label:"输入标记",placeholder:"例如：vip_customer",value:w.newTag,onChange:U=>C(H=>({...H,newTag:U.target.value}))})]})}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:()=>C({open:!1,loading:!1,account:null,newTag:""}),children:"取消"}),m.jsx(Tt,{color:"primary",variant:"contained",loading:w.loading,onClick:Y,children:"保存"})]})]}),m.jsxs(ea,{open:k.open,maxWidth:"sm",fullWidth:!0,children:[m.jsx(ra,{children:k.type==="not-using"?"确认标记为未使用":"确认标记为可用"}),m.jsx(ta,{children:m.jsxs(Le,{children:["您确定要将选中的 ",k.accounts.length," 个",k.type==="not-using"?"正在使用的":"不可用的","账号",k.type==="not-using"?"标记为未使用":"标记为可用","吗？"]})}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:()=>E({open:!1,loading:!1,type:"",accounts:[]}),children:"取消"}),m.jsx(Tt,{color:k.type==="not-using"?"warning":"success",variant:"contained",loading:k.loading,onClick:B,children:"确认标记"})]})]})]})}class PW{constructor(){this.baseEndpoint="/cstm/auth"}async getCaptcha(){return await bt.get(`${this.baseEndpoint}/captchas`)}async sendSmsCode(t){return await bt.post(`${this.baseEndpoint}/sms/codes`,t)}async login(t){return await bt.post(`${this.baseEndpoint}/login`,t)}}const sx=new PW;function jW({open:e,onClose:t,onSuccess:r}){const[n,a]=_.useState(!1),[s,o]=_.useState(""),[c,f]=_.useState(""),[d,h]=_.useState({mobile:"",captcha:"",smsCode:""}),[g,x]=_.useState(""),[y,b]=_.useState(!1),{showSuccess:v}=_.useContext(vu),w=M=>A=>{h(O=>({...O,[M]:A.target.value})),g&&x("")},C=async()=>{const M=await sx.getCaptcha();o(`data:image/png;base64,${M.img}`),f(M.uuid||"")},k=async()=>{if(!d.mobile.trim()){x("请输入手机号");return}if(!d.captcha.trim()){x("请输入图形验证码");return}a(!0),await sx.sendSmsCode({mobile:d.mobile.trim(),uuid:c,verifyCode:d.captcha.trim()}),v("短信验证码发送成功"),b(!0),a(!1)},E=async()=>{if(!d.mobile.trim()){x("请输入手机号");return}if(!d.smsCode.trim()){x("请输入短信验证码");return}a(!0);try{await sx.login({mobile:d.mobile.trim(),smsCode:d.smsCode.trim()}),v("北京科技馆账号创建成功"),r?.(d.mobile),D()}finally{b(!1),a(!1)}},D=()=>{h({mobile:"",captcha:"",smsCode:""}),x(""),o(""),f(""),t()};return On.useEffect(()=>{e&&C()},[e]),m.jsxs(ea,{open:e,onClose:D,maxWidth:"sm",fullWidth:!0,children:[m.jsxs(ra,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Dy,{color:"info"}),"添加北京科技馆账号"]}),m.jsx(ta,{children:m.jsxs(Me,{component:"form",sx:{mt:1},children:[g&&m.jsx(Mn,{severity:"error",sx:{mb:2},children:g}),m.jsx(An,{fullWidth:!0,label:"手机号",placeholder:"请输入北京科技馆账号手机号",value:d.mobile,onChange:w("mobile"),margin:"normal",disabled:n,autoFocus:!0}),m.jsxs(Me,{sx:{display:"flex",gap:2,alignItems:"flex-end",mb:2},children:[m.jsx(An,{label:"验证码",placeholder:"请输入图形验证码",value:d.captcha,onChange:w("captcha"),disabled:n,sx:{flex:1}}),m.jsx(Me,{sx:{border:1,borderColor:"divider",borderRadius:1,overflow:"hidden",cursor:"pointer",minWidth:120,height:40,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"background.paper"},onClick:C,children:s?m.jsx("img",{src:s,alt:"验证码",style:{width:"100%",height:"100%",objectFit:"contain"}}):m.jsx(Le,{variant:"caption",color:"text.secondary",children:"点击刷新"})})]}),m.jsxs(Me,{sx:{display:"flex",gap:2,alignItems:"flex-end"},children:[m.jsx(An,{fullWidth:!0,label:"短信验证码",placeholder:"请输入短信验证码",value:d.smsCode,onChange:w("smsCode"),margin:"normal",disabled:n}),m.jsx(Tt,{variant:"outlined",onClick:k,disabled:n||!d.mobile.trim()||!d.captcha.trim()||y,sx:{mb:1,minWidth:120},children:y?"已发送":"发送验证码"})]})]})}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:D,disabled:n,children:"取消"}),m.jsx(Tt,{onClick:E,variant:"contained",color:"info",disabled:n||!d.mobile||!d.smsCode,startIcon:n?m.jsx($n,{size:20}):null,children:n?"创建中...":"创建账号"})]})]})}class LW{constructor(){this.baseEndpoint="/tamgw/auth"}async sendSmsCode(t){return await bt.post(`${this.baseEndpoint}/sms/codes`,{mobile:t})}async login(t,r,n=null,a="tamgw-team"){return await bt.post(`${this.baseEndpoint}/login`,{username:t,password:r,tag:n,platform:a})}async getCurrentUserInfo(t){return await bt.get(`${this.baseEndpoint}/users/current`,{params:{phone_number:t}})}async batchAuthenticate(t){return await bt.post(`${this.baseEndpoint}/batch-auth`,null,{params:{count:t}})}}const Ep=new LW;function IW({open:e,onClose:t,onSuccess:r}){const[n,a]=_.useState(!1),[s,o]=_.useState({mobile:"",smsCode:"",accountType:"tamgw-team"}),[c,f]=_.useState(""),[d,h]=_.useState(!1),{showSuccess:g}=_.useContext(vu),x=[{value:"tamgw-team",label:"团队账号 (团队预约)"},{value:"tamgw-individual",label:"散客账号 (个人预约)"}],y=C=>k=>{o(E=>({...E,[C]:k.target.value})),c&&f("")},b=async()=>{if(!s.mobile.trim()){f("请输入手机号");return}a(!0),await Ep.sendSmsCode(s.mobile.trim()),g("短信验证码发送成功"),h(!0),a(!1)},v=async()=>{if(!s.mobile.trim()){f("请输入手机号");return}if(!s.smsCode.trim()){f("请输入短信验证码");return}if(!s.accountType){f("请选择账号类型");return}a(!0);try{await Ep.login(s.mobile.trim(),s.smsCode.trim(),null,s.accountType);const C=x.find(k=>k.value===s.accountType)?.label||s.accountType;g(`天安门升旗${C}创建成功`),r?.(s.mobile,s.accountType),w()}finally{a(!1)}},w=()=>{o({mobile:"",smsCode:"",accountType:"tamgw-team"}),f(""),h(!1),a(!1),t()};return m.jsxs(ea,{open:e,onClose:w,maxWidth:"sm",fullWidth:!0,children:[m.jsxs(ra,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(R3,{color:"error"}),"添加天安门升旗账号"]}),m.jsx(ta,{children:m.jsxs(Me,{component:"form",sx:{mt:1},children:[c&&m.jsx(Mn,{severity:"error",sx:{mb:2},children:c}),m.jsxs(Ra,{fullWidth:!0,margin:"normal",children:[m.jsx(ki,{children:"账号类型"}),m.jsx(Oa,{value:s.accountType,label:"账号类型",onChange:y("accountType"),disabled:n,children:x.map(C=>m.jsx(Qr,{value:C.value,children:C.label},C.value))})]}),m.jsx(An,{fullWidth:!0,label:"手机号",placeholder:"请输入天安门升旗账号手机号",value:s.mobile,onChange:y("mobile"),margin:"normal",disabled:n,autoFocus:!0}),m.jsxs(Me,{sx:{display:"flex",gap:2,alignItems:"flex-end"},children:[m.jsx(An,{fullWidth:!0,label:"短信验证码",placeholder:"请输入短信验证码",value:s.smsCode,onChange:y("smsCode"),margin:"normal",disabled:n}),m.jsx(Tt,{variant:"outlined",onClick:b,disabled:n||!s.mobile.trim()||d,sx:{mb:1,minWidth:120},children:d?"已发送":"发送验证码"})]})]})}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:w,disabled:n,children:"取消"}),m.jsx(Tt,{onClick:v,variant:"contained",color:"error",disabled:n||!s.mobile||!s.smsCode||!s.accountType,startIcon:n?m.jsx($n,{size:20}):null,children:n?"创建中...":"创建账号"})]})]})}function BW({open:e,onClose:t,onSuccess:r}){const[n,a]=_.useState(!1),[s,o]=_.useState(er.POC),[c,f]=_.useState(""),[d,h]=_.useState([]),[g,x]=_.useState([]),[y,b]=_.useState(""),[v,w]=_.useState(""),{showSuccess:C}=_.useContext(vu),k=[{value:er.POC,label:da[er.POC]},{value:er.CHENGLOU,label:da[er.CHENGLOU]}],E=P=>{o(P.target.value)},D=P=>{const j=P.target.files[0];if(!j)return;if(!j.name.endsWith(".txt")){b("请选择.txt格式的文件");return}const R=new FileReader;R.onload=W=>{const Y=W.target.result;f(Y),M(Y)},R.onerror=()=>{b("文件读取失败，请重试")},R.readAsText(j,"utf-8")},M=P=>{const j=P.split(`
`).filter(ne=>ne.trim()!==""),R=[],W=new Set,Y=/^(\d+)----(.+)$/;let Z=0,B=0;for(const ne of j){const ce=ne.trim().match(Y);if(ce){const U=ce[1],H=ce[2];W.has(U)?B++:(W.add(U),R.push({username:U,password:H}))}else Z++}if(h(R),x([]),b(""),R.length===0)b("未找到有效的账号信息，请检查文件格式"),w("");else{let ne=`成功解析 ${R.length} 个账号`;B>0&&(ne+=`（去除 ${B} 个重复账号）`),Z>0&&(ne+=`（忽略 ${Z} 行无效数据）`),w(ne)}},A=async()=>{if(d.length===0){b("请先上传包含账号信息的文件");return}a(!0),b(""),w("");const P=await Is.createBatch(d.map(j=>({username:j.username,password:j.password,platform:s})));if(Array.isArray(P)){x(P);const j=P.filter(R=>R.success).length;C(`成功创建 ${j} 个${da[s]}账号`),r?.(j)}else C(`批量创建${da[s]}账号请求已提交`),r?.(d.length),O();a(!1)},O=()=>{n||(o(er.POC),f(""),h([]),x([]),b(""),w(""),t())},N=g.filter(P=>P.success).length,F=g.length-N;return m.jsxs(ea,{open:e,onClose:O,maxWidth:"md",fullWidth:!0,children:[m.jsxs(ra,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(lv,{color:"primary"}),"批量添加账号"]}),m.jsxs(ta,{sx:{pt:3},children:[n&&m.jsx(Uk,{sx:{mb:2}}),y&&m.jsx(Mn,{severity:"error",sx:{mb:2},children:y}),v&&m.jsx(Mn,{severity:"success",sx:{mb:2},children:v}),m.jsx(Me,{sx:{mb:3,mt:2},children:m.jsxs(Ra,{fullWidth:!0,disabled:n,children:[m.jsx(ki,{children:"选择平台"}),m.jsx(Oa,{value:s,label:"选择平台",onChange:E,children:k.map(P=>m.jsx(Qr,{value:P.value,children:P.label},P.value))})]})}),m.jsxs(Me,{sx:{mb:3},children:[m.jsx("input",{accept:".txt",type:"file",onChange:D,style:{display:"none"},id:"account-file-input",disabled:n}),m.jsx("label",{htmlFor:"account-file-input",children:m.jsx(Tt,{variant:"outlined",component:"span",startIcon:m.jsx(rW,{}),disabled:n,fullWidth:!0,children:"选择账号文件 (.txt)"})})]}),d.length>0&&m.jsxs(zx,{sx:{mb:2},children:[m.jsx(Hx,{expandIcon:m.jsx(Cp,{}),children:m.jsxs(Le,{children:["已解析 ",d.length," 个账号"]})}),m.jsx(Ux,{children:m.jsx(Ys,{component:zr,variant:"outlined",children:m.jsxs(Gs,{size:"small",children:[m.jsx(qs,{children:m.jsxs(Dr,{children:[m.jsx(je,{children:"序号"}),m.jsx(je,{children:"用户名(手机号)"}),m.jsx(je,{children:"密码"}),m.jsx(je,{children:"平台"})]})}),m.jsxs(Xs,{children:[d.slice(0,10).map((P,j)=>m.jsxs(Dr,{children:[m.jsx(je,{children:j+1}),m.jsx(je,{children:P.username}),m.jsx(je,{children:"*".repeat(P.password.length)}),m.jsx(je,{children:da[s]})]},j)),d.length>10&&m.jsx(Dr,{children:m.jsxs(je,{colSpan:4,align:"center",sx:{fontStyle:"italic",color:"text.secondary"},children:["还有 ",d.length-10," 个账号..."]})})]})]})})})]}),g.length>0&&m.jsxs(zx,{children:[m.jsx(Hx,{expandIcon:m.jsx(Cp,{}),children:m.jsxs(Le,{children:["创建结果 (成功: ",N,", 失败: ",F,")"]})}),m.jsx(Ux,{children:m.jsx(Ys,{component:zr,variant:"outlined",children:m.jsxs(Gs,{size:"small",children:[m.jsx(qs,{children:m.jsxs(Dr,{children:[m.jsx(je,{children:"序号"}),m.jsx(je,{children:"用户名"}),m.jsx(je,{children:"状态"}),m.jsx(je,{children:"详情"})]})}),m.jsx(Xs,{children:g.map((P,j)=>m.jsxs(Dr,{children:[m.jsx(je,{children:j+1}),m.jsx(je,{children:P.username}),m.jsx(je,{children:m.jsx(pr,{icon:P.success?m.jsx(JH,{}):m.jsx(Ay,{}),label:P.success?"成功":"失败",color:P.success?"success":"error",size:"small"})}),m.jsx(je,{children:P.message||"-"})]},j))})]})})})]})]}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:O,disabled:n,children:"关闭"}),m.jsx(Tt,{onClick:A,variant:"contained",color:"primary",disabled:n||d.length===0,startIcon:n?null:m.jsx(lv,{}),children:n?"批量创建中...":`批量创建 (${d.length})`})]})]})}function zW({open:e,onClose:t,onSuccess:r}){const[n,a]=_.useState({platform:er.TAMGW_INDIVIDUAL,count:1}),[s,o]=_.useState(!1),{showSuccess:c}=xa(),f=(x,y)=>{a(b=>({...b,[x]:y}))},d=()=>{a({platform:er.TAMGW_INDIVIDUAL,count:1}),o(!1)},h=()=>{d(),t()},g=async()=>{o(!0),await Ep.batchAuthenticate(n.count),c(`成功批量添加${n.count}个${da[n.platform]}账号`),h(),r&&r(),o(!1)};return m.jsxs(ea,{open:e,maxWidth:"sm",fullWidth:!0,onClose:h,children:[m.jsx(ra,{children:"批量短信添加"}),m.jsx(ta,{children:m.jsxs(Me,{sx:{pt:2},children:[m.jsxs(Ra,{fullWidth:!0,sx:{mb:2},children:[m.jsx(ki,{children:"平台选择"}),m.jsx(Oa,{value:n.platform,onChange:x=>f("platform",x.target.value),label:"平台选择",children:m.jsx(Qr,{value:er.TAMGW_INDIVIDUAL,children:da[er.TAMGW_INDIVIDUAL]})})]}),m.jsx(An,{fullWidth:!0,label:"添加数量",type:"number",value:n.count,onChange:x=>f("count",Math.max(1,parseInt(x.target.value)||1)),inputProps:{min:1,max:100},required:!0})]})}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:h,children:"取消"}),m.jsx(Tt,{variant:"contained",onClick:g,disabled:s||!n.count||n.count<1,children:s?"添加中...":"确认添加"})]})]})}function UW(){const[e,t]=_.useState({cstm:!1,tamgw:!1,pocBatch:!1,batchSms:!1}),[r,n]=_.useState(0),a=()=>{n(f=>f+1)},s=f=>{t(d=>({...d,[f]:!0}))},o=f=>{t(d=>({...d,[f]:!1}))},c=()=>{a()};return m.jsxs(Me,{children:[m.jsxs(zr,{sx:{p:3},children:[m.jsxs(Me,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3},children:[m.jsx(Le,{variant:"h4",children:"账号管理"}),m.jsxs(Me,{sx:{display:"flex",gap:1},children:[m.jsx(Tt,{variant:"contained",color:"info",startIcon:m.jsx(Dy,{}),onClick:()=>s("cstm"),size:"small",children:"添加北京科技馆账号"}),m.jsx(Tt,{variant:"contained",color:"error",startIcon:m.jsx(Oy,{}),onClick:()=>s("tamgw"),size:"small",children:"添加天安门升旗账号"}),m.jsx(Tt,{variant:"contained",color:"primary",startIcon:m.jsx(lv,{}),onClick:()=>s("pocBatch"),size:"small",children:"批量添加账号"}),m.jsx(Tt,{variant:"contained",color:"warning",startIcon:m.jsx(EW,{}),onClick:()=>s("batchSms"),size:"small",children:"批量短信添加"})]})]}),m.jsx(NW,{refreshTrigger:r})]}),m.jsx(jW,{open:e.cstm,onClose:()=>o("cstm"),onSuccess:c}),m.jsx(IW,{open:e.tamgw,onClose:()=>o("tamgw"),onSuccess:c}),m.jsx(BW,{open:e.pocBatch,onClose:()=>o("pocBatch"),onSuccess:c}),m.jsx(zW,{open:e.batchSms,onClose:()=>o("batchSms"),onSuccess:c})]})}function My(e){return!e||typeof e!="string"?!1:/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(e)}function N3(e){return!e||typeof e!="string"?!1:/^[A-Z][0-9]{7,8}$/.test(e.toUpperCase())}function P3(e,t=[]){if(!My(e))return 0;const r=parseInt(e.substring(6,10)),n=parseInt(e.substring(10,12)),a=parseInt(e.substring(12,14)),s=t.length>0?new Date(t[0].date||t[0]):new Date,o=s.getFullYear(),c=s.getMonth()+1,f=s.getDate();let d=o-r;return(c<n||c===n&&f<a)&&d--,Math.max(0,d)}function $W(e){return{身份证:"1",护照:"2",港澳居民来往内地通行证:"3",台湾居民来往大陆通行证:"4",外国人永久居留身份证:"6",港澳台居民居住证:"7","港澳居民来往内地通行证（非中国籍）":"9"}[e]||"1"}function j3(e,t=[]){const r={child:[],student:[],adult:[],elderly:[],passport:[],unknown:[]};return e.forEach(n=>{if(My(n.idNumber)){const a=P3(n.idNumber,t);a<=8?r.child.push(n):a>=9&&a<=22?r.student.push(n):a>=23&&a<=59?r.adult.push(n):a>=60?r.elderly.push(n):r.unknown.push(n)}else N3(n.idNumber)?r.passport.push(n):r.unknown.push(n)}),r}function L3(e,t=[]){if(My(e.idNumber)){const r=P3(e.idNumber,t);return r<7?{type:"child",needsTicket:!1}:r>=7&&r<22?{type:"student",priceType:2,certificateType:1,needsTicket:!0}:r>=22&&r<=59?{type:"adult",priceType:1,certificateType:1,needsTicket:!0}:{type:"elderly",priceType:4,certificateType:1,needsTicket:!0}}else return N3(e.idNumber)?{type:"passport",priceType:1,certificateType:2,needsTicket:!0}:{type:"unknown",priceType:1,certificateType:2,needsTicket:!0}}function HW(e,t=[]){const r={child:[],student:[],adult:[],elderly:[],passport:[],unknown:[]};return e.forEach(n=>{const a=L3(n,t);r[a.type].push(n)}),{groups:Object.entries(r).filter(([n,a])=>a.length>0).map(([n,a])=>({type:n,label:WW(n),tourists:a,count:a.length})),totalCount:e.length,...r}}function WW(e){return{child:"儿童票（7岁以下，无需购票）",student:"学生票（7-22岁）",adult:"普通票（22-59岁）",elderly:"老年票（60岁及以上）",passport:"护照（默认普通票）",unknown:"其他证件"}[e]||"未知票种"}class VW{constructor(){this.baseEndpoint="/poc/booking"}async getAvailableDates(){return await bt.get(`${this.baseEndpoint}/dates/available`)}async getInventory(t){return await bt.get(`${this.baseEndpoint}/inventory`,{params:{dateId:t}})}async createBatchOrders(t,r,n,a=!1,s=5){const o=this.#t(t,r,n,a,s);return await bt.post(`${this.baseEndpoint}/batch-orders`,o)}async cancelOrders(t){if(!Array.isArray(t)||t.length===0)throw new Error("取消订单请求不能为空");for(const r of t)if(!r.orderRecordId&&(!r.phoneNumber||!r.orderId))throw new Error("请提供订单记录ID或者(手机号+订单号)");return await bt.delete(`${this.baseEndpoint}/orders`,{data:t})}#t(t,r,n,a=!1,s=5){if(t.length===0)throw new Error("请选择购票日期");if(r.length===0)throw new Error("请添加游客信息");const o=t.map(d=>({inDate:String(d.id||d.inDate),orderPeriodType:d.slot==="am"?1:2})),c=[];r.forEach(d=>{const h=L3(d,t);h.needsTicket&&c.push({name:d.name,idType:String(h.certificateType),idNumber:d.idNumber,priceType:h.priceType})});const f={selectedDate:o,tourists:c,groupSize:s};return a&&(f.auto=!0),f}}const wd=new VW;function Jc(e){const t=new Date(e),r=["周日","周一","周二","周三","周四","周五","周六"],n=(t.getMonth()+1).toString().padStart(2,"0"),a=t.getDate().toString().padStart(2,"0"),s=r[t.getDay()];return`${n}月${a}日 ${s}`}function jE(e){const t=new Date(e);return["周日","周一","周二","周三","周四","周五","周六"][t.getDay()]}function uv(e){if(!e)return"未知";try{return new Date(e).toLocaleString("zh-CN")}catch{return"格式错误"}}function fv(e){if(!e)return"未知";try{const t=new Date(e),r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),s=String(t.getHours()).padStart(2,"0"),o=String(t.getMinutes()).padStart(2,"0"),c=String(t.getSeconds()).padStart(2,"0");return`${r}-${n}-${a} ${s}:${o}:${c}`}catch{return"格式错误"}}function GW(e){const t=new Date(e),r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${r}年${n}月${a}日`}function XW({selectedDates:e=[],onDatesChange:t}){const[r,n]=_.useState(!1),[a,s]=_.useState([]),[o,c]=_.useState(!1);_.useEffect(()=>{f()},[]);const f=async()=>{n(!0);const y=await wd.getAvailableDates(),b=Array.isArray(y)?y.map(v=>({...v,amCount:void 0,pmCount:void 0,isLoading:!1})):[];s(b),b.length>0&&d(b),n(!1)},d=async y=>{const v=y.filter(C=>C.open).map(async C=>{const k=await wd.getInventory(C.indate);return{indate:C.indate,amCount:k.amCount||0,pmCount:k.pmCount||0}}),w=await Promise.all(v);s(C=>C.map(k=>{const E=w.find(D=>D.indate===k.indate);return E?{...k,...E,isLoading:!1}:k}))},h=async()=>{c(!0),await f(),c(!1)},g=y=>e.some(b=>b.id===y.indate),x=y=>{if(g(y)){const v=e.filter(w=>w.id!==y.indate);t?.(v)}else{const v=e.filter(C=>C.id!==y.indate),w=[{id:y.indate,inDate:y.indate,date:y.date,displayDate:Jc(y.date),slot:"am",available:y.open},{id:y.indate,inDate:y.indate,date:y.date,displayDate:Jc(y.date),slot:"pm",available:y.open}];t?.([...v,...w])}};return r?m.jsx(nn,{children:m.jsx(an,{children:m.jsx(Me,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",children:m.jsx($n,{})})})}):m.jsx(nn,{children:m.jsxs(an,{children:[m.jsxs(Me,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[m.jsxs(Le,{variant:"h6",sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(t0,{color:"primary"}),"选择参观日期和时段"]}),m.jsx(Me,{display:"flex",alignItems:"center",gap:1,children:m.jsx(Un,{title:"刷新日期数据",children:m.jsx(bn,{onClick:h,disabled:o,size:"small",children:m.jsx(Zo,{})})})})]}),m.jsx(Mn,{severity:"info",sx:{mb:2},children:"支持多日期选择，点击日期卡片将同时选择上午和下午两个时段"}),a.length>0?m.jsx(Jt,{container:!0,spacing:2,children:a.map(y=>m.jsx(Jt,{size:{xs:6,sm:4,md:3},children:m.jsx(nn,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"visible",border:g(y)?"2px solid":"1px solid",borderColor:g(y)?"success.main":y.open?"grey.300":"grey.400",bgcolor:y.open?"background.paper":"grey.100",opacity:y.open?1:.5,boxShadow:g(y)?"0 8px 24px rgba(76, 175, 80, 0.15)":"none",transform:g(y)?"translateY(-4px) scale(1.02)":"translateY(0) scale(1)","&:hover":y.open?{transform:g(y)?"translateY(-6px) scale(1.03)":"translateY(-2px) scale(1.01)",boxShadow:g(y)?"0 12px 32px rgba(76, 175, 80, 0.2)":"0 4px 12px rgba(0, 0, 0, 0.1)",borderColor:g(y)?"success.main":"primary.light"}:{},"&::before":g(y)?{content:'""',position:"absolute",top:-2,left:-2,right:-2,bottom:-2,background:"linear-gradient(45deg, #4CAF50, #81C784)",borderRadius:1,zIndex:-1,opacity:.1}:{}},onClick:()=>x(y),children:m.jsxs(an,{sx:{p:2,"&:last-child":{pb:2}},children:[m.jsx(Le,{variant:"body1",gutterBottom:!0,sx:{textAlign:"center",color:g(y)?"success.main":y.open?"text.primary":"text.disabled",fontWeight:g(y)?600:500,transition:"color 0.3s ease",fontSize:"0.9rem",mb:1},children:Jc(y.date)}),m.jsx(Me,{display:"flex",justifyContent:"center",mb:1,children:m.jsx(pr,{label:y.show||(y.open?"可订":"不可订"),color:y.open?"success":"default",size:"small",variant:g(y)&&y.open?"filled":"outlined",sx:{fontWeight:g(y)?600:400,transition:"all 0.3s ease",fontSize:"0.75rem",height:"20px",...y.open?{}:{bgcolor:"grey.200",color:"text.disabled",borderColor:"grey.400","& .MuiChip-label":{color:"text.disabled !important"}}}})}),y.open&&m.jsxs(m.Fragment,{children:[m.jsx(Qa,{sx:{my:1}}),y.isLoading||y.amCount===void 0&&y.pmCount===void 0?m.jsxs(Me,{display:"flex",justifyContent:"center",alignItems:"center",py:.5,children:[m.jsx($n,{size:12,sx:{mr:.5}}),m.jsx(Le,{variant:"caption",color:"text.secondary",fontSize:"0.7rem",children:"加载中..."})]}):m.jsxs(Me,{children:[m.jsx(Le,{variant:"caption",display:"block",textAlign:"center",color:"text.secondary",mb:.5,fontSize:"0.7rem",children:"库存信息"}),m.jsxs(Me,{display:"flex",justifyContent:"space-between",gap:1,children:[m.jsxs(Me,{textAlign:"center",flex:1,children:[m.jsx(Le,{variant:"caption",color:"text.secondary",fontSize:"0.7rem",children:"上午"}),m.jsx(Le,{variant:"caption",fontWeight:500,display:"block",fontSize:"0.75rem",color:y.amCount>0?"success.main":"error.main",children:y.amCount||0})]}),m.jsxs(Me,{textAlign:"center",flex:1,children:[m.jsx(Le,{variant:"caption",color:"text.secondary",fontSize:"0.7rem",children:"下午"}),m.jsx(Le,{variant:"caption",fontWeight:500,display:"block",fontSize:"0.75rem",color:y.pmCount>0?"success.main":"error.main",children:y.pmCount||0})]})]})]})]}),g(y)&&m.jsxs(m.Fragment,{children:[m.jsx(Me,{sx:{position:"absolute",top:-6,right:-6,width:24,height:24,bgcolor:"success.main",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(76, 175, 80, 0.4)",border:"2px solid white",zIndex:2},children:m.jsx(zo,{sx:{color:"white",fontSize:14}})}),m.jsx(Me,{sx:{position:"absolute",bottom:0,left:0,right:0,height:3,background:"linear-gradient(90deg, #4CAF50, #81C784)",borderRadius:"0 0 4px 4px"}})]})]})})},y.indate))}):m.jsx(Mn,{severity:"warning",sx:{mt:2},children:"暂无可预订日期"})]})})}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var _p={};_p.version="0.18.5";var I3=1252,YW=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Fy={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},Ny=function(e){YW.indexOf(e)!=-1&&(I3=Fy[0]=e)};function qW(){Ny(1252)}var Wi=function(e){Ny(e)};function Py(){Wi(1200),qW()}function LE(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function KW(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 B3(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 zf=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?KW(e.slice(2)):t==254&&r==255?B3(e.slice(2)):t==65279?e.slice(1):e},Nh=function(t){return String.fromCharCode(t)},IE=function(t){return String.fromCharCode(t)},Td,Fo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Cd(e){for(var t="",r=0,n=0,a=0,s=0,o=0,c=0,f=0,d=0;d<e.length;)r=e.charCodeAt(d++),s=r>>2,n=e.charCodeAt(d++),o=(r&3)<<4|n>>4,a=e.charCodeAt(d++),c=(n&15)<<2|a>>6,f=a&63,isNaN(n)?c=f=64:isNaN(a)&&(f=64),t+=Fo.charAt(s)+Fo.charAt(o)+Fo.charAt(c)+Fo.charAt(f);return t}function ni(e){var t="",r=0,n=0,a=0,s=0,o=0,c=0,f=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var d=0;d<e.length;)s=Fo.indexOf(e.charAt(d++)),o=Fo.indexOf(e.charAt(d++)),r=s<<2|o>>4,t+=String.fromCharCode(r),c=Fo.indexOf(e.charAt(d++)),n=(o&15)<<4|c>>2,c!==64&&(t+=String.fromCharCode(n)),f=Fo.indexOf(e.charAt(d++)),a=(c&3)<<6|f,f!==64&&(t+=String.fromCharCode(a));return t}var Gt=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Js=(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 Uo(e){return Gt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function BE(e){return Gt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Za=function(t){return Gt?Js(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function vm(e){if(typeof ArrayBuffer>"u")return Za(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 Jo(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 QW(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}function jy(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return jy(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var Rn=Gt?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Js(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),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=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(s){return Array.isArray(s)?s:[].slice.call(s)}))};function ZW(e){for(var t=[],r=0,n=e.length+250,a=Uo(e.length+255),s=0;s<e.length;++s){var o=e.charCodeAt(s);if(o<128)a[r++]=o;else if(o<2048)a[r++]=192|o>>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var c=e.charCodeAt(++s)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|c>>6&15|(o&3)<<4,a[r++]=128|c&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Uo(65535),n=65530)}return t.push(a.slice(0,r)),Rn(t)}var ma=/\u0000/g,Uf=/[\u0001-\u0006]/g;function eu(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Vi(e,t){var r=""+e;return r.length>=t?r:Kr("0",t-r.length)+r}function Ly(e,t){var r=""+e;return r.length>=t?r:Kr(" ",t-r.length)+r}function kp(e,t){var r=""+e;return r.length>=t?r:r+Kr(" ",t-r.length)}function JW(e,t){var r=""+Math.round(e);return r.length>=t?r:Kr("0",t-r.length)+r}function eV(e,t){var r=""+e;return r.length>=t?r:Kr("0",t-r.length)+r}var zE=Math.pow(2,32);function Bc(e,t){if(e>zE||e<-zE)return JW(e,t);var r=Math.round(e);return eV(r,t)}function Ap(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 UE=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],ox=[["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 tV(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 Ft={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"秒 "'},$E={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},rV={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 Rp(e,t,r){for(var n=e<0?-1:1,a=e*n,s=0,o=1,c=0,f=1,d=0,h=0,g=Math.floor(a);d<t&&(g=Math.floor(a),c=g*o+s,h=g*d+f,!(a-g<5e-8));)a=1/(a-g),s=o,o=c,f=d,d=h;if(h>t&&(d>t?(h=f,c=s):(h=d,c=o)),!r)return[0,n*c,h];var x=Math.floor(n*c/h);return[x,n*c-x*h,h]}function Al(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),s=0,o=[],c={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),t&&t.date1904&&(n+=1462),c.u>.9999&&(c.u=0,++a==86400&&(c.T=a=0,++n,++c.D)),n===60)o=r?[1317,10,29]:[1900,2,29],s=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],s=6;else{n>60&&--n;var f=new Date(1900,0,1);f.setDate(f.getDate()+n-1),o=[f.getFullYear(),f.getMonth()+1,f.getDate()],s=f.getDay(),n<60&&(s=(s+6)%7),r&&(s=lV(f,o))}return c.y=o[0],c.m=o[1],c.d=o[2],c.S=a%60,a=Math.floor(a/60),c.M=a%60,a=Math.floor(a/60),c.H=a,c.q=s,c}var z3=new Date(1899,11,31,0,0,0),nV=z3.getTime(),aV=new Date(1900,2,1,0,0,0);function U3(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=aV&&(r+=1440*60*1e3),(r-(nV+(e.getTimezoneOffset()-z3.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Iy(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function iV(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function sV(e){var t=e<0?12:11,r=Iy(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function oV(e){var t=Iy(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Ed(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=sV(e):t===10?r=e.toFixed(10).substr(0,12):r=oV(e),Iy(iV(r.toUpperCase()))}function zl(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Ed(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Fi(14,U3(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function lV(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function cV(e,t,r,n){var a="",s=0,o=0,c=r.y,f,d=0;switch(e){case 98:c=r.y+543;case 121:switch(t.length){case 1:case 2:f=c%100,d=2;break;default:f=c%1e4,d=4;break}break;case 109:switch(t.length){case 1:case 2:f=r.m,d=t.length;break;case 3:return ox[r.m-1][1];case 5:return ox[r.m-1][0];default:return ox[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:f=r.d,d=t.length;break;case 3:return UE[r.q][0];default:return UE[r.q][1]}break;case 104:switch(t.length){case 1:case 2:f=1+(r.H+11)%12,d=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:f=r.H,d=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:f=r.M,d=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")?Vi(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,s=Math.round(o*(r.S+r.u)),s>=60*o&&(s=0),t==="s"?s===0?"0":""+s/o:(a=Vi(s,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":f=r.D*24+r.H;break;case"[m]":case"[mm]":f=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":f=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}d=t.length===3?1:2;break;case 101:f=c,d=1;break}var h=d>0?Vi(f,d):"";return h}function No(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 $3=/%/g;function uV(e,t,r){var n=t.replace($3,""),a=t.length-n.length;return zs(e,n,r*Math.pow(10,2*a))+Kr("%",a)}function fV(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return zs(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function H3(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"-"+H3(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%a;if(s<0&&(s+=a),r=(t/Math.pow(10,s)).toPrecision(n+1+(a+s)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+s):r+="E+"+(o-s);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,f,d,h){return f+d+h.substr(0,(a+s)%a)+"."+h.substr(s)+"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 W3=/# (\?+)( ?)\/( ?)(\d+)/;function dV(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),s=Math.floor(a/n),o=a-s*n,c=n;return r+(s===0?"":""+s)+" "+(o===0?Kr(" ",e[1].length+1+e[4].length):Ly(o,e[1].length)+e[2]+"/"+e[3]+Vi(c,e[4].length))}function hV(e,t,r){return r+(t===0?"":""+t)+Kr(" ",e[1].length+2+e[4].length)}var V3=/^#*0*\.([0#]+)/,G3=/\).*[0#]/,X3=/\(###\) ###\\?-####/;function ua(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 HE(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function WE(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 pV(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function mV(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function vi(e,t,r){if(e.charCodeAt(0)===40&&!t.match(G3)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?vi("n",n,r):"("+vi("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return fV(e,t,r);if(t.indexOf("%")!==-1)return uV(e,t,r);if(t.indexOf("E")!==-1)return H3(t,r);if(t.charCodeAt(0)===36)return"$"+vi(e,t.substr(t.charAt(1)==" "?2:1),r);var a,s,o,c,f=Math.abs(r),d=r<0?"-":"";if(t.match(/^00+$/))return d+Bc(f,t.length);if(t.match(/^[#?]+$/))return a=Bc(r,0),a==="0"&&(a=""),a.length>t.length?a:ua(t.substr(0,t.length-a.length))+a;if(s=t.match(W3))return dV(s,f,d);if(t.match(/^#+0+$/))return d+Bc(f,t.length-t.indexOf("0"));if(s=t.match(V3))return a=HE(r,s[1].length).replace(/^([^\.]+)$/,"$1."+ua(s[1])).replace(/\.$/,"."+ua(s[1])).replace(/\.(\d*)$/,function(b,v){return"."+v+Kr("0",ua(s[1]).length-v.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return d+HE(f,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return d+No(Bc(f,0));if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+vi(e,t,-r):No(""+(Math.floor(r)+pV(r,s[1].length)))+"."+Vi(WE(r,s[1].length),s[1].length);if(s=t.match(/^#,#*,#0/))return vi(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=eu(vi(e,t.replace(/[\\-]/g,""),r)),o=0,eu(eu(t.replace(/\\/g,"")).replace(/[0#]/g,function(b){return o<a.length?a.charAt(o++):b==="0"?"0":""}));if(t.match(X3))return a=vi(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var h="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),c=Rp(f,Math.pow(10,o)-1,!1),a=""+d,h=zs("n",s[1],c[1]),h.charAt(h.length-1)==" "&&(h=h.substr(0,h.length-1)+"0"),a+=h+s[2]+"/"+s[3],h=kp(c[2],o),h.length<s[4].length&&(h=ua(s[4].substr(s[4].length-h.length))+h),a+=h,a;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),c=Rp(f,Math.pow(10,o)-1,!0),d+(c[0]||(c[1]?"":"0"))+" "+(c[1]?Ly(c[1],o)+s[2]+"/"+s[3]+kp(c[2],o):Kr(" ",2*o+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return a=Bc(r,0),t.length<=a.length?a:ua(t.substr(0,t.length-a.length))+a;if(s=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var g=t.indexOf(".")-o,x=t.length-a.length-g;return ua(t.substr(0,g)+a+t.substr(t.length-x))}if(s=t.match(/^00,000\.([#0]*0)$/))return o=WE(r,s[1].length),r<0?"-"+vi(e,t,-r):No(mV(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(b){return"00,"+(b.length<3?Vi(0,3-b.length):"")+b})+"."+Vi(o,s[1].length);switch(t){case"###,##0.00":return vi(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var y=No(Bc(f,0));return y!=="0"?d+y:"";case"###,###.00":return vi(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return vi(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function gV(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return zs(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function xV(e,t,r){var n=t.replace($3,""),a=t.length-n.length;return zs(e,n,r*Math.pow(10,2*a))+Kr("%",a)}function Y3(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"-"+Y3(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%a;if(s<0&&(s+=a),r=(t/Math.pow(10,s)).toPrecision(n+1+(a+s)%a),!r.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+s):r+="E+"+(o-s),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,f,d,h){return f+d+h.substr(0,(a+s)%a)+"."+h.substr(s)+"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 os(e,t,r){if(e.charCodeAt(0)===40&&!t.match(G3)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?os("n",n,r):"("+os("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return gV(e,t,r);if(t.indexOf("%")!==-1)return xV(e,t,r);if(t.indexOf("E")!==-1)return Y3(t,r);if(t.charCodeAt(0)===36)return"$"+os(e,t.substr(t.charAt(1)==" "?2:1),r);var a,s,o,c,f=Math.abs(r),d=r<0?"-":"";if(t.match(/^00+$/))return d+Vi(f,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:ua(t.substr(0,t.length-a.length))+a;if(s=t.match(W3))return hV(s,f,d);if(t.match(/^#+0+$/))return d+Vi(f,t.length-t.indexOf("0"));if(s=t.match(V3))return a=(""+r).replace(/^([^\.]+)$/,"$1."+ua(s[1])).replace(/\.$/,"."+ua(s[1])),a=a.replace(/\.(\d*)$/,function(b,v){return"."+v+Kr("0",ua(s[1]).length-v.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return d+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return d+No(""+f);if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+os(e,t,-r):No(""+r)+"."+Kr("0",s[1].length);if(s=t.match(/^#,#*,#0/))return os(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=eu(os(e,t.replace(/[\\-]/g,""),r)),o=0,eu(eu(t.replace(/\\/g,"")).replace(/[0#]/g,function(b){return o<a.length?a.charAt(o++):b==="0"?"0":""}));if(t.match(X3))return a=os(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var h="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),c=Rp(f,Math.pow(10,o)-1,!1),a=""+d,h=zs("n",s[1],c[1]),h.charAt(h.length-1)==" "&&(h=h.substr(0,h.length-1)+"0"),a+=h+s[2]+"/"+s[3],h=kp(c[2],o),h.length<s[4].length&&(h=ua(s[4].substr(s[4].length-h.length))+h),a+=h,a;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),c=Rp(f,Math.pow(10,o)-1,!0),d+(c[0]||(c[1]?"":"0"))+" "+(c[1]?Ly(c[1],o)+s[2]+"/"+s[3]+kp(c[2],o):Kr(" ",2*o+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:ua(t.substr(0,t.length-a.length))+a;if(s=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var g=t.indexOf(".")-o,x=t.length-a.length-g;return ua(t.substr(0,g)+a+t.substr(t.length-x))}if(s=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+os(e,t,-r):No(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(b){return"00,"+(b.length<3?Vi(0,3-b.length):"")+b})+"."+Vi(0,s[1].length);switch(t){case"###,###":case"##,###":case"#,###":var y=No(""+f);return y!=="0"?d+y:"";default:if(t.match(/\.[0#?]*$/))return os(e,t.slice(0,t.lastIndexOf(".")),r)+ua(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function zs(e,t,r){return(r|0)===r?os(e,t,r):vi(e,t,r)}function vV(e){for(var t=[],r=!1,n=0,a=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(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var q3=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function wu(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Ap(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(q3))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 yV(e,t,r,n){for(var a=[],s="",o=0,c="",f="t",d,h,g,x="H";o<e.length;)switch(c=e.charAt(o)){case"G":if(!Ap(e,o))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"G",v:"General"},o+=7;break;case'"':for(s="";(g=e.charCodeAt(++o))!==34&&o<e.length;)s+=String.fromCharCode(g);a[a.length]={t:"t",v:s},++o;break;case"\\":var y=e.charAt(++o),b=y==="("||y===")"?y:"t";a[a.length]={t:b,v:y},++o;break;case"_":a[a.length]={t:"t",v:" "},o+=2;break;case"@":a[a.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(d==null&&(d=Al(t,r,e.charAt(o+1)==="2"),d==null))return"";a[a.length]={t:"X",v:e.substr(o,2)},f=c,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||d==null&&(d=Al(t,r),d==null))return"";for(s=c;++o<e.length&&e.charAt(o).toLowerCase()===c;)s+=c;c==="m"&&f.toLowerCase()==="h"&&(c="M"),c==="h"&&(c=x),a[a.length]={t:c,v:s},f=c;break;case"A":case"a":case"上":var v={t:c,v:c};if(d==null&&(d=Al(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(d!=null&&(v.v=d.H>=12?"P":"A"),v.t="T",x="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(d!=null&&(v.v=d.H>=12?"PM":"AM"),v.t="T",o+=5,x="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(d!=null&&(v.v=d.H>=12?"下午":"上午"),v.t="T",o+=5,x="h"):(v.t="t",++o),d==null&&v.t==="T")return"";a[a.length]=v,f=c;break;case"[":for(s=c;e.charAt(o++)!=="]"&&o<e.length;)s+=e.charAt(o);if(s.slice(-1)!=="]")throw'unterminated "[" block: |'+s+"|";if(s.match(q3)){if(d==null&&(d=Al(t,r),d==null))return"";a[a.length]={t:"Z",v:s.toLowerCase()},f=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",wu(e)||(a[a.length]={t:"t",v:s}));break;case".":if(d!=null){for(s=c;++o<e.length&&(c=e.charAt(o))==="0";)s+=c;a[a.length]={t:"s",v:s};break}case"0":case"#":for(s=c;++o<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(o))>-1;)s+=c;a[a.length]={t:"n",v:s};break;case"?":for(s=c;e.charAt(++o)===c;)s+=c;a[a.length]={t:c,v:s},f=c;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":c,v:c},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=c;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)s+=e.charAt(o);a[a.length]={t:"D",v:s};break;case" ":a[a.length]={t:c,v:c},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c)===-1)throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++o;break}var w=0,C=0,k;for(o=a.length-1,f="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=x,f="h",w<1&&(w=1);break;case"s":(k=a[o].v.match(/\.0+$/))&&(C=Math.max(C,k[0].length-1)),w<3&&(w=3);case"d":case"y":case"M":case"e":f=a[o].t;break;case"m":f==="s"&&(a[o].t="M",w<2&&(w=2));break;case"X":break;case"Z":w<1&&a[o].v.match(/[Hh]/)&&(w=1),w<2&&a[o].v.match(/[Mm]/)&&(w=2),w<3&&a[o].v.match(/[Ss]/)&&(w=3)}switch(w){case 0:break;case 1:d.u>=.5&&(d.u=0,++d.S),d.S>=60&&(d.S=0,++d.M),d.M>=60&&(d.M=0,++d.H);break;case 2:d.u>=.5&&(d.u=0,++d.S),d.S>=60&&(d.S=0,++d.M);break}var E="",D;for(o=0;o<a.length;++o)switch(a[o].t){case"t":case"T":case" ":case"D":break;case"X":a[o].v="",a[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[o].v=cV(a[o].t.charCodeAt(0),a[o].v,d,C),a[o].t="t";break;case"n":case"?":for(D=o+1;a[D]!=null&&((c=a[D].t)==="?"||c==="D"||(c===" "||c==="t")&&a[D+1]!=null&&(a[D+1].t==="?"||a[D+1].t==="t"&&a[D+1].v==="/")||a[o].t==="("&&(c===" "||c==="n"||c===")")||c==="t"&&(a[D].v==="/"||a[D].v===" "&&a[D+1]!=null&&a[D+1].t=="?"));)a[o].v+=a[D].v,a[D]={v:"",t:";"},++D;E+=a[o].v,o=D-1;break;case"G":a[o].t="t",a[o].v=zl(t,r);break}var M="",A,O;if(E.length>0){E.charCodeAt(0)==40?(A=t<0&&E.charCodeAt(0)===45?-t:t,O=zs("n",E,A)):(A=t<0&&n>1?-t:t,O=zs("n",E,A),A<0&&a[0]&&a[0].t=="t"&&(O=O.substr(1),a[0].v="-"+a[0].v)),D=O.length-1;var N=a.length;for(o=0;o<a.length;++o)if(a[o]!=null&&a[o].t!="t"&&a[o].v.indexOf(".")>-1){N=o;break}var F=a.length;if(N===a.length&&O.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(D>=a[o].v.length-1?(D-=a[o].v.length,a[o].v=O.substr(D+1,a[o].v.length)):D<0?a[o].v="":(a[o].v=O.substr(0,D+1),D=-1),a[o].t="t",F=o);D>=0&&F<a.length&&(a[F].v=O.substr(0,D+1)+a[F].v)}else if(N!==a.length&&O.indexOf("E")===-1){for(D=O.indexOf(".")-1,o=N;o>=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(h=a[o].v.indexOf(".")>-1&&o===N?a[o].v.indexOf(".")-1:a[o].v.length-1,M=a[o].v.substr(h+1);h>=0;--h)D>=0&&(a[o].v.charAt(h)==="0"||a[o].v.charAt(h)==="#")&&(M=O.charAt(D--)+M);a[o].v=M,a[o].t="t",F=o}for(D>=0&&F<a.length&&(a[F].v=O.substr(0,D+1)+a[F].v),D=O.indexOf(".")+1,o=N;o<a.length;++o)if(!(a[o]==null||"n?(".indexOf(a[o].t)===-1&&o!==N)){for(h=a[o].v.indexOf(".")>-1&&o===N?a[o].v.indexOf(".")+1:0,M=a[o].v.substr(0,h);h<a[o].v.length;++h)D<O.length&&(M+=O.charAt(D++));a[o].v=M,a[o].t="t",F=o}}}for(o=0;o<a.length;++o)a[o]!=null&&"n?".indexOf(a[o].t)>-1&&(A=n>1&&t<0&&o>0&&a[o-1].v==="-"?-t:t,a[o].v=zs(a[o].t,a[o].v,A),a[o].t="t");var P="";for(o=0;o!==a.length;++o)a[o]!=null&&(P+=a[o].v);return P}var VE=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function GE(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 bV(e,t){var r=vV(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var s=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,s];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(VE),c=r[1].match(VE);return GE(t,o)?[n,r[0]]:GE(t,c)?[n,r[1]]:[n,r[o!=null&&c!=null?2:1]]}return[n,s]}function Fi(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:Ft)[e],n==null&&(n=r.table&&r.table[$E[e]]||Ft[$E[e]]),n==null&&(n=rV[e]||"General");break}if(Ap(n,0))return zl(t,r);t instanceof Date&&(t=U3(t,r.date1904));var a=bV(n,t);if(Ap(a[1]))return zl(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return yV(a[1],t,r,a[0])}function Us(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Ft[r]==null){t<0&&(t=r);continue}if(Ft[r]==e){t=r;break}}t<0&&(t=391)}return Ft[t]=e,t}function ym(e){for(var t=0;t!=392;++t)e[t]!==void 0&&Us(e[t],t)}function Tu(){Ft=tV()}var SV={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"},K3=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function wV(e){var t=typeof e=="number"?Ft[e]:e;return t=t.replace(K3,"(\\d+)"),new RegExp("^"+t+"$")}function TV(e,t,r){var n=-1,a=-1,s=-1,o=-1,c=-1,f=-1;(t.match(K3)||[]).forEach(function(g,x){var y=parseInt(r[x+1],10);switch(g.toLowerCase().charAt(0)){case"y":n=y;break;case"d":s=y;break;case"h":o=y;break;case"s":f=y;break;case"m":o>=0?c=y:a=y;break}}),f>=0&&c==-1&&a>=0&&(c=a,a=-1);var d=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);d.length==7&&(d="0"+d),d.length==8&&(d="20"+d);var h=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);return o==-1&&c==-1&&f==-1?d:n==-1&&a==-1&&s==-1?h:d+"T"+h}var CV=(function(){var e={};e.version="1.2.0";function t(){for(var O=0,N=new Array(256),F=0;F!=256;++F)O=F,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,N[F]=O;return typeof Int32Array<"u"?new Int32Array(N):N}var r=t();function n(O){var N=0,F=0,P=0,j=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(P=0;P!=256;++P)j[P]=O[P];for(P=0;P!=256;++P)for(F=O[P],N=256+P;N<4096;N+=256)F=j[N]=F>>>8^O[F&255];var R=[];for(P=1;P!=16;++P)R[P-1]=typeof Int32Array<"u"?j.subarray(P*256,P*256+256):j.slice(P*256,P*256+256);return R}var a=n(r),s=a[0],o=a[1],c=a[2],f=a[3],d=a[4],h=a[5],g=a[6],x=a[7],y=a[8],b=a[9],v=a[10],w=a[11],C=a[12],k=a[13],E=a[14];function D(O,N){for(var F=N^-1,P=0,j=O.length;P<j;)F=F>>>8^r[(F^O.charCodeAt(P++))&255];return~F}function M(O,N){for(var F=N^-1,P=O.length-15,j=0;j<P;)F=E[O[j++]^F&255]^k[O[j++]^F>>8&255]^C[O[j++]^F>>16&255]^w[O[j++]^F>>>24]^v[O[j++]]^b[O[j++]]^y[O[j++]]^x[O[j++]]^g[O[j++]]^h[O[j++]]^d[O[j++]]^f[O[j++]]^c[O[j++]]^o[O[j++]]^s[O[j++]]^r[O[j++]];for(P+=15;j<P;)F=F>>>8^r[(F^O[j++])&255];return~F}function A(O,N){for(var F=N^-1,P=0,j=O.length,R=0,W=0;P<j;)R=O.charCodeAt(P++),R<128?F=F>>>8^r[(F^R)&255]:R<2048?(F=F>>>8^r[(F^(192|R>>6&31))&255],F=F>>>8^r[(F^(128|R&63))&255]):R>=55296&&R<57344?(R=(R&1023)+64,W=O.charCodeAt(P++)&1023,F=F>>>8^r[(F^(240|R>>8&7))&255],F=F>>>8^r[(F^(128|R>>2&63))&255],F=F>>>8^r[(F^(128|W>>6&15|(R&3)<<4))&255],F=F>>>8^r[(F^(128|W&63))&255]):(F=F>>>8^r[(F^(224|R>>12&15))&255],F=F>>>8^r[(F^(128|R>>6&63))&255],F=F>>>8^r[(F^(128|R&63))&255]);return~F}return e.table=r,e.bstr=D,e.buf=M,e.str=A,e})(),kt=(function(){var t={};t.version="1.2.1";function r(I,q){for(var V=I.split("/"),X=q.split("/"),J=0,re=0,ge=Math.min(V.length,X.length);J<ge;++J){if(re=V[J].length-X[J].length)return re;if(V[J]!=X[J])return V[J]<X[J]?-1:1}return V.length-X.length}function n(I){if(I.charAt(I.length-1)=="/")return I.slice(0,-1).indexOf("/")===-1?I:n(I.slice(0,-1));var q=I.lastIndexOf("/");return q===-1?I:I.slice(0,q+1)}function a(I){if(I.charAt(I.length-1)=="/")return a(I.slice(0,-1));var q=I.lastIndexOf("/");return q===-1?I:I.slice(q+1)}function s(I,q){typeof q=="string"&&(q=new Date(q));var V=q.getHours();V=V<<6|q.getMinutes(),V=V<<5|q.getSeconds()>>>1,I.write_shift(2,V);var X=q.getFullYear()-1980;X=X<<4|q.getMonth()+1,X=X<<5|q.getDate(),I.write_shift(2,X)}function o(I){var q=I.read_shift(2)&65535,V=I.read_shift(2)&65535,X=new Date,J=V&31;V>>>=5;var re=V&15;V>>>=4,X.setMilliseconds(0),X.setFullYear(V+1980),X.setMonth(re-1),X.setDate(J);var ge=q&31;q>>>=5;var ke=q&63;return q>>>=6,X.setHours(q),X.setMinutes(ke),X.setSeconds(ge<<1),X}function c(I){In(I,0);for(var q={},V=0;I.l<=I.length-4;){var X=I.read_shift(2),J=I.read_shift(2),re=I.l+J,ge={};switch(X){case 21589:V=I.read_shift(1),V&1&&(ge.mtime=I.read_shift(4)),J>5&&(V&2&&(ge.atime=I.read_shift(4)),V&4&&(ge.ctime=I.read_shift(4))),ge.mtime&&(ge.mt=new Date(ge.mtime*1e3));break}I.l=re,q[X]=ge}return q}var f;function d(){return f||(f={})}function h(I,q){if(I[0]==80&&I[1]==75)return Li(I,q);if((I[0]|32)==109&&(I[1]|32)==105)return oe(I,q);if(I.length<512)throw new Error("CFB file size "+I.length+" < 512");var V=3,X=512,J=0,re=0,ge=0,ke=0,de=0,pe=[],we=I.slice(0,512);In(we,0);var $e=g(we);switch(V=$e[0],V){case 3:X=512;break;case 4:X=4096;break;case 0:if($e[1]==0)return Li(I,q);default:throw new Error("Major Version: Expected 3 or 4 saw "+V)}X!==512&&(we=I.slice(0,X),In(we,28));var Xe=I.slice(0,X);x(we,V);var Je=we.read_shift(4,"i");if(V===3&&Je!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Je);we.l+=4,ge=we.read_shift(4,"i"),we.l+=4,we.chk("00100000","Mini Stream Cutoff Size: "),ke=we.read_shift(4,"i"),J=we.read_shift(4,"i"),de=we.read_shift(4,"i"),re=we.read_shift(4,"i");for(var Ye=-1,et=0;et<109&&(Ye=we.read_shift(4,"i"),!(Ye<0));++et)pe[et]=Ye;var Rt=y(I,X);w(de,re,Rt,X,pe);var ar=k(Rt,ge,pe,X);ar[ge].name="!Directory",J>0&&ke!==W&&(ar[ke].name="!MiniFAT"),ar[pe[0]].name="!FAT",ar.fat_addrs=pe,ar.ssz=X;var ir={},St=[],Mr=[],Ba=[];E(ge,ar,Rt,St,J,ir,Mr,ke),b(Mr,Ba,St),St.shift();var Tn={FileIndex:Mr,FullPaths:Ba};return q&&q.raw&&(Tn.raw={header:Xe,sectors:Rt}),Tn}function g(I){if(I[I.l]==80&&I[I.l+1]==75)return[0,0];I.chk(Y,"Header Signature: "),I.l+=16;var q=I.read_shift(2,"u");return[I.read_shift(2,"u"),q]}function x(I,q){var V=9;switch(I.l+=2,V=I.read_shift(2)){case 9:if(q!=3)throw new Error("Sector Shift: Expected 9 saw "+V);break;case 12:if(q!=4)throw new Error("Sector Shift: Expected 12 saw "+V);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+V)}I.chk("0600","Mini Sector Shift: "),I.chk("000000000000","Reserved: ")}function y(I,q){for(var V=Math.ceil(I.length/q)-1,X=[],J=1;J<V;++J)X[J-1]=I.slice(J*q,(J+1)*q);return X[V-1]=I.slice(V*q),X}function b(I,q,V){for(var X=0,J=0,re=0,ge=0,ke=0,de=V.length,pe=[],we=[];X<de;++X)pe[X]=we[X]=X,q[X]=V[X];for(;ke<we.length;++ke)X=we[ke],J=I[X].L,re=I[X].R,ge=I[X].C,pe[X]===X&&(J!==-1&&pe[J]!==J&&(pe[X]=pe[J]),re!==-1&&pe[re]!==re&&(pe[X]=pe[re])),ge!==-1&&(pe[ge]=X),J!==-1&&X!=pe[X]&&(pe[J]=pe[X],we.lastIndexOf(J)<ke&&we.push(J)),re!==-1&&X!=pe[X]&&(pe[re]=pe[X],we.lastIndexOf(re)<ke&&we.push(re));for(X=1;X<de;++X)pe[X]===X&&(re!==-1&&pe[re]!==re?pe[X]=pe[re]:J!==-1&&pe[J]!==J&&(pe[X]=pe[J]));for(X=1;X<de;++X)if(I[X].type!==0){if(ke=X,ke!=pe[ke])do ke=pe[ke],q[X]=q[ke]+"/"+q[X];while(ke!==0&&pe[ke]!==-1&&ke!=pe[ke]);pe[X]=-1}for(q[0]+="/",X=1;X<de;++X)I[X].type!==2&&(q[X]+="/")}function v(I,q,V){for(var X=I.start,J=I.size,re=[],ge=X;V&&J>0&&ge>=0;)re.push(q.slice(ge*R,ge*R+R)),J-=R,ge=Tl(V,ge*4);return re.length===0?Ne(0):Rn(re).slice(0,I.size)}function w(I,q,V,X,J){var re=W;if(I===W){if(q!==0)throw new Error("DIFAT chain shorter than expected")}else if(I!==-1){var ge=V[I],ke=(X>>>2)-1;if(!ge)return;for(var de=0;de<ke&&(re=Tl(ge,de*4))!==W;++de)J.push(re);w(Tl(ge,X-4),q-1,V,X,J)}}function C(I,q,V,X,J){var re=[],ge=[];J||(J=[]);var ke=X-1,de=0,pe=0;for(de=q;de>=0;){J[de]=!0,re[re.length]=de,ge.push(I[de]);var we=V[Math.floor(de*4/X)];if(pe=de*4&ke,X<4+pe)throw new Error("FAT boundary crossed: "+de+" 4 "+X);if(!I[we])break;de=Tl(I[we],pe)}return{nodes:re,data:a4([ge])}}function k(I,q,V,X){var J=I.length,re=[],ge=[],ke=[],de=[],pe=X-1,we=0,$e=0,Xe=0,Je=0;for(we=0;we<J;++we)if(ke=[],Xe=we+q,Xe>=J&&(Xe-=J),!ge[Xe]){de=[];var Ye=[];for($e=Xe;$e>=0;){Ye[$e]=!0,ge[$e]=!0,ke[ke.length]=$e,de.push(I[$e]);var et=V[Math.floor($e*4/X)];if(Je=$e*4&pe,X<4+Je)throw new Error("FAT boundary crossed: "+$e+" 4 "+X);if(!I[et]||($e=Tl(I[et],Je),Ye[$e]))break}re[Xe]={nodes:ke,data:a4([de])}}return re}function E(I,q,V,X,J,re,ge,ke){for(var de=0,pe=X.length?2:0,we=q[I].data,$e=0,Xe=0,Je;$e<we.length;$e+=128){var Ye=we.slice($e,$e+128);In(Ye,64),Xe=Ye.read_shift(2),Je=Vy(Ye,0,Xe-pe),X.push(Je);var et={name:Je,type:Ye.read_shift(1),color:Ye.read_shift(1),L:Ye.read_shift(4,"i"),R:Ye.read_shift(4,"i"),C:Ye.read_shift(4,"i"),clsid:Ye.read_shift(16),state:Ye.read_shift(4,"i"),start:0,size:0},Rt=Ye.read_shift(2)+Ye.read_shift(2)+Ye.read_shift(2)+Ye.read_shift(2);Rt!==0&&(et.ct=D(Ye,Ye.l-8));var ar=Ye.read_shift(2)+Ye.read_shift(2)+Ye.read_shift(2)+Ye.read_shift(2);ar!==0&&(et.mt=D(Ye,Ye.l-8)),et.start=Ye.read_shift(4,"i"),et.size=Ye.read_shift(4,"i"),et.size<0&&et.start<0&&(et.size=et.type=0,et.start=W,et.name=""),et.type===5?(de=et.start,J>0&&de!==W&&(q[de].name="!StreamData")):et.size>=4096?(et.storage="fat",q[et.start]===void 0&&(q[et.start]=C(V,et.start,q.fat_addrs,q.ssz)),q[et.start].name=et.name,et.content=q[et.start].data.slice(0,et.size)):(et.storage="minifat",et.size<0?et.size=0:de!==W&&et.start!==W&&q[de]&&(et.content=v(et,q[de].data,(q[ke]||{}).data))),et.content&&In(et.content,0),re[Je]=et,ge.push(et)}}function D(I,q){return new Date((qa(I,q+4)/1e7*Math.pow(2,32)+qa(I,q)/1e7-11644473600)*1e3)}function M(I,q){return d(),h(f.readFileSync(I),q)}function A(I,q){var V=q&&q.type;switch(V||Gt&&Buffer.isBuffer(I)&&(V="buffer"),V||"base64"){case"file":return M(I,q);case"base64":return h(Za(ni(I)),q);case"binary":return h(Za(I),q)}return h(I,q)}function O(I,q){var V=q||{},X=V.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]=X+"/",I.FileIndex[0]={name:X,type:5}),V.CLSID&&(I.FileIndex[0].clsid=V.CLSID),N(I)}function N(I){var q="Sh33tJ5";if(!kt.find(I,"/"+q)){var V=Ne(4);V[0]=55,V[1]=V[3]=50,V[2]=54,I.FileIndex.push({name:q,type:2,content:V,size:4,L:69,R:69,C:69}),I.FullPaths.push(I.FullPaths[0]+q),F(I)}}function F(I,q){O(I);for(var V=!1,X=!1,J=I.FullPaths.length-1;J>=0;--J){var re=I.FileIndex[J];switch(re.type){case 0:X?V=!0:(I.FileIndex.pop(),I.FullPaths.pop());break;case 1:case 2:case 5:X=!0,isNaN(re.R*re.L*re.C)&&(V=!0),re.R>-1&&re.L>-1&&re.R==re.L&&(V=!0);break;default:V=!0;break}}if(!(!V&&!q)){var ge=new Date(1987,1,19),ke=0,de=Object.create?Object.create(null):{},pe=[];for(J=0;J<I.FullPaths.length;++J)de[I.FullPaths[J]]=!0,I.FileIndex[J].type!==0&&pe.push([I.FullPaths[J],I.FileIndex[J]]);for(J=0;J<pe.length;++J){var we=n(pe[J][0]);X=de[we],X||(pe.push([we,{name:a(we).replace("/",""),type:1,clsid:B,ct:ge,mt:ge,content:null}]),de[we]=!0)}for(pe.sort(function(Je,Ye){return r(Je[0],Ye[0])}),I.FullPaths=[],I.FileIndex=[],J=0;J<pe.length;++J)I.FullPaths[J]=pe[J][0],I.FileIndex[J]=pe[J][1];for(J=0;J<pe.length;++J){var $e=I.FileIndex[J],Xe=I.FullPaths[J];if($e.name=a(Xe).replace("/",""),$e.L=$e.R=$e.C=-($e.color=1),$e.size=$e.content?$e.content.length:0,$e.start=0,$e.clsid=$e.clsid||B,J===0)$e.C=pe.length>1?1:-1,$e.size=0,$e.type=5;else if(Xe.slice(-1)=="/"){for(ke=J+1;ke<pe.length&&n(I.FullPaths[ke])!=Xe;++ke);for($e.C=ke>=pe.length?-1:ke,ke=J+1;ke<pe.length&&n(I.FullPaths[ke])!=n(Xe);++ke);$e.R=ke>=pe.length?-1:ke,$e.type=1}else n(I.FullPaths[J+1]||"")==n(Xe)&&($e.R=J+1),$e.type=2}}}function P(I,q){var V=q||{};if(V.fileType=="mad")return fe(I,V);switch(F(I),V.fileType){case"zip":return sa(I,V)}var X=(function(Je){for(var Ye=0,et=0,Rt=0;Rt<Je.FileIndex.length;++Rt){var ar=Je.FileIndex[Rt];if(ar.content){var ir=ar.content.length;ir>0&&(ir<4096?Ye+=ir+63>>6:et+=ir+511>>9)}}for(var St=Je.FullPaths.length+3>>2,Mr=Ye+7>>3,Ba=Ye+127>>7,Tn=Mr+et+St+Ba,ur=Tn+127>>7,si=ur<=109?0:Math.ceil((ur-109)/127);Tn+ur+si+127>>7>ur;)si=++ur<=109?0:Math.ceil((ur-109)/127);var va=[1,si,ur,Ba,St,et,Ye,0];return Je.FileIndex[0].size=Ye<<6,va[7]=(Je.FileIndex[0].start=va[0]+va[1]+va[2]+va[3]+va[4]+va[5])+(va[6]+7>>3),va})(I),J=Ne(X[7]<<9),re=0,ge=0;{for(re=0;re<8;++re)J.write_shift(1,Z[re]);for(re=0;re<8;++re)J.write_shift(2,0);for(J.write_shift(2,62),J.write_shift(2,3),J.write_shift(2,65534),J.write_shift(2,9),J.write_shift(2,6),re=0;re<3;++re)J.write_shift(2,0);for(J.write_shift(4,0),J.write_shift(4,X[2]),J.write_shift(4,X[0]+X[1]+X[2]+X[3]-1),J.write_shift(4,0),J.write_shift(4,4096),J.write_shift(4,X[3]?X[0]+X[1]+X[2]-1:W),J.write_shift(4,X[3]),J.write_shift(-4,X[1]?X[0]-1:W),J.write_shift(4,X[1]),re=0;re<109;++re)J.write_shift(-4,re<X[2]?X[1]+re:-1)}if(X[1])for(ge=0;ge<X[1];++ge){for(;re<236+ge*127;++re)J.write_shift(-4,re<X[2]?X[1]+re:-1);J.write_shift(-4,ge===X[1]-1?W:ge+1)}var ke=function(Je){for(ge+=Je;re<ge-1;++re)J.write_shift(-4,re+1);Je&&(++re,J.write_shift(-4,W))};for(ge=re=0,ge+=X[1];re<ge;++re)J.write_shift(-4,ne.DIFSECT);for(ge+=X[2];re<ge;++re)J.write_shift(-4,ne.FATSECT);ke(X[3]),ke(X[4]);for(var de=0,pe=0,we=I.FileIndex[0];de<I.FileIndex.length;++de)we=I.FileIndex[de],we.content&&(pe=we.content.length,!(pe<4096)&&(we.start=ge,ke(pe+511>>9)));for(ke(X[6]+7>>3);J.l&511;)J.write_shift(-4,ne.ENDOFCHAIN);for(ge=re=0,de=0;de<I.FileIndex.length;++de)we=I.FileIndex[de],we.content&&(pe=we.content.length,!(!pe||pe>=4096)&&(we.start=ge,ke(pe+63>>6)));for(;J.l&511;)J.write_shift(-4,ne.ENDOFCHAIN);for(re=0;re<X[4]<<2;++re){var $e=I.FullPaths[re];if(!$e||$e.length===0){for(de=0;de<17;++de)J.write_shift(4,0);for(de=0;de<3;++de)J.write_shift(4,-1);for(de=0;de<12;++de)J.write_shift(4,0);continue}we=I.FileIndex[re],re===0&&(we.start=we.size?we.start-1:W);var Xe=re===0&&V.root||we.name;if(pe=2*(Xe.length+1),J.write_shift(64,Xe,"utf16le"),J.write_shift(2,pe),J.write_shift(1,we.type),J.write_shift(1,we.color),J.write_shift(-4,we.L),J.write_shift(-4,we.R),J.write_shift(-4,we.C),we.clsid)J.write_shift(16,we.clsid,"hex");else for(de=0;de<4;++de)J.write_shift(4,0);J.write_shift(4,we.state||0),J.write_shift(4,0),J.write_shift(4,0),J.write_shift(4,0),J.write_shift(4,0),J.write_shift(4,we.start),J.write_shift(4,we.size),J.write_shift(4,0)}for(re=1;re<I.FileIndex.length;++re)if(we=I.FileIndex[re],we.size>=4096)if(J.l=we.start+1<<9,Gt&&Buffer.isBuffer(we.content))we.content.copy(J,J.l,0,we.size),J.l+=we.size+511&-512;else{for(de=0;de<we.size;++de)J.write_shift(1,we.content[de]);for(;de&511;++de)J.write_shift(1,0)}for(re=1;re<I.FileIndex.length;++re)if(we=I.FileIndex[re],we.size>0&&we.size<4096)if(Gt&&Buffer.isBuffer(we.content))we.content.copy(J,J.l,0,we.size),J.l+=we.size+63&-64;else{for(de=0;de<we.size;++de)J.write_shift(1,we.content[de]);for(;de&63;++de)J.write_shift(1,0)}if(Gt)J.l=J.length;else for(;J.l<J.length;)J.write_shift(1,0);return J}function j(I,q){var V=I.FullPaths.map(function(de){return de.toUpperCase()}),X=V.map(function(de){var pe=de.split("/");return pe[pe.length-(de.slice(-1)=="/"?2:1)]}),J=!1;q.charCodeAt(0)===47?(J=!0,q=V[0].slice(0,-1)+q):J=q.indexOf("/")!==-1;var re=q.toUpperCase(),ge=J===!0?V.indexOf(re):X.indexOf(re);if(ge!==-1)return I.FileIndex[ge];var ke=!re.match(Uf);for(re=re.replace(ma,""),ke&&(re=re.replace(Uf,"!")),ge=0;ge<V.length;++ge)if((ke?V[ge].replace(Uf,"!"):V[ge]).replace(ma,"")==re||(ke?X[ge].replace(Uf,"!"):X[ge]).replace(ma,"")==re)return I.FileIndex[ge];return null}var R=64,W=-2,Y="d0cf11e0a1b11ae1",Z=[208,207,17,224,161,177,26,225],B="00000000000000000000000000000000",ne={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:W,FREESECT:-1,HEADER_SIGNATURE:Y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:B,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ce(I,q,V){d();var X=P(I,V);f.writeFileSync(q,X)}function U(I){for(var q=new Array(I.length),V=0;V<I.length;++V)q[V]=String.fromCharCode(I[V]);return q.join("")}function H(I,q){var V=P(I,q);switch(q&&q.type||"buffer"){case"file":return d(),f.writeFileSync(q.filename,V),V;case"binary":return typeof V=="string"?V:U(V);case"base64":return Cd(typeof V=="string"?V:U(V));case"buffer":if(Gt)return Buffer.isBuffer(V)?V:Js(V);case"array":return typeof V=="string"?Za(V):V}return V}var ie;function z(I){try{var q=I.InflateRaw,V=new q;if(V._processChunk(new Uint8Array([3,0]),V._finishFlushFlag),V.bytesRead)ie=I;else throw new Error("zlib does not expose bytesRead")}catch(X){console.error("cannot use native zlib: "+(X.message||X))}}function K(I,q){if(!ie)return Wr(I,q);var V=ie.InflateRaw,X=new V,J=X._processChunk(I.slice(I.l),X._finishFlushFlag);return I.l+=X.bytesRead,J}function Q(I){return ie?ie.deflateRawSync(I):xt(I)}var ee=[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],xe=[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 ye(I){var q=(I<<1|I<<11)&139536|(I<<5|I<<15)&558144;return(q>>16|q>>8|q)&255}for(var Te=typeof Uint8Array<"u",he=Te?new Uint8Array(256):[],Ve=0;Ve<256;++Ve)he[Ve]=ye(Ve);function te(I,q){var V=he[I&255];return q<=8?V>>>8-q:(V=V<<8|he[I>>8&255],q<=16?V>>>16-q:(V=V<<8|he[I>>16&255],V>>>24-q))}function rt(I,q){var V=q&7,X=q>>>3;return(I[X]|(V<=6?0:I[X+1]<<8))>>>V&3}function Ue(I,q){var V=q&7,X=q>>>3;return(I[X]|(V<=5?0:I[X+1]<<8))>>>V&7}function ve(I,q){var V=q&7,X=q>>>3;return(I[X]|(V<=4?0:I[X+1]<<8))>>>V&15}function Ge(I,q){var V=q&7,X=q>>>3;return(I[X]|(V<=3?0:I[X+1]<<8))>>>V&31}function Ae(I,q){var V=q&7,X=q>>>3;return(I[X]|(V<=1?0:I[X+1]<<8))>>>V&127}function st(I,q,V){var X=q&7,J=q>>>3,re=(1<<V)-1,ge=I[J]>>>X;return V<8-X||(ge|=I[J+1]<<8-X,V<16-X)||(ge|=I[J+2]<<16-X,V<24-X)||(ge|=I[J+3]<<24-X),ge&re}function yt(I,q,V){var X=q&7,J=q>>>3;return X<=5?I[J]|=(V&7)<<X:(I[J]|=V<<X&255,I[J+1]=(V&7)>>8-X),q+3}function Ct(I,q,V){var X=q&7,J=q>>>3;return V=(V&1)<<X,I[J]|=V,q+1}function mt(I,q,V){var X=q&7,J=q>>>3;return V<<=X,I[J]|=V&255,V>>>=8,I[J+1]=V,q+8}function qe(I,q,V){var X=q&7,J=q>>>3;return V<<=X,I[J]|=V&255,V>>>=8,I[J+1]=V&255,I[J+2]=V>>>8,q+16}function Ut(I,q){var V=I.length,X=2*V>q?2*V:q+5,J=0;if(V>=q)return I;if(Gt){var re=BE(X);if(I.copy)I.copy(re);else for(;J<I.length;++J)re[J]=I[J];return re}else if(Te){var ge=new Uint8Array(X);if(ge.set)ge.set(I);else for(;J<V;++J)ge[J]=I[J];return ge}return I.length=X,I}function Dt(I){for(var q=new Array(I),V=0;V<I;++V)q[V]=0;return q}function vt(I,q,V){var X=1,J=0,re=0,ge=0,ke=0,de=I.length,pe=Te?new Uint16Array(32):Dt(32);for(re=0;re<32;++re)pe[re]=0;for(re=de;re<V;++re)I[re]=0;de=I.length;var we=Te?new Uint16Array(de):Dt(de);for(re=0;re<de;++re)pe[J=I[re]]++,X<J&&(X=J),we[re]=0;for(pe[0]=0,re=1;re<=X;++re)pe[re+16]=ke=ke+pe[re-1]<<1;for(re=0;re<de;++re)ke=I[re],ke!=0&&(we[re]=pe[ke+16]++);var $e=0;for(re=0;re<de;++re)if($e=I[re],$e!=0)for(ke=te(we[re],X)>>X-$e,ge=(1<<X+4-$e)-1;ge>=0;--ge)q[ke|ge<<$e]=$e&15|re<<4;return X}var Et=Te?new Uint16Array(512):Dt(512),pt=Te?new Uint16Array(32):Dt(32);if(!Te){for(var _t=0;_t<512;++_t)Et[_t]=0;for(_t=0;_t<32;++_t)pt[_t]=0}(function(){for(var I=[],q=0;q<32;q++)I.push(5);vt(I,pt,32);var V=[];for(q=0;q<=143;q++)V.push(8);for(;q<=255;q++)V.push(9);for(;q<=279;q++)V.push(7);for(;q<=287;q++)V.push(8);vt(V,Et,288)})();var At=(function(){for(var q=Te?new Uint8Array(32768):[],V=0,X=0;V<xe.length-1;++V)for(;X<xe[V+1];++X)q[X]=V;for(;X<32768;++X)q[X]=29;var J=Te?new Uint8Array(259):[];for(V=0,X=0;V<ae.length-1;++V)for(;X<ae[V+1];++X)J[X]=V;function re(ke,de){for(var pe=0;pe<ke.length;){var we=Math.min(65535,ke.length-pe),$e=pe+we==ke.length;for(de.write_shift(1,+$e),de.write_shift(2,we),de.write_shift(2,~we&65535);we-- >0;)de[de.l++]=ke[pe++]}return de.l}function ge(ke,de){for(var pe=0,we=0,$e=Te?new Uint16Array(32768):[];we<ke.length;){var Xe=Math.min(65535,ke.length-we);if(Xe<10){for(pe=yt(de,pe,+(we+Xe==ke.length)),pe&7&&(pe+=8-(pe&7)),de.l=pe/8|0,de.write_shift(2,Xe),de.write_shift(2,~Xe&65535);Xe-- >0;)de[de.l++]=ke[we++];pe=de.l*8;continue}pe=yt(de,pe,+(we+Xe==ke.length)+2);for(var Je=0;Xe-- >0;){var Ye=ke[we];Je=(Je<<5^Ye)&32767;var et=-1,Rt=0;if((et=$e[Je])&&(et|=we&-32768,et>we&&(et-=32768),et<we))for(;ke[et+Rt]==ke[we+Rt]&&Rt<250;)++Rt;if(Rt>2){Ye=J[Rt],Ye<=22?pe=mt(de,pe,he[Ye+1]>>1)-1:(mt(de,pe,3),pe+=5,mt(de,pe,he[Ye-23]>>5),pe+=3);var ar=Ye<8?0:Ye-4>>2;ar>0&&(qe(de,pe,Rt-ae[Ye]),pe+=ar),Ye=q[we-et],pe=mt(de,pe,he[Ye]>>3),pe-=3;var ir=Ye<4?0:Ye-2>>1;ir>0&&(qe(de,pe,we-et-xe[Ye]),pe+=ir);for(var St=0;St<Rt;++St)$e[Je]=we&32767,Je=(Je<<5^ke[we])&32767,++we;Xe-=Rt-1}else Ye<=143?Ye=Ye+48:pe=Ct(de,pe,1),pe=mt(de,pe,he[Ye]),$e[Je]=we&32767,++we}pe=mt(de,pe,0)-1}return de.l=(pe+7)/8|0,de.l}return function(de,pe){return de.length<8?re(de,pe):ge(de,pe)}})();function xt(I){var q=Ne(50+Math.floor(I.length*1.1)),V=At(I,q);return q.slice(0,V)}var ot=Te?new Uint16Array(32768):Dt(32768),nr=Te?new Uint16Array(32768):Dt(32768),It=Te?new Uint16Array(128):Dt(128),Rr=1,ht=1;function $t(I,q){var V=Ge(I,q)+257;q+=5;var X=Ge(I,q)+1;q+=5;var J=ve(I,q)+4;q+=4;for(var re=0,ge=Te?new Uint8Array(19):Dt(19),ke=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],de=1,pe=Te?new Uint8Array(8):Dt(8),we=Te?new Uint8Array(8):Dt(8),$e=ge.length,Xe=0;Xe<J;++Xe)ge[ee[Xe]]=re=Ue(I,q),de<re&&(de=re),pe[re]++,q+=3;var Je=0;for(pe[0]=0,Xe=1;Xe<=de;++Xe)we[Xe]=Je=Je+pe[Xe-1]<<1;for(Xe=0;Xe<$e;++Xe)(Je=ge[Xe])!=0&&(ke[Xe]=we[Je]++);var Ye=0;for(Xe=0;Xe<$e;++Xe)if(Ye=ge[Xe],Ye!=0){Je=he[ke[Xe]]>>8-Ye;for(var et=(1<<7-Ye)-1;et>=0;--et)It[Je|et<<Ye]=Ye&7|Xe<<3}var Rt=[];for(de=1;Rt.length<V+X;)switch(Je=It[Ae(I,q)],q+=Je&7,Je>>>=3){case 16:for(re=3+rt(I,q),q+=2,Je=Rt[Rt.length-1];re-- >0;)Rt.push(Je);break;case 17:for(re=3+Ue(I,q),q+=3;re-- >0;)Rt.push(0);break;case 18:for(re=11+Ae(I,q),q+=7;re-- >0;)Rt.push(0);break;default:Rt.push(Je),de<Je&&(de=Je);break}var ar=Rt.slice(0,V),ir=Rt.slice(V);for(Xe=V;Xe<286;++Xe)ar[Xe]=0;for(Xe=X;Xe<30;++Xe)ir[Xe]=0;return Rr=vt(ar,ot,286),ht=vt(ir,nr,30),q}function tr(I,q){if(I[0]==3&&!(I[1]&3))return[Uo(q),2];for(var V=0,X=0,J=BE(q||1<<18),re=0,ge=J.length>>>0,ke=0,de=0;(X&1)==0;){if(X=Ue(I,V),V+=3,X>>>1)X>>1==1?(ke=9,de=5):(V=$t(I,V),ke=Rr,de=ht);else{V&7&&(V+=8-(V&7));var pe=I[V>>>3]|I[(V>>>3)+1]<<8;if(V+=32,pe>0)for(!q&&ge<re+pe&&(J=Ut(J,re+pe),ge=J.length);pe-- >0;)J[re++]=I[V>>>3],V+=8;continue}for(;;){!q&&ge<re+32767&&(J=Ut(J,re+32767),ge=J.length);var we=st(I,V,ke),$e=X>>>1==1?Et[we]:ot[we];if(V+=$e&15,$e>>>=4,($e>>>8&255)===0)J[re++]=$e;else{if($e==256)break;$e-=257;var Xe=$e<8?0:$e-4>>2;Xe>5&&(Xe=0);var Je=re+ae[$e];Xe>0&&(Je+=st(I,V,Xe),V+=Xe),we=st(I,V,de),$e=X>>>1==1?pt[we]:nr[we],V+=$e&15,$e>>>=4;var Ye=$e<4?0:$e-2>>1,et=xe[$e];for(Ye>0&&(et+=st(I,V,Ye),V+=Ye),!q&&ge<Je&&(J=Ut(J,Je+100),ge=J.length);re<Je;)J[re]=J[re-et],++re}}}return q?[J,V+7>>>3]:[J.slice(0,re),V+7>>>3]}function Wr(I,q){var V=I.slice(I.l||0),X=tr(V,q);return I.l+=X[1],X[0]}function gn(I,q){if(I)typeof console<"u"&&console.error(q);else throw new Error(q)}function Li(I,q){var V=I;In(V,0);var X=[],J=[],re={FileIndex:X,FullPaths:J};O(re,{root:q.root});for(var ge=V.length-4;(V[ge]!=80||V[ge+1]!=75||V[ge+2]!=5||V[ge+3]!=6)&&ge>=0;)--ge;V.l=ge+4,V.l+=4;var ke=V.read_shift(2);V.l+=6;var de=V.read_shift(4);for(V.l=de,ge=0;ge<ke;++ge){V.l+=20;var pe=V.read_shift(4),we=V.read_shift(4),$e=V.read_shift(2),Xe=V.read_shift(2),Je=V.read_shift(2);V.l+=8;var Ye=V.read_shift(4),et=c(V.slice(V.l+$e,V.l+$e+Xe));V.l+=$e+Xe+Je;var Rt=V.l;V.l=Ye+4,ii(V,pe,we,re,et),V.l=Rt}return re}function ii(I,q,V,X,J){I.l+=2;var re=I.read_shift(2),ge=I.read_shift(2),ke=o(I);if(re&8257)throw new Error("Unsupported ZIP encryption");for(var de=I.read_shift(4),pe=I.read_shift(4),we=I.read_shift(4),$e=I.read_shift(2),Xe=I.read_shift(2),Je="",Ye=0;Ye<$e;++Ye)Je+=String.fromCharCode(I[I.l++]);if(Xe){var et=c(I.slice(I.l,I.l+Xe));(et[21589]||{}).mt&&(ke=et[21589].mt),((J||{})[21589]||{}).mt&&(ke=J[21589].mt)}I.l+=Xe;var Rt=I.slice(I.l,I.l+pe);switch(ge){case 8:Rt=K(I,we);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ge)}var ar=!1;re&8&&(de=I.read_shift(4),de==134695760&&(de=I.read_shift(4),ar=!0),pe=I.read_shift(4),we=I.read_shift(4)),pe!=q&&gn(ar,"Bad compressed size: "+q+" != "+pe),we!=V&&gn(ar,"Bad uncompressed size: "+V+" != "+we),Fe(X,Je,Rt,{unsafe:!0,mt:ke})}function sa(I,q){var V=q||{},X=[],J=[],re=Ne(1),ge=V.compression?8:0,ke=0,de=0,pe=0,we=0,$e=0,Xe=I.FullPaths[0],Je=Xe,Ye=I.FileIndex[0],et=[],Rt=0;for(de=1;de<I.FullPaths.length;++de)if(Je=I.FullPaths[de].slice(Xe.length),Ye=I.FileIndex[de],!(!Ye.size||!Ye.content||Je=="Sh33tJ5")){var ar=we,ir=Ne(Je.length);for(pe=0;pe<Je.length;++pe)ir.write_shift(1,Je.charCodeAt(pe)&127);ir=ir.slice(0,ir.l),et[$e]=CV.buf(Ye.content,0);var St=Ye.content;ge==8&&(St=Q(St)),re=Ne(30),re.write_shift(4,67324752),re.write_shift(2,20),re.write_shift(2,ke),re.write_shift(2,ge),Ye.mt?s(re,Ye.mt):re.write_shift(4,0),re.write_shift(-4,et[$e]),re.write_shift(4,St.length),re.write_shift(4,Ye.content.length),re.write_shift(2,ir.length),re.write_shift(2,0),we+=re.length,X.push(re),we+=ir.length,X.push(ir),we+=St.length,X.push(St),re=Ne(46),re.write_shift(4,33639248),re.write_shift(2,0),re.write_shift(2,20),re.write_shift(2,ke),re.write_shift(2,ge),re.write_shift(4,0),re.write_shift(-4,et[$e]),re.write_shift(4,St.length),re.write_shift(4,Ye.content.length),re.write_shift(2,ir.length),re.write_shift(2,0),re.write_shift(2,0),re.write_shift(2,0),re.write_shift(2,0),re.write_shift(4,0),re.write_shift(4,ar),Rt+=re.l,J.push(re),Rt+=ir.length,J.push(ir),++$e}return re=Ne(22),re.write_shift(4,101010256),re.write_shift(2,0),re.write_shift(2,0),re.write_shift(2,$e),re.write_shift(2,$e),re.write_shift(4,Rt),re.write_shift(4,we),re.write_shift(2,0),Rn([Rn(X),Rn(J),re])}var ja={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 La(I,q){if(I.ctype)return I.ctype;var V=I.name||"",X=V.match(/\.([^\.]+)$/);return X&&ja[X[1]]||q&&(X=(V=q).match(/[\.\\]([^\.\\])+$/),X&&ja[X[1]])?ja[X[1]]:"application/octet-stream"}function Ia(I){for(var q=Cd(I),V=[],X=0;X<q.length;X+=76)V.push(q.slice(X,X+76));return V.join(`\r
`)+`\r
`}function Ii(I){var q=I.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(pe){var we=pe.charCodeAt(0).toString(16).toUpperCase();return"="+(we.length==1?"0"+we:we)});q=q.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),q.charAt(0)==`
`&&(q="=0D"+q.slice(1)),q=q.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var V=[],X=q.split(`\r
`),J=0;J<X.length;++J){var re=X[J];if(re.length==0){V.push("");continue}for(var ge=0;ge<re.length;){var ke=76,de=re.slice(ge,ge+ke);de.charAt(ke-1)=="="?ke--:de.charAt(ke-2)=="="?ke-=2:de.charAt(ke-3)=="="&&(ke-=3),de=re.slice(ge,ge+ke),ge+=ke,ge<re.length&&(de+="="),V.push(de)}}return V.join(`\r
`)}function Nt(I){for(var q=[],V=0;V<I.length;++V){for(var X=I[V];V<=I.length&&X.charAt(X.length-1)=="=";)X=X.slice(0,X.length-1)+I[++V];q.push(X)}for(var J=0;J<q.length;++J)q[J]=q[J].replace(/[=][0-9A-Fa-f]{2}/g,function(re){return String.fromCharCode(parseInt(re.slice(1),16))});return Za(q.join(`\r
`))}function le(I,q,V){for(var X="",J="",re="",ge,ke=0;ke<10;++ke){var de=q[ke];if(!de||de.match(/^\s*$/))break;var pe=de.match(/^(.*?):\s*([^\s].*)$/);if(pe)switch(pe[1].toLowerCase()){case"content-location":X=pe[2].trim();break;case"content-type":re=pe[2].trim();break;case"content-transfer-encoding":J=pe[2].trim();break}}switch(++ke,J.toLowerCase()){case"base64":ge=Za(ni(q.slice(ke).join("")));break;case"quoted-printable":ge=Nt(q.slice(ke));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+J)}var we=Fe(I,X.slice(V.length),ge,{unsafe:!0});re&&(we.ctype=re)}function oe(I,q){if(U(I.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var V=q&&q.root||"",X=(Gt&&Buffer.isBuffer(I)?I.toString("binary"):U(I)).split(`\r
`),J=0,re="";for(J=0;J<X.length;++J)if(re=X[J],!!/^Content-Location:/i.test(re)&&(re=re.slice(re.indexOf("file")),V||(V=re.slice(0,re.lastIndexOf("/")+1)),re.slice(0,V.length)!=V))for(;V.length>0&&(V=V.slice(0,V.length-1),V=V.slice(0,V.lastIndexOf("/")+1),re.slice(0,V.length)!=V););var ge=(X[1]||"").match(/boundary="(.*?)"/);if(!ge)throw new Error("MAD cannot find boundary");var ke="--"+(ge[1]||""),de=[],pe=[],we={FileIndex:de,FullPaths:pe};O(we);var $e,Xe=0;for(J=0;J<X.length;++J){var Je=X[J];Je!==ke&&Je!==ke+"--"||(Xe++&&le(we,X.slice($e,J),V),$e=J)}return we}function fe(I,q){var V=q||{},X=V.boundary||"SheetJS";X="------="+X;for(var J=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+X.slice(2)+'"',"","",""],re=I.FullPaths[0],ge=re,ke=I.FileIndex[0],de=1;de<I.FullPaths.length;++de)if(ge=I.FullPaths[de].slice(re.length),ke=I.FileIndex[de],!(!ke.size||!ke.content||ge=="Sh33tJ5")){ge=ge.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Rt){return"_x"+Rt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Rt){return"_u"+Rt.charCodeAt(0).toString(16)+"_"});for(var pe=ke.content,we=Gt&&Buffer.isBuffer(pe)?pe.toString("binary"):U(pe),$e=0,Xe=Math.min(1024,we.length),Je=0,Ye=0;Ye<=Xe;++Ye)(Je=we.charCodeAt(Ye))>=32&&Je<128&&++$e;var et=$e>=Xe*4/5;J.push(X),J.push("Content-Location: "+(V.root||"file:///C:/SheetJS/")+ge),J.push("Content-Transfer-Encoding: "+(et?"quoted-printable":"base64")),J.push("Content-Type: "+La(ke,ge)),J.push(""),J.push(et?Ii(we):Ia(we))}return J.push(X+`--\r
`),J.join(`\r
`)}function Re(I){var q={};return O(q,I),q}function Fe(I,q,V,X){var J=X&&X.unsafe;J||O(I);var re=!J&&kt.find(I,q);if(!re){var ge=I.FullPaths[0];q.slice(0,ge.length)==ge?ge=q:(ge.slice(-1)!="/"&&(ge+="/"),ge=(ge+q).replace("//","/")),re={name:a(q),type:2},I.FileIndex.push(re),I.FullPaths.push(ge),J||kt.utils.cfb_gc(I)}return re.content=V,re.size=V?V.length:0,X&&(X.CLSID&&(re.clsid=X.CLSID),X.mt&&(re.mt=X.mt),X.ct&&(re.ct=X.ct)),re}function Ke(I,q){O(I);var V=kt.find(I,q);if(V){for(var X=0;X<I.FileIndex.length;++X)if(I.FileIndex[X]==V)return I.FileIndex.splice(X,1),I.FullPaths.splice(X,1),!0}return!1}function ct(I,q,V){O(I);var X=kt.find(I,q);if(X){for(var J=0;J<I.FileIndex.length;++J)if(I.FileIndex[J]==X)return I.FileIndex[J].name=a(V),I.FullPaths[J]=V,!0}return!1}function ft(I){F(I,!0)}return t.find=j,t.read=A,t.parse=h,t.write=H,t.writeFile=ce,t.utils={cfb_new:Re,cfb_add:Fe,cfb_del:Ke,cfb_mov:ct,cfb_gc:ft,ReadShift:Kf,CheckField:vA,prep_blob:In,bconcat:Rn,use_zlib:z,_deflateRaw:xt,_inflateRaw:Wr,consts:ne},t})();function EV(e){return typeof e=="string"?vm(e):Array.isArray(e)?QW(e):e}function r0(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=vm(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?hs(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([EV(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var s=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),chrome.downloads.download({url:s,filename:e,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=e,o.href=s,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),s}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var c=File(e);return c.open("w"),c.encoding="binary",Array.isArray(t)&&(t=Jo(t)),c.write(t),c.close(),t}catch(f){if(!f.message||!f.message.match(/onstruct/))throw f}throw new Error("cannot save file "+e)}function _V(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 Jr(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 XE(e,t){for(var r=[],n=Jr(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function bm(e){for(var t=[],r=Jr(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function Sm(e){for(var t=[],r=Jr(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function kV(e){for(var t=[],r=Jr(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 Op=new Date(1899,11,30,0,0,0);function Sn(e,t){var r=e.getTime(),n=Op.getTime()+(e.getTimezoneOffset()-Op.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var Q3=new Date,AV=Op.getTime()+(Q3.getTimezoneOffset()-Op.getTimezoneOffset())*6e4,YE=Q3.getTimezoneOffset();function wm(e){var t=new Date;return t.setTime(e*24*60*60*1e3+AV),t.getTimezoneOffset()!==YE&&t.setTime(t.getTime()+(t.getTimezoneOffset()-YE)*6e4),t}function RV(e){var t=0,r=0,n=!1,a=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!a)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var s=1;s!=a.length;++s)if(a[s]){switch(r=1,s>3&&(n=!0),a[s].slice(a[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[s].slice(a[s].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(a[s],10)}return t}var qE=new Date("2017-02-19T19:06:09.000Z"),Z3=isNaN(qE.getFullYear())?new Date("2/19/17"):qE,OV=Z3.getFullYear()==2017;function Pr(e,t){var r=new Date(e);if(OV)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(Z3.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function Ul(e,t){if(Gt&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return hs(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return hs(B3(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return hs(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return hs(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(s){return r[s]||s})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function jr(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]=jr(e[r]));return t}function Kr(e,t){for(var r="";r.length<t;)r+=e;return r}function Yi(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(a,s){return r=-r,s}),!isNaN(t=Number(n)))?t/r:t}var DV=["january","february","march","april","may","june","july","august","september","october","november","december"];function du(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),s=t.getDate();if(isNaN(s))return r;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&DV.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||s>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var MV=(function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,a){if(e||typeof n=="string")return r.split(n);for(var s=r.split(n),o=[s[0]],c=1;c<s.length;++c)o.push(a),o.push(s[c]);return o}})();function J3(e){return e?e.content&&e.type?Ul(e.content,!0):e.data?zf(e.data):e.asNodeBuffer&&Gt?zf(e.asNodeBuffer().toString("binary")):e.asBinary?zf(e.asBinary()):e._data&&e._data.getContent?zf(Ul(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function eA(e){if(!e)return null;if(e.data)return LE(e.data);if(e.asNodeBuffer&&Gt)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return typeof t=="string"?LE(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function FV(e){return e&&e.name.slice(-4)===".bin"?eA(e):J3(e)}function Si(e,t){for(var r=e.FullPaths||Jr(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),a=n.replace(/\\/g,"/"),s=0;s<r.length;++s){var o=r[s].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==o||a==o)return e.files?e.files[r[s]]:e.FileIndex[s]}return null}function By(e,t){var r=Si(e,t);if(r==null)throw new Error("Cannot find file "+t+" in zip");return r}function hn(e,t,r){if(!r)return FV(By(e,t));if(!t)return null;try{return hn(e,t)}catch{return null}}function Ja(e,t,r){if(!r)return J3(By(e,t));if(!t)return null;try{return Ja(e,t)}catch{return null}}function NV(e,t,r){return eA(By(e,t))}function KE(e){for(var t=e.FullPaths||Jr(e.files),r=[],n=0;n<t.length;++n)t[n].slice(-1)!="/"&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function Wt(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return Gt?n=Js(r):n=ZW(r),kt.utils.cfb_add(e,t,n)}kt.utils.cfb_add(e,t,r)}else e.file(t,r)}function zy(){return kt.utils.cfb_new()}function tA(e,t){switch(t.type){case"base64":return kt.read(e,{type:"base64"});case"binary":return kt.read(e,{type:"binary"});case"buffer":case"array":return kt.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function $f(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 a=n.shift();a===".."?r.pop():a!=="."&&r.push(a)}return r.join("/")}var cn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,PV=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,QE=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,jV=/<[^>]*>/g,ia=cn.match(QE)?QE:jV,LV=/<\w*:/,IV=/<(\/?)\w+:/;function Lt(e,t,r){for(var n={},a=0,s=0;a!==e.length&&!((s=e.charCodeAt(a))===32||s===10||s===13);++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var o=e.match(PV),c=0,f="",d=0,h="",g="",x=1;if(o)for(d=0;d!=o.length;++d){for(g=o[d],s=0;s!=g.length&&g.charCodeAt(s)!==61;++s);for(h=g.slice(0,s).trim();g.charCodeAt(s+1)==32;)++s;for(x=(a=g.charCodeAt(s+1))==34||a==39?1:0,f=g.slice(s+1+x,g.length-x),c=0;c!=h.length&&h.charCodeAt(c)!==58;++c);if(c===h.length)h.indexOf("_")>0&&(h=h.slice(0,h.indexOf("_"))),n[h]=f,n[h.toLowerCase()]=f;else{var y=(c===5&&h.slice(0,5)==="xmlns"?"xmlns":"")+h.slice(c+1);if(n[y]&&h.slice(c-3,c)=="ext")continue;n[y]=f,n[y.toLowerCase()]=f}}return n}function bs(e){return e.replace(IV,"<$1")}var rA={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Uy=bm(rA),sr=(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 a=n+"",s=a.indexOf("<![CDATA[");if(s==-1)return a.replace(e,function(c,f){return rA[c]||String.fromCharCode(parseInt(f,c.indexOf("x")>-1?16:10))||c}).replace(t,function(c,f){return String.fromCharCode(parseInt(f,16))});var o=a.indexOf("]]>");return r(a.slice(0,s))+a.slice(s+9,o)+r(a.slice(o+3))}})(),$y=/[&<>'"]/g,BV=/[\u0000-\u0008\u000b-\u001f]/g;function Tr(e){var t=e+"";return t.replace($y,function(r){return Uy[r]}).replace(BV,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function ZE(e){return Tr(e).replace(/ /g,"_x0020_")}var nA=/[\u0000-\u001f]/g;function Hy(e){var t=e+"";return t.replace($y,function(r){return Uy[r]}).replace(/\n/g,"<br/>").replace(nA,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function zV(e){var t=e+"";return t.replace($y,function(r){return Uy[r]}).replace(nA,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var JE=(function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}})();function UV(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function Nr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function lx(e){for(var t="",r=0,n=0,a=0,s=0,o=0,c=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=a&63,t+=String.fromCharCode(o);continue}if(s=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|s&63);continue}o=e.charCodeAt(r++),c=((n&7)<<18|(a&63)<<12|(s&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(c>>>10&1023)),t+=String.fromCharCode(56320+(c&1023))}return t}function e4(e){var t=Uo(2*e.length),r,n,a=1,s=0,o=0,c;for(n=0;n<e.length;n+=a)a=1,(c=e.charCodeAt(n))<128?r=c:c<224?(r=(c&31)*64+(e.charCodeAt(n+1)&63),a=2):c<240?(r=(c&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(c&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(t[s++]=o&255,t[s++]=o>>>8,o=0),t[s++]=r%256,t[s++]=r>>>8;return t.slice(0,s).toString("ucs2")}function t4(e){return Js(e,"binary").toString("utf8")}var Ph="foo bar bazâð£",Ar=Gt&&(t4(Ph)==lx(Ph)&&t4||e4(Ph)==lx(Ph)&&e4)||lx,hs=Gt?function(e){return Js(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=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,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&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("")},_d=(function(){var e={};return function(r,n){var a=r+"|"+(n||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}})(),aA=(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,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}})(),$V=(function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}})(),HV=/<\/?(?:vt:)?variant>/g,WV=/<(?:vt:)([^>]*)>([\s\S]*)</;function r4(e,t){var r=Lt(e),n=e.match($V(r.baseType))||[],a=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return a}return n.forEach(function(s){var o=s.replace(HV,"").match(WV);o&&a.push({v:Ar(o[2]),t:o[1]})}),a}var iA=/(^\s|\s$|\n)/;function Bn(e,t){return"<"+e+(t.match(iA)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function kd(e){return Jr(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Qe(e,t,r){return"<"+e+(r!=null?kd(r):"")+(t!=null?(t.match(iA)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function dv(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function VV(e,t){switch(typeof e){case"string":var r=Qe("vt:lpwstr",Tr(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return Qe((e|0)==e?"vt:i4":"vt:r8",Tr(String(e)));case"boolean":return Qe("vt:bool",e?"true":"false")}if(e instanceof Date)return Qe("vt:filetime",dv(e));throw new Error("Unable to serialize "+e)}function Wy(e){if(Gt&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Ar(Jo(jy(e)));throw new Error("Bad input format: expected Buffer or string")}var Ad=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,yn={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"},Xl=["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"],Ya={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 GV(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,s=5;s>=0;--s)a=a*256+e[t+s];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function XV(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,s=0,o=n?-t:t;isFinite(o)?o==0?a=s=0:(a=Math.floor(Math.log(o)/Math.LN2),s=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?a=-1022:(s-=Math.pow(2,52),a+=1023)):(a=2047,s=isNaN(t)?26985:0);for(var c=0;c<=5;++c,s/=256)e[r+c]=s&255;e[r+6]=(a&15)<<4|s&15,e[r+7]=a>>4|n}var n4=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,s=e[0][n].length;a<s;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},a4=Gt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Js(t)})):n4(e)}:n4,i4=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(Bs(e,a)));return n.join("").replace(ma,"")},Vy=Gt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(ma,""):i4(e,t,r)}:i4,s4=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},sA=Gt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):s4(e,t,r)}:s4,o4=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(Vc(e,a)));return n.join("")},n0=Gt?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):o4(t,r,n)}:o4,oA=function(e,t){var r=qa(e,t);return r>0?n0(e,t+4,t+4+r-1):""},lA=oA,cA=function(e,t){var r=qa(e,t);return r>0?n0(e,t+4,t+4+r-1):""},uA=cA,fA=function(e,t){var r=2*qa(e,t);return r>0?n0(e,t+4,t+4+r-1):""},dA=fA,hA=function(t,r){var n=qa(t,r);return n>0?Vy(t,r+4,r+4+n):""},pA=hA,mA=function(e,t){var r=qa(e,t);return r>0?n0(e,t+4,t+4+r):""},gA=mA,xA=function(e,t){return GV(e,t)},Dp=xA,Gy=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Gt&&(lA=function(t,r){if(!Buffer.isBuffer(t))return oA(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},uA=function(t,r){if(!Buffer.isBuffer(t))return cA(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},dA=function(t,r){if(!Buffer.isBuffer(t))return fA(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},pA=function(t,r){if(!Buffer.isBuffer(t))return hA(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},gA=function(t,r){if(!Buffer.isBuffer(t))return mA(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Dp=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):xA(t,r)},Gy=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Vc=function(e,t){return e[t]},Bs=function(e,t){return e[t+1]*256+e[t]},YV=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},qa=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Tl=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},qV=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Kf(e,t){var r="",n,a,s=[],o,c,f,d;switch(t){case"dbcs":if(d=this.l,Gt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(f=0;f<e;++f)r+=String.fromCharCode(Bs(this,d)),d+=2;e*=2;break;case"utf8":r=n0(this,this.l,this.l+e);break;case"utf16le":e*=2,r=Vy(this,this.l,this.l+e);break;case"wstr":return Kf.call(this,e,"dbcs");case"lpstr-ansi":r=lA(this,this.l),e=4+qa(this,this.l);break;case"lpstr-cp":r=uA(this,this.l),e=4+qa(this,this.l);break;case"lpwstr":r=dA(this,this.l),e=4+2*qa(this,this.l);break;case"lpp4":e=4+qa(this,this.l),r=pA(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+qa(this,this.l),r=gA(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=Vc(this,this.l+e++))!==0;)s.push(Nh(o));r=s.join("");break;case"_wstr":for(e=0,r="";(o=Bs(this,this.l+e))!==0;)s.push(Nh(o)),e+=2;e+=2,r=s.join("");break;case"dbcs-cont":for(r="",d=this.l,f=0;f<e;++f){if(this.lens&&this.lens.indexOf(d)!==-1)return o=Vc(this,d),this.l=d+1,c=Kf.call(this,e-f,o?"dbcs-cont":"sbcs-cont"),s.join("")+c;s.push(Nh(Bs(this,d))),d+=2}r=s.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",d=this.l,f=0;f!=e;++f){if(this.lens&&this.lens.indexOf(d)!==-1)return o=Vc(this,d),this.l=d+1,c=Kf.call(this,e-f,o?"dbcs-cont":"sbcs-cont"),s.join("")+c;s.push(Nh(Vc(this,d))),d+=1}r=s.join("");break;default:switch(e){case 1:return n=Vc(this,this.l),this.l++,n;case 2:return n=(t==="i"?YV:Bs)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?Tl:qV)(this,this.l),this.l+=4,n):(a=qa(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=Dp(this,this.l):a=Dp([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,a;e=8;case 16:r=sA(this,this.l,e);break}}return this.l+=e,r}var KV=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},QV=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},ZV=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function JV(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)ZV(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var s=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var o=t.charCodeAt(a);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<s;)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,KV(this,t,this.l);break;case 8:if(n=8,r==="f"){XV(this,t,this.l);break}case 16:break;case-4:n=4,QV(this,t,this.l);break}return this.l+=n,this}function vA(e,t){var r=sA(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function In(e,t){e.l=t,e.read_shift=Kf,e.chk=vA,e.write_shift=JV}function aa(e,t){e.l+=t}function Ne(e){var t=Uo(e);return In(t,0),t}function eo(e,t,r){if(e){var n,a,s;In(e,e.l||0);for(var o=e.length,c=0,f=0;e.l<o;){c=e.read_shift(1),c&128&&(c=(c&127)+((e.read_shift(1)&127)<<7));var d=Nd[c]||Nd[65535];for(n=e.read_shift(1),s=n&127,a=1;a<4&&n&128;++a)s+=((n=e.read_shift(1))&127)<<7*a;f=e.l+s;var h=d.f&&d.f(e,s,r);if(e.l=f,t(h,d,c))return}}}function Fa(){var e=[],t=Gt?256:2048,r=function(d){var h=Ne(d);return In(h,0),h},n=r(t),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},s=function(d){return n&&d<n.length-n.l?n:(a(),n=r(Math.max(d+1,t)))},o=function(){return a(),Rn(e)},c=function(d){a(),n=d,n.l==null&&(n.l=n.length),s(t)};return{next:s,push:c,end:o,_bufs:e}}function He(e,t,r,n){var a=+t,s;if(!isNaN(a)){n||(n=Nd[a].p||(r||[]).length||0),s=1+(a>=128?1:0)+1,n>=128&&++s,n>=16384&&++s,n>=2097152&&++s;var o=e.next(s);a<=127?o.write_shift(1,a):(o.write_shift(1,(a&127)+128),o.write_shift(1,a>>7));for(var c=0;c!=4;++c)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&Gy(r)&&e.push(r)}}function Qf(e,t,r){var n=jr(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 l4(e,t,r){var n=jr(e);return n.s=Qf(n.s,t.s,r),n.e=Qf(n.e,t.s,r),n}function Zf(e,t){if(e.cRel&&e.c<0)for(e=jr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=jr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Pt(e);return!e.cRel&&e.cRel!=null&&(r=rG(r)),!e.rRel&&e.rRel!=null&&(r=eG(r)),r}function cx(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?"":"$")+$r(e.s.c)+":"+(e.e.cRel?"":"$")+$r(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+on(e.s.r)+":"+(e.e.rRel?"":"$")+on(e.e.r):Zf(e.s,t.biff)+":"+Zf(e.e,t.biff)}function Xy(e){return parseInt(tG(e),10)-1}function on(e){return""+(e+1)}function eG(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function tG(e){return e.replace(/\$(\d+)$/,"$1")}function Yy(e){for(var t=nG(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function $r(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 rG(e){return e.replace(/^([A-Z])/,"$$$1")}function nG(e){return e.replace(/^\$([A-Z])/,"$1")}function aG(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Hr(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function Pt(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:Hr(e),e:Hr(e)}:{s:Hr(e.slice(0,t)),e:Hr(e.slice(t+1))}}function zt(e,t){return typeof t>"u"||typeof t=="number"?zt(e.s,e.e):(typeof e!="string"&&(e=Pt(e)),typeof t!="string"&&(t=Pt(t)),e==t?e:e+":"+t)}function or(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,s=e.length;for(r=0;n<s&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<s&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===s||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=s&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=s&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function c4(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Fi(e.z,r?Sn(t):t)}catch{}try{return e.w=Fi((e.XF||{}).numFmtId||(r?14:0),r?Sn(t):t)}catch{return""+t}}function Ks(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"?to[e.v]||e.v:t==null?c4(e,e.v):c4(e,t))}function el(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function yA(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,s=e||(a?[]:{}),o=0,c=0;if(s&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var f=typeof n.origin=="string"?Hr(n.origin):n.origin;o=f.r,c=f.c}s["!ref"]||(s["!ref"]="A1:A1")}var d={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var h=or(s["!ref"]);d.s.c=h.s.c,d.s.r=h.s.r,d.e.c=Math.max(d.e.c,h.e.c),d.e.r=Math.max(d.e.r,h.e.r),o==-1&&(d.e.r=o=h.e.r+1)}for(var g=0;g!=t.length;++g)if(t[g]){if(!Array.isArray(t[g]))throw new Error("aoa_to_sheet expects an array of arrays");for(var x=0;x!=t[g].length;++x)if(!(typeof t[g][x]>"u")){var y={v:t[g][x]},b=o+g,v=c+x;if(d.s.r>b&&(d.s.r=b),d.s.c>v&&(d.s.c=v),d.e.r<b&&(d.e.r=b),d.e.c<v&&(d.e.c=v),t[g][x]&&typeof t[g][x]=="object"&&!Array.isArray(t[g][x])&&!(t[g][x]instanceof Date))y=t[g][x];else if(Array.isArray(y.v)&&(y.f=t[g][x][1],y.v=y.v[0]),y.v===null)if(y.f)y.t="n";else if(n.nullError)y.t="e",y.v=0;else if(n.sheetStubs)y.t="z";else continue;else typeof y.v=="number"?y.t="n":typeof y.v=="boolean"?y.t="b":y.v instanceof Date?(y.z=n.dateNF||Ft[14],n.cellDates?(y.t="d",y.w=Fi(y.z,Sn(y.v))):(y.t="n",y.v=Sn(y.v),y.w=Fi(y.z,y.v))):y.t="s";if(a)s[b]||(s[b]=[]),s[b][v]&&s[b][v].z&&(y.z=s[b][v].z),s[b][v]=y;else{var w=Pt({c:v,r:b});s[w]&&s[w].z&&(y.z=s[w].z),s[w]=y}}}return d.s.c<1e7&&(s["!ref"]=zt(d)),s}function Cu(e,t){return yA(null,e,t)}function iG(e){return e.read_shift(4,"i")}function qi(e,t){return t||(t=Ne(4)),t.write_shift(4,e),t}function na(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function Dn(e,t){var r=!1;return t==null&&(r=!0,t=Ne(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 sG(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function oG(e,t){return t||(t=Ne(4)),t.write_shift(2,0),t.write_shift(2,0),t}function qy(e,t){var r=e.l,n=e.read_shift(1),a=na(e),s=[],o={t:a,h:a};if((n&1)!==0){for(var c=e.read_shift(4),f=0;f!=c;++f)s.push(sG(e));o.r=s}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function lG(e,t){var r=!1;return t==null&&(r=!0,t=Ne(15+4*e.t.length)),t.write_shift(1,0),Dn(e.t,t),r?t.slice(0,t.l):t}var cG=qy;function uG(e,t){var r=!1;return t==null&&(r=!0,t=Ne(23+4*e.t.length)),t.write_shift(1,1),Dn(e.t,t),t.write_shift(4,1),oG({},t),r?t.slice(0,t.l):t}function ji(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 Yl(e,t){return t==null&&(t=Ne(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function ql(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Kl(e,t){return t==null&&(t=Ne(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var fG=na,bA=Dn;function Ky(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Mp(e,t){var r=!1;return t==null&&(r=!0,t=Ne(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 dG=na,hv=Ky,Qy=Mp;function Zy(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?Dp([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Tl(t,0)>>2;return r?a/100:a}function SA(e,t){t==null&&(t=Ne(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:a==(a|0)&&a>=-536870912&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function wA(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 hG(e,t){return t||(t=Ne(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 Ql=wA,Eu=hG;function Zn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function $l(e,t){return(t||Ne(8)).write_shift(8,e,"f")}function pG(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),s=e.read_shift(2,"i"),o=e.read_shift(1),c=e.read_shift(1),f=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var d=Dl[a];d&&(t.rgb=Od(d));break;case 2:t.rgb=Od([o,c,f]);break;case 3:t.theme=a;break}return s!=0&&(t.tint=s>0?s/32767:s/32768),t}function Fp(e,t){if(t||(t=Ne(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 mG(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 gG(e,t){t||(t=Ne(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 TA(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 xG(e){return TA(e,1)}function vG(e){return TA(e,2)}var Jy=2,Ea=3,jh=11,u4=12,Np=19,Lh=64,yG=65,bG=71,SG=4108,wG=4126,kn=80,CA=81,TG=[kn,CA],pv={1:{n:"CodePage",t:Jy},2:{n:"Category",t:kn},3:{n:"PresentationFormat",t:kn},4:{n:"ByteCount",t:Ea},5:{n:"LineCount",t:Ea},6:{n:"ParagraphCount",t:Ea},7:{n:"SlideCount",t:Ea},8:{n:"NoteCount",t:Ea},9:{n:"HiddenCount",t:Ea},10:{n:"MultimediaClipCount",t:Ea},11:{n:"ScaleCrop",t:jh},12:{n:"HeadingPairs",t:SG},13:{n:"TitlesOfParts",t:wG},14:{n:"Manager",t:kn},15:{n:"Company",t:kn},16:{n:"LinksUpToDate",t:jh},17:{n:"CharacterCount",t:Ea},19:{n:"SharedDoc",t:jh},22:{n:"HyperlinksChanged",t:jh},23:{n:"AppVersion",t:Ea,p:"version"},24:{n:"DigSig",t:yG},26:{n:"ContentType",t:kn},27:{n:"ContentStatus",t:kn},28:{n:"Language",t:kn},29:{n:"Version",t:kn},255:{},2147483648:{n:"Locale",t:Np},2147483651:{n:"Behavior",t:Np},1919054434:{}},mv={1:{n:"CodePage",t:Jy},2:{n:"Title",t:kn},3:{n:"Subject",t:kn},4:{n:"Author",t:kn},5:{n:"Keywords",t:kn},6:{n:"Comments",t:kn},7:{n:"Template",t:kn},8:{n:"LastAuthor",t:kn},9:{n:"RevNumber",t:kn},10:{n:"EditTime",t:Lh},11:{n:"LastPrinted",t:Lh},12:{n:"CreatedDate",t:Lh},13:{n:"ModifiedDate",t:Lh},14:{n:"PageCount",t:Ea},15:{n:"WordCount",t:Ea},16:{n:"CharCount",t:Ea},17:{n:"Thumbnail",t:bG},18:{n:"Application",t:kn},19:{n:"DocSecurity",t:Ea},255:{},2147483648:{n:"Locale",t:Np},2147483651:{n:"Behavior",t:Np},1919054434:{}},f4={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"},CG=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function EG(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var _G=EG([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]),Dl=jr(_G),to={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},EA={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},gv={"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"},Ih={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 e2(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function kG(e){var t=e2();if(!e||!e.match)return t;var r={};if((e.match(ia)||[]).forEach(function(n){var a=Lt(n);switch(a[0].replace(LV,"<")){case"<?xml":break;case"<Types":t.xmlns=a["xmlns"+(a[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[a.Extension]=a.ContentType;break;case"<Override":t[gv[a.ContentType]]!==void 0&&t[gv[a.ContentType]].push(a.PartName);break}}),t.xmlns!==yn.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 _A(e,t){var r=kV(gv),n=[],a;n[n.length]=cn,n[n.length]=Qe("Types",null,{xmlns:yn.CT,"xmlns:xsd":yn.xsd,"xmlns:xsi":yn.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(f){return Qe("Default",null,{Extension:f[0],ContentType:f[1]})}));var s=function(f){e[f]&&e[f].length>0&&(a=e[f][0],n[n.length]=Qe("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Ih[f][t.bookType]||Ih[f].xlsx}))},o=function(f){(e[f]||[]).forEach(function(d){n[n.length]=Qe("Override",null,{PartName:(d[0]=="/"?"":"/")+d,ContentType:Ih[f][t.bookType]||Ih[f].xlsx})})},c=function(f){(e[f]||[]).forEach(function(d){n[n.length]=Qe("Override",null,{PartName:(d[0]=="/"?"":"/")+d,ContentType:r[f][0]})})};return s("workbooks"),o("sheets"),o("charts"),c("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),o("metadata"),c("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Yt={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 Rd(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Jf(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(ia)||[]).forEach(function(a){var s=Lt(a);if(s[0]==="<Relationship"){var o={};o.Type=s.Type,o.Target=s.Target,o.Id=s.Id,s.TargetMode&&(o.TargetMode=s.TargetMode);var c=s.TargetMode==="External"?s.Target:$f(s.Target,t);r[c]=o,n[s.Id]=o}}),r["!id"]=n,r}function tu(e){var t=[cn,Qe("Relationships",null,{xmlns:yn.RELS})];return Jr(e["!id"]).forEach(function(r){t[t.length]=Qe("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Sr(e,t,r,n,a,s){if(a||(a={}),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,a.Id="rId"+t,a.Type=n,a.Target=r,[Yt.HLINK,Yt.XPATH,Yt.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}var AG="application/vnd.oasis.opendocument.spreadsheet";function RG(e,t){for(var r=Wy(e),n,a;n=Ad.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(a=Lt(n[0],!1),a.path=="/"&&a.type!==AG)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 OG(e){var t=[cn];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 d4(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 DG(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 MG(e){var t=[cn];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(d4(e[r][0],e[r][1])),t.push(DG("",e[r][0]));return t.push(d4("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function kA(){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 '+_p.version+"</meta:generator></office:meta></office:document-meta>"}var Ai=[["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"]],FG=(function(){for(var e=new Array(Ai.length),t=0;t<Ai.length;++t){var r=Ai[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 AA(e){var t={};e=Ar(e);for(var r=0;r<Ai.length;++r){var n=Ai[r],a=e.match(FG[r]);a!=null&&a.length>0&&(t[n[1]]=sr(a[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=Pr(t[n[1]]))}return t}function ux(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=Tr(t),n[n.length]=r?Qe(e,t,r):Bn(e,t))}function RA(e,t){var r=t||{},n=[cn,Qe("cp:coreProperties",null,{"xmlns:cp":yn.CORE_PROPS,"xmlns:dc":yn.dc,"xmlns:dcterms":yn.dcterms,"xmlns:dcmitype":yn.dcmitype,"xmlns:xsi":yn.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&ux("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:dv(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&ux("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:dv(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var s=0;s!=Ai.length;++s){var o=Ai[s],c=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:e?e[o[1]]:null;c===!0?c="1":c===!1?c="0":typeof c=="number"&&(c=String(c)),c!=null&&ux(o[0],c,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Ml=[["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"]],OA=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function DA(e,t,r,n){var a=[];if(typeof e=="string")a=r4(e,n);else for(var s=0;s<e.length;++s)a=a.concat(e[s].map(function(h){return{v:h}}));var o=typeof t=="string"?r4(t,n).map(function(h){return h.v}):t,c=0,f=0;if(o.length>0)for(var d=0;d!==a.length;d+=2){switch(f=+a[d+1].v,a[d].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=f,r.SheetNames=o.slice(c,c+f);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=f,r.DefinedNames=o.slice(c,c+f);break;case"Charts":case"Diagramme":r.Chartsheets=f,r.ChartNames=o.slice(c,c+f);break}c+=f}}function NG(e,t,r){var n={};return t||(t={}),e=Ar(e),Ml.forEach(function(a){var s=(e.match(_d(a[0]))||[])[1];switch(a[2]){case"string":s&&(t[a[1]]=sr(s));break;case"bool":t[a[1]]=s==="true";break;case"raw":var o=e.match(new RegExp("<"+a[0]+"[^>]*>([\\s\\S]*?)</"+a[0]+">"));o&&o.length>0&&(n[a[1]]=o[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&DA(n.HeadingPairs,n.TitlesOfParts,t,r),t}function MA(e){var t=[],r=Qe;return e||(e={}),e.Application="SheetJS",t[t.length]=cn,t[t.length]=Qe("Properties",null,{xmlns:yn.EXT_PROPS,"xmlns:vt":yn.vt}),Ml.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=Tr(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),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>"+Tr(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var PG=/<[^>]+>[^<]*/g;function jG(e,t){var r={},n="",a=e.match(PG);if(a)for(var s=0;s!=a.length;++s){var o=a[s],c=Lt(o);switch(c[0]){case"<?xml":break;case"<Properties":break;case"<property":n=sr(c.name);break;case"</property>":n=null;break;default:if(o.indexOf("<vt:")===0){var f=o.split(">"),d=f[0].slice(4),h=f[1];switch(d){case"lpstr":case"bstr":case"lpwstr":r[n]=sr(h);break;case"bool":r[n]=Nr(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]=Pr(h);break;case"cy":case"error":r[n]=sr(h);break;default:if(d.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",o,d,f)}}else if(o.slice(0,2)!=="</"){if(t.WTF)throw new Error(o)}}}return r}function FA(e){var t=[cn,Qe("Properties",null,{xmlns:yn.CUST_PROPS,"xmlns:vt":yn.vt})];if(!e)return t.join("");var r=1;return Jr(e).forEach(function(a){++r,t[t.length]=Qe("property",VV(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Tr(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var xv={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"},fx;function LG(e,t,r){fx||(fx=bm(xv)),t=fx[t]||t,e[t]=r}function IG(e,t){var r=[];return Jr(xv).map(function(n){for(var a=0;a<Ai.length;++a)if(Ai[a][1]==n)return Ai[a];for(a=0;a<Ml.length;++a)if(Ml[a][1]==n)return Ml[a];throw n}).forEach(function(n){if(e[n[1]]!=null){var a=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(Bn(xv[n[1]]||n[1],a))}}),Qe("DocumentProperties",r.join(""),{xmlns:Ya.o})}function BG(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return e&&Jr(e).forEach(function(s){if(Object.prototype.hasOwnProperty.call(e,s)){for(var o=0;o<Ai.length;++o)if(s==Ai[o][1])return;for(o=0;o<Ml.length;++o)if(s==Ml[o][1])return;for(o=0;o<r.length;++o)if(s==r[o])return;var c=e[s],f="string";typeof c=="number"?(f="float",c=String(c)):c===!0||c===!1?(f="boolean",c=c?"1":"0"):c=String(c),a.push(Qe(ZE(s),c,{"dt:dt":f}))}}),t&&Jr(t).forEach(function(s){if(Object.prototype.hasOwnProperty.call(t,s)&&!(e&&Object.prototype.hasOwnProperty.call(e,s))){var o=t[s],c="string";typeof o=="number"?(c="float",o=String(o)):o===!0||o===!1?(c="boolean",o=o?"1":"0"):o instanceof Date?(c="dateTime.tz",o=o.toISOString()):o=String(o),a.push(Qe(ZE(s),o,{"dt:dt":c}))}}),"<"+n+' xmlns="'+Ya.o+'">'+a.join("")+"</"+n+">"}function t2(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 zG(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var s=n/Math.pow(2,32)|0;s>0&&(n=n%Math.pow(2,32),a+=s);var o=Ne(8);return o.write_shift(4,n),o.write_shift(4,a),o}function NA(e,t,r){var n=e.l,a=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return a}function PA(e,t,r){var n=e.read_shift(0,"lpwstr");return n}function jA(e,t,r){return t===31?PA(e):NA(e,t,r)}function vv(e,t,r){return jA(e,t,r===!1?0:4)}function UG(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return jA(e,t,0)}function $G(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var a=e.l;r[n]=e.read_shift(0,"lpwstr").replace(ma,""),e.l-a&2&&(e.l+=2)}return r}function HG(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(ma,"");return r}function WG(e){var t=e.l,r=Pp(e,CA);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=Pp(e,Ea);return[r,n]}function VG(e){for(var t=e.read_shift(4),r=[],n=0;n<t/2;++n)r.push(WG(e));return r}function h4(e,t){for(var r=e.read_shift(4),n={},a=0;a!=r;++a){var s=e.read_shift(4),o=e.read_shift(4);n[s]=e.read_shift(o,t===1200?"utf16le":"utf8").replace(ma,"").replace(Uf,"!"),t===1200&&o%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>3<<2),n}function LA(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 GG(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Pp(e,t,r){var n=e.read_shift(2),a,s=r||{};if(e.l+=2,t!==u4&&n!==t&&TG.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===u4?n:t){case 2:return a=e.read_shift(2,"i"),s.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return e.read_shift(4)!==0;case 19:return a=e.read_shift(4),a;case 30:return NA(e,n,4).replace(ma,"");case 31:return PA(e);case 64:return t2(e);case 65:return LA(e);case 71:return GG(e);case 80:return vv(e,n,!s.raw).replace(ma,"");case 81:return UG(e,n).replace(ma,"");case 4108:return VG(e);case 4126:case 4127:return n==4127?$G(e):HG(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function p4(e,t){var r=Ne(4),n=Ne(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Ne(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=zG(t);break;case 31:case 80:for(n=Ne(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 Rn([r,n])}function m4(e,t){var r=e.l,n=e.read_shift(4),a=e.read_shift(4),s=[],o=0,c=0,f=-1,d={};for(o=0;o!=a;++o){var h=e.read_shift(4),g=e.read_shift(4);s[o]=[h,g+r]}s.sort(function(k,E){return k[1]-E[1]});var x={};for(o=0;o!=a;++o){if(e.l!==s[o][1]){var y=!0;if(o>0&&t)switch(t[s[o-1][0]].t){case 2:e.l+2===s[o][1]&&(e.l+=2,y=!1);break;case 80:e.l<=s[o][1]&&(e.l=s[o][1],y=!1);break;case 4108:e.l<=s[o][1]&&(e.l=s[o][1],y=!1);break}if((!t||o==0)&&e.l<=s[o][1]&&(y=!1,e.l=s[o][1]),y)throw new Error("Read Error: Expected address "+s[o][1]+" at "+e.l+" :"+o)}if(t){var b=t[s[o][0]];if(x[b.n]=Pp(e,b.t,{raw:!0}),b.p==="version"&&(x[b.n]=String(x[b.n]>>16)+"."+("0000"+String(x[b.n]&65535)).slice(-4)),b.n=="CodePage")switch(x[b.n]){case 0:x[b.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:Wi(c=x[b.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+x[b.n])}}else if(s[o][0]===1){if(c=x.CodePage=Pp(e,Jy),Wi(c),f!==-1){var v=e.l;e.l=s[f][1],d=h4(e,c),e.l=v}}else if(s[o][0]===0){if(c===0){f=o,e.l=s[o+1][1];continue}d=h4(e,c)}else{var w=d[s[o][0]],C;switch(e[e.l]){case 65:e.l+=4,C=LA(e);break;case 30:e.l+=4,C=vv(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,C=vv(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,C=e.read_shift(4,"i");break;case 19:e.l+=4,C=e.read_shift(4);break;case 5:e.l+=4,C=e.read_shift(8,"f");break;case 11:e.l+=4,C=rn(e,4);break;case 64:e.l+=4,C=Pr(t2(e));break;default:throw new Error("unparsed value: "+e[e.l])}x[w]=C}}return e.l=r+n,x}var IA=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function XG(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 g4(e,t,r){var n=Ne(8),a=[],s=[],o=8,c=0,f=Ne(8),d=Ne(8);if(f.write_shift(4,2),f.write_shift(4,1200),d.write_shift(4,1),s.push(f),a.push(d),o+=8+f.length,!t){d=Ne(8),d.write_shift(4,0),a.unshift(d);var h=[Ne(4)];for(h[0].write_shift(4,e.length),c=0;c<e.length;++c){var g=e[c][0];for(f=Ne(8+2*(g.length+1)+(g.length%2?0:2)),f.write_shift(4,c+2),f.write_shift(4,g.length+1),f.write_shift(0,g,"dbcs");f.l!=f.length;)f.write_shift(1,0);h.push(f)}f=Rn(h),s.unshift(f),o+=8+f.length}for(c=0;c<e.length;++c)if(!(t&&!t[e[c][0]])&&!(IA.indexOf(e[c][0])>-1||OA.indexOf(e[c][0])>-1)&&e[c][1]!=null){var x=e[c][1],y=0;if(t){y=+t[e[c][0]];var b=r[y];if(b.p=="version"&&typeof x=="string"){var v=x.split(".");x=(+v[0]<<16)+(+v[1]||0)}f=p4(b.t,x)}else{var w=XG(x);w==-1&&(w=31,x=String(x)),f=p4(w,x)}s.push(f),d=Ne(8),d.write_shift(4,t?y:2+c),a.push(d),o+=8+f.length}var C=8*(s.length+1);for(c=0;c<s.length;++c)a[c].write_shift(4,C),C+=s[c].length;return n.write_shift(4,o),n.write_shift(4,s.length),Rn([n].concat(a).concat(s))}function x4(e,t,r){var n=e.content;if(!n)return{};In(n,0);var a,s,o,c,f=0;n.chk("feff","Byte Order: "),n.read_shift(2);var d=n.read_shift(4),h=n.read_shift(16);if(h!==kt.utils.consts.HEADER_CLSID&&h!==r)throw new Error("Bad PropertySet CLSID "+h);if(a=n.read_shift(4),a!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);if(s=n.read_shift(16),c=n.read_shift(4),a===1&&c!==n.l)throw new Error("Length mismatch: "+c+" !== "+n.l);a===2&&(o=n.read_shift(16),f=n.read_shift(4));var g=m4(n,t),x={SystemIdentifier:d};for(var y in g)x[y]=g[y];if(x.FMTID=s,a===1)return x;if(f-n.l==2&&(n.l+=2),n.l!==f)throw new Error("Length mismatch 2: "+n.l+" !== "+f);var b;try{b=m4(n,null)}catch{}for(y in b)x[y]=b[y];return x.FMTID=[s,o],x}function v4(e,t,r,n,a,s){var o=Ne(a?68:48),c=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,kt.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,a?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,a?68:48);var f=g4(e,r,n);if(c.push(f),a){var d=g4(a,null,null);o.write_shift(16,s,"hex"),o.write_shift(4,68+f.length),c.push(d)}return Rn(c)}function _o(e,t){return e.read_shift(t),null}function YG(e,t){t||(t=Ne(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function qG(e,t,r){for(var n=[],a=e.l+t;e.l<a;)n.push(r(e,a-e.l));if(a!==e.l)throw new Error("Slurp error");return n}function rn(e,t){return e.read_shift(t)===1}function fa(e,t){return t||(t=Ne(2)),t.write_shift(2,+!!e),t}function pn(e){return e.read_shift(2,"u")}function Ti(e,t){return t||(t=Ne(2)),t.write_shift(2,e),t}function BA(e,t){return qG(e,t,pn)}function KG(e){var t=e.read_shift(1),r=e.read_shift(1);return r===1?t:t===1}function zA(e,t,r){return r||(r=Ne(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function a0(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var s=e.read_shift(1);s&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var o=n?e.read_shift(n,a):"";return o}function QG(e){var t=e.read_shift(2),r=e.read_shift(1),n=r&4,a=r&8,s=1+(r&1),o=0,c,f={};a&&(o=e.read_shift(2)),n&&(c=e.read_shift(4));var d=s==2?"dbcs-cont":"sbcs-cont",h=t===0?"":e.read_shift(t,d);return a&&(e.l+=4*o),n&&(e.l+=c),f.t=h,a||(f.raw="<t>"+f.t+"</t>",f.r=f.t),f}function ZG(e){var t=e.t||"",r=Ne(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Ne(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return Rn(a)}function Hl(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 a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function i0(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Hl(e,n,r)}function Zl(e,t,r){if(r.biff>5)return i0(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 UA(e,t,r){return r||(r=Ne(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function JG(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function eX(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 a=e.read_shift((n?t-24:t)>>1,"utf16le").replace(ma,"");return n&&(e.l+=24),a}function tX(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 a=e.read_shift(4);if(a===0)return r+n.replace(/\\/g,"/");var s=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=e.read_shift(s>>1,"utf16le").replace(ma,"");return r+o}function rX(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return eX(e);case"0303000000000000c000000000000046":return tX(e);default:throw new Error("Unsupported Moniker "+r)}}function Bh(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(ma,""):"";return r}function y4(e,t){t||(t=Ne(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 nX(e,t){var r=e.l+t,n=e.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var a=e.read_shift(2);e.l+=2;var s,o,c,f,d="",h,g;a&16&&(s=Bh(e,r-e.l)),a&128&&(o=Bh(e,r-e.l)),(a&257)===257&&(c=Bh(e,r-e.l)),(a&257)===1&&(f=rX(e,r-e.l)),a&8&&(d=Bh(e,r-e.l)),a&32&&(h=e.read_shift(16)),a&64&&(g=t2(e)),e.l=r;var x=o||c||f||"";x&&d&&(x+="#"+d),x||(x="#"+d),a&2&&x.charAt(0)=="/"&&x.charAt(1)!="/"&&(x="file://"+x);var y={Target:x};return h&&(y.guid=h),g&&(y.time=g),s&&(y.Tooltip=s),y}function aX(e){var t=Ne(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),s=a>-1?31:23;switch(n.charAt(0)){case"#":s=28;break;case".":s&=-3;break}t.write_shift(4,2),t.write_shift(4,s);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)t.write_shift(4,o[r]);if(s==28)n=n.slice(1),y4(n,t);else if(s&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));var c=a>-1?n.slice(0,a):n;for(t.write_shift(4,2*(c.length+1)),r=0;r<c.length;++r)t.write_shift(2,c.charCodeAt(r));t.write_shift(2,0),s&8&&y4(a>-1?n.slice(a+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));for(var f=0;n.slice(f*3,f*3+3)=="../"||n.slice(f*3,f*3+3)=="..\\";)++f;for(t.write_shift(2,f),t.write_shift(4,n.length-3*f+1),r=0;r<n.length-3*f;++r)t.write_shift(1,n.charCodeAt(r+3*f)&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 $A(e){var t=e.read_shift(1),r=e.read_shift(1),n=e.read_shift(1),a=e.read_shift(1);return[t,r,n,a]}function HA(e,t){var r=$A(e);return r[3]=0,r}function Ss(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 Wl(e,t,r,n){return n||(n=Ne(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function iX(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}function sX(e,t,r){return t===0?"":Zl(e,t,r)}function oX(e,t,r){var n=r.biff>8?4:2,a=e.read_shift(n),s=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[a,s,o]}function WA(e){var t=e.read_shift(2),r=Zy(e);return[t,r]}function lX(e,t,r){e.l+=4,t-=4;var n=e.l+t,a=a0(e,t,r),s=e.read_shift(2);if(n-=e.l,s!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+s);return e.l+=s,a}function Tm(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function VA(e,t){return t||(t=Ne(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 GA(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),a=e.read_shift(1);return{s:{c:n,r:t},e:{c:a,r}}}var cX=GA;function XA(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 uX(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function fX(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Vn(e){e.l+=2,e.l+=e.read_shift(2)}var dX={0:Vn,4:Vn,5:Vn,6:Vn,7:fX,8:Vn,9:Vn,10:Vn,11:Vn,12:Vn,13:uX,14:Vn,15:Vn,16:Vn,17:Vn,18:Vn,19:Vn,20:Vn,21:XA};function hX(e,t){for(var r=e.l+t,n=[];e.l<r;){var a=e.read_shift(2);e.l-=2;try{n.push(dX[a](e,r-e.l))}catch{return e.l=r,n}}return e.l!=r&&(e.l=r),n}function zh(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 r2(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var s=Ne(a);return s.write_shift(2,n),s.write_shift(2,t),a>4&&s.write_shift(2,29282),a>6&&s.write_shift(2,1997),a>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function pX(e,t){return t===0||e.read_shift(2),1200}function mX(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,a=Zl(e,0,r);return e.read_shift(t+n-e.l),a}function gX(e,t){var r=!t||t.biff==8,n=Ne(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 xX(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 vX(e,t,r){var n=e.read_shift(4),a=e.read_shift(1)&3,s=e.read_shift(1);switch(s){case 0:s="Worksheet";break;case 1:s="Macrosheet";break;case 2:s="Chartsheet";break;case 6:s="VBAModule";break}var o=a0(e,0,r);return o.length===0&&(o="Sheet1"),{pos:n,hs:a,dt:s,name:o}}function yX(e,t){var r=!t||t.biff>=8?2:1,n=Ne(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 a=n.slice(0,n.l);return a.l=n.l,a}function bX(e,t){for(var r=e.l+t,n=e.read_shift(4),a=e.read_shift(4),s=[],o=0;o!=a&&e.l<r;++o)s.push(QG(e));return s.Count=n,s.Unique=a,s}function SX(e,t){var r=Ne(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],a=0;a<e.length;++a)n[a]=ZG(e[a]);var s=Rn([r].concat(n));return s.parts=[r.length].concat(n.map(function(o){return o.length})),s}function wX(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}function TX(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 CX(e){var t=iX(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var r=e.read_shift(4);return r!==0}function EX(e){return e.read_shift(2),e.read_shift(4)}function b4(e,t,r){var n=0;r&&r.biff==2||(n=e.read_shift(2));var a=e.read_shift(2);r&&r.biff==2&&(n=1-(a>>15),a&=32767);var s={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[s,a]}function _X(e){var t=e.read_shift(2),r=e.read_shift(2),n=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),d=e.read_shift(2);return{Pos:[t,r],Dim:[n,a],Flags:s,CurTab:o,FirstTab:c,Selected:f,TabRatio:d}}function kX(){var e=Ne(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 AX(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function RX(e){var t=Ne(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 OX(){}function DX(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=a0(e,0,r),n}function MX(e,t){var r=e.name||"Arial",n=t&&t.biff==5,a=n?15+r.length:16+2*r.length,s=Ne(a);return s.write_shift(2,e.sz*20),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,r.length),n||s.write_shift(1,1),s.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),s}function FX(e){var t=Ss(e);return t.isst=e.read_shift(4),t}function NX(e,t,r,n){var a=Ne(10);return Wl(e,t,n,a),a.write_shift(4,r),a}function PX(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,a=Ss(e);r.biff==2&&e.l++;var s=i0(e,n-e.l,r);return a.val=s,a}function jX(e,t,r,n,a){var s=!a||a.biff==8,o=Ne(8+ +s+(1+s)*r.length);return Wl(e,t,n,o),o.write_shift(2,r.length),s&&o.write_shift(1,1),o.write_shift((1+s)*r.length,r,s?"utf16le":"sbcs"),o}function LX(e,t,r){var n=e.read_shift(2),a=Zl(e,0,r);return[n,a]}function IX(e,t,r,n){var a=r&&r.biff==5;n||(n=Ne(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var s=n.length>n.l?n.slice(0,n.l):n;return s.l==null&&(s.l=s.length),s}var BX=Zl;function S4(e,t,r){var n=e.l+t,a=r.biff==8||!r.biff?4:2,s=e.read_shift(a),o=e.read_shift(a),c=e.read_shift(2),f=e.read_shift(2);return e.l=n,{s:{r:s,c},e:{r:o,c:f}}}function zX(e,t){var r=t.biff==8||!t.biff?4:2,n=Ne(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 UX(e){var t=e.read_shift(2),r=e.read_shift(2),n=WA(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function $X(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),s=[];e.l<r;)s.push(WA(e));if(e.l!==r)throw new Error("MulRK read error");var o=e.read_shift(2);if(s.length!=o-a+1)throw new Error("MulRK length mismatch");return{r:n,c:a,C:o,rkrec:s}}function HX(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),s=[];e.l<r;)s.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var o=e.read_shift(2);if(s.length!=o-a+1)throw new Error("MulBlank length mismatch");return{r:n,c:a,C:o,ixfe:s}}function WX(e,t,r,n){var a={},s=e.read_shift(4),o=e.read_shift(4),c=e.read_shift(4),f=e.read_shift(2);return a.patternType=CG[c>>26],n.cellStyles&&(a.alc=s&7,a.fWrap=s>>3&1,a.alcV=s>>4&7,a.fJustLast=s>>7&1,a.trot=s>>8&255,a.cIndent=s>>16&15,a.fShrinkToFit=s>>20&1,a.iReadOrder=s>>22&2,a.fAtrNum=s>>26&1,a.fAtrFnt=s>>27&1,a.fAtrAlc=s>>28&1,a.fAtrBdr=s>>29&1,a.fAtrPat=s>>30&1,a.fAtrProt=s>>31&1,a.dgLeft=o&15,a.dgRight=o>>4&15,a.dgTop=o>>8&15,a.dgBottom=o>>12&15,a.icvLeft=o>>16&127,a.icvRight=o>>23&127,a.grbitDiag=o>>30&3,a.icvTop=c&127,a.icvBottom=c>>7&127,a.icvDiag=c>>14&127,a.dgDiag=c>>21&15,a.icvFore=f&127,a.icvBack=f>>7&127,a.fsxButton=f>>14&1),a}function VX(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=WX(e,t,n.fStyle,r),n}function w4(e,t,r,n){var a=r&&r.biff==5;n||(n=Ne(a?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 s=0;return e.numFmtId>0&&a&&(s|=1024),n.write_shift(4,s),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function GX(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 XX(e){var t=Ne(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function T4(e,t,r){var n=Ss(e);(r.biff==2||t==9)&&++e.l;var a=KG(e);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}function YX(e,t,r,n,a,s){var o=Ne(8);return Wl(e,t,n,o),zA(r,s,o),o}function qX(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=Ss(e),a=Zn(e);return n.val=a,n}function KX(e,t,r,n){var a=Ne(14);return Wl(e,t,n,a),$l(r,a),a}var C4=sX;function QX(e,t,r){var n=e.l+t,a=e.read_shift(2),s=e.read_shift(2);if(r.sbcch=s,s==1025||s==14849)return[s,a];if(s<1||s>255)throw new Error("Unexpected SupBook type: "+s);for(var o=Hl(e,s),c=[];n>e.l;)c.push(i0(e));return[s,a,o,c]}function E4(e,t,r){var n=e.read_shift(2),a,s={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&&(a=lX(e,t-2,r)),s.body=a||e.read_shift(t-2),typeof a=="string"&&(s.Name=a),s}var ZX=["_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 _4(e,t,r){var n=e.l+t,a=e.read_shift(2),s=e.read_shift(1),o=e.read_shift(1),c=e.read_shift(r&&r.biff==2?1:2),f=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),f=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var d=Hl(e,o,r);a&32&&(d=ZX[d.charCodeAt(0)]);var h=n-e.l;r&&r.biff==2&&--h;var g=n==e.l||c===0||!(h>0)?[]:hZ(e,h,r,c);return{chKey:s,Name:d,itab:f,rgce:g}}function YA(e,t,r){if(r.biff<8)return JX(e,t,r);for(var n=[],a=e.l+t,s=e.read_shift(r.biff>8?4:2);s--!==0;)n.push(oX(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function JX(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=a0(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function eY(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),a=e.read_shift(2),s=Hl(e,n,r),o=Hl(e,a,r);return[s,o]}function tY(e,t,r){var n=GA(e);e.l++;var a=e.read_shift(1);return t-=8,[pZ(e,t,r),a,n]}function k4(e,t,r){var n=cX(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,fZ(e,t,r)]}function rY(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function nY(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),o=e.read_shift(2),c=Zl(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:a},c,o,s]}}function aY(e,t,r){return nY(e,t,r)}function iY(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(Tm(e));return r}function sY(e){var t=Ne(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)VA(e[r],t);return t}function oY(e,t,r){if(r&&r.biff<8)return cY(e,t,r);var n=XA(e),a=hX(e,t-22,n[1]);return{cmo:n,ft:a}}var lY={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 a=e.read_shift(1);return e.l+=a,e.l=r,{fmt:n}}};function cY(e,t,r){e.l+=4;var n=e.read_shift(2),a=e.read_shift(2),s=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 o=[];return o.push((lY[n]||aa)(e,t,r)),{cmo:[a,n,s],ft:o}}function uY(e,t,r){var n=e.l,a="";try{e.l+=4;var s=(r.lastobj||{cmo:[0,0]}).cmo[1],o;[0,5,7,11,12,14].indexOf(s)==-1?e.l+=6:o=JG(e,6,r);var c=e.read_shift(2);e.read_shift(2),pn(e,2);var f=e.read_shift(2);e.l+=f;for(var d=1;d<e.lens.length-1;++d){if(e.l-n!=e.lens[d])throw new Error("TxO: bad continue record");var h=e[e.l],g=Hl(e,e.lens[d+1]-e.lens[d]-1);if(a+=g,a.length>=(h?c:2*c))break}if(a.length!==c&&a.length!==c*2)throw new Error("cchText: "+c+" != "+a.length);return e.l=n+t,{t:a}}catch{return e.l=n+t,{t:a}}}function fY(e,t){var r=Tm(e);e.l+=16;var n=nX(e,t-24);return[r,n]}function dY(e){var t=Ne(24),r=Hr(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(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return Rn([t,aX(e[1])])}function hY(e,t){e.read_shift(2);var r=Tm(e),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(ma,""),[r,n]}function pY(e){var t=e[1].Tooltip,r=Ne(10+2*(t.length+1));r.write_shift(2,2048);var n=Hr(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 a=0;a<t.length;++a)r.write_shift(2,t.charCodeAt(a));return r.write_shift(2,0),r}function mY(e){var t=[0,0],r;return r=e.read_shift(2),t[0]=f4[r]||r,r=e.read_shift(2),t[1]=f4[r]||r,t}function gY(e){return e||(e=Ne(4)),e.write_shift(2,1),e.write_shift(2,1),e}function xY(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(HA(e));return r}function vY(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(HA(e));return r}function yY(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 qA(e,t,r){if(!r.cellStyles)return aa(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),c=e.read_shift(n),f=e.read_shift(2);n==2&&(e.l+=2);var d={s:a,e:s,w:o,ixfe:c,flags:f};return(r.biff>=5||!r.biff)&&(d.level=f>>8&7),d}function bY(e,t){var r=Ne(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 SY(e,t){var r={};return t<32||(e.l+=16,r.header=Zn(e),r.footer=Zn(e),e.l+=2),r}function wY(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var a=e.read_shift(1);return e.l+=3,a&16&&(n.area=!0),n}function TY(e){for(var t=Ne(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}var CY=Ss,EY=BA,_Y=i0;function kY(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,a}function AY(e,t,r){r.biffguess&&r.biff==5&&(r.biff=2);var n=Ss(e);++e.l;var a=Zl(e,t-7,r);return n.t="str",n.val=a,n}function RY(e){var t=Ss(e);++e.l;var r=Zn(e);return t.t="n",t.val=r,t}function OY(e,t,r){var n=Ne(15);return c0(n,e,t),n.write_shift(8,r,"f"),n}function DY(e){var t=Ss(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}function MY(e,t,r){var n=Ne(9);return c0(n,e,t),n.write_shift(2,r),n}function FY(e){var t=e.read_shift(1);return t===0?(e.l++,""):e.read_shift(t,"sbcs-cont")}function NY(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function PY(e,t,r){var n=e.l+t,a=Ss(e),s=e.read_shift(2),o=Hl(e,s,r);return e.l=n,a.t="str",a.val=o,a}var jY=[2,3,48,49,131,139,140,245],yv=(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=bm({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(c,f){var d=[],h=Uo(1);switch(f.type){case"base64":h=Za(ni(c));break;case"binary":h=Za(c);break;case"buffer":case"array":h=c;break}In(h,0);var g=h.read_shift(1),x=!!(g&136),y=!1,b=!1;switch(g){case 2:break;case 3:break;case 48:y=!0,x=!0;break;case 49:y=!0,x=!0;break;case 131:break;case 139:break;case 140:b=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+g.toString(16))}var v=0,w=521;g==2&&(v=h.read_shift(2)),h.l+=3,g!=2&&(v=h.read_shift(4)),v>1048576&&(v=1e6),g!=2&&(w=h.read_shift(2));var C=h.read_shift(2),k=f.codepage||1252;g!=2&&(h.l+=16,h.read_shift(1),h[h.l]!==0&&(k=e[h[h.l]]),h.l+=1,h.l+=2),b&&(h.l+=36);for(var E=[],D={},M=Math.min(h.length,g==2?521:w-10-(y?264:0)),A=b?32:11;h.l<M&&h[h.l]!=13;)switch(D={},D.name=Td.utils.decode(k,h.slice(h.l,h.l+A)).replace(/[\u0000\r\n].*$/g,""),h.l+=A,D.type=String.fromCharCode(h.read_shift(1)),g!=2&&!b&&(D.offset=h.read_shift(4)),D.len=h.read_shift(1),g==2&&(D.offset=h.read_shift(2)),D.dec=h.read_shift(1),D.name.length&&E.push(D),g!=2&&(h.l+=b?13:14),D.type){case"B":(!y||D.len!=8)&&f.WTF&&console.log("Skipping "+D.name+":"+D.type);break;case"G":case"P":f.WTF&&console.log("Skipping "+D.name+":"+D.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: "+D.type)}if(h[h.l]!==13&&(h.l=w-1),h.read_shift(1)!==13)throw new Error("DBF Terminator not found "+h.l+" "+h[h.l]);h.l=w;var O=0,N=0;for(d[0]=[],N=0;N!=E.length;++N)d[0][N]=E[N].name;for(;v-- >0;){if(h[h.l]===42){h.l+=C;continue}for(++h.l,d[++O]=[],N=0,N=0;N!=E.length;++N){var F=h.slice(h.l,h.l+E[N].len);h.l+=E[N].len,In(F,0);var P=Td.utils.decode(k,F);switch(E[N].type){case"C":P.trim().length&&(d[O][N]=P.replace(/\s+$/,""));break;case"D":P.length===8?d[O][N]=new Date(+P.slice(0,4),+P.slice(4,6)-1,+P.slice(6,8)):d[O][N]=P;break;case"F":d[O][N]=parseFloat(P.trim());break;case"+":case"I":d[O][N]=b?F.read_shift(-4,"i")^2147483648:F.read_shift(4,"i");break;case"L":switch(P.trim().toUpperCase()){case"Y":case"T":d[O][N]=!0;break;case"N":case"F":d[O][N]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+P+"|")}break;case"M":if(!x)throw new Error("DBF Unexpected MEMO for type "+g.toString(16));d[O][N]="##MEMO##"+(b?parseInt(P.trim(),10):F.read_shift(4));break;case"N":P=P.replace(/\u0000/g,"").trim(),P&&P!="."&&(d[O][N]=+P||0);break;case"@":d[O][N]=new Date(F.read_shift(-8,"f")-621356832e5);break;case"T":d[O][N]=new Date((F.read_shift(4)-2440588)*864e5+F.read_shift(4));break;case"Y":d[O][N]=F.read_shift(4,"i")/1e4+F.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":d[O][N]=-F.read_shift(-8,"f");break;case"B":if(y&&E[N].len==8){d[O][N]=F.read_shift(8,"f");break}case"G":case"P":F.l+=E[N].len;break;case"0":if(E[N].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+E[N].type)}}}if(g!=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 f&&f.sheetRows&&(d=d.slice(0,f.sheetRows)),f.DBF=E,d}function n(c,f){var d=f||{};d.dateNF||(d.dateNF="yyyymmdd");var h=Cu(r(c,d),d);return h["!cols"]=d.DBF.map(function(g){return{wch:g.len,DBF:g}}),delete d.DBF,h}function a(c,f){try{return el(n(c,f),f)}catch(d){if(f&&f.WTF)throw d}return{SheetNames:[],Sheets:{}}}var s={B:8,C:250,L:1,D:8,"?":0,"":0};function o(c,f){var d=f||{};if(+d.codepage>=0&&Wi(+d.codepage),d.type=="string")throw new Error("Cannot write DBF to JS string");var h=Fa(),g=Ip(c,{header:1,raw:!0,cellDates:!0}),x=g[0],y=g.slice(1),b=c["!cols"]||[],v=0,w=0,C=0,k=1;for(v=0;v<x.length;++v){if(((b[v]||{}).DBF||{}).name){x[v]=b[v].DBF.name,++C;continue}if(x[v]!=null){if(++C,typeof x[v]=="number"&&(x[v]=x[v].toString(10)),typeof x[v]!="string")throw new Error("DBF Invalid column name "+x[v]+" |"+typeof x[v]+"|");if(x.indexOf(x[v])!==v){for(w=0;w<1024;++w)if(x.indexOf(x[v]+"_"+w)==-1){x[v]+="_"+w;break}}}}var E=or(c["!ref"]),D=[],M=[],A=[];for(v=0;v<=E.e.c-E.s.c;++v){var O="",N="",F=0,P=[];for(w=0;w<y.length;++w)y[w][v]!=null&&P.push(y[w][v]);if(P.length==0||x[v]==null){D[v]="?";continue}for(w=0;w<P.length;++w){switch(typeof P[w]){case"number":N="B";break;case"string":N="C";break;case"boolean":N="L";break;case"object":N=P[w]instanceof Date?"D":"C";break;default:N="C"}F=Math.max(F,String(P[w]).length),O=O&&O!=N?"C":N}F>250&&(F=250),N=((b[v]||{}).DBF||{}).type,N=="C"&&b[v].DBF.len>F&&(F=b[v].DBF.len),O=="B"&&N=="N"&&(O="N",A[v]=b[v].DBF.dec,F=b[v].DBF.len),M[v]=O=="C"||N=="N"?F:s[O]||0,k+=M[v],D[v]=O}var j=h.next(32);for(j.write_shift(4,318902576),j.write_shift(4,y.length),j.write_shift(2,296+32*C),j.write_shift(2,k),v=0;v<4;++v)j.write_shift(4,0);for(j.write_shift(4,0|(+t[I3]||3)<<8),v=0,w=0;v<x.length;++v)if(x[v]!=null){var R=h.next(32),W=(x[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);R.write_shift(1,W,"sbcs"),R.write_shift(1,D[v]=="?"?"C":D[v],"sbcs"),R.write_shift(4,w),R.write_shift(1,M[v]||s[D[v]]||0),R.write_shift(1,A[v]||0),R.write_shift(1,2),R.write_shift(4,0),R.write_shift(1,0),R.write_shift(4,0),R.write_shift(4,0),w+=M[v]||s[D[v]]||0}var Y=h.next(264);for(Y.write_shift(4,13),v=0;v<65;++v)Y.write_shift(4,0);for(v=0;v<y.length;++v){var Z=h.next(k);for(Z.write_shift(1,0),w=0;w<x.length;++w)if(x[w]!=null)switch(D[w]){case"L":Z.write_shift(1,y[v][w]==null?63:y[v][w]?84:70);break;case"B":Z.write_shift(8,y[v][w]||0,"f");break;case"N":var B="0";for(typeof y[v][w]=="number"&&(B=y[v][w].toFixed(A[w]||0)),C=0;C<M[w]-B.length;++C)Z.write_shift(1,32);Z.write_shift(1,B,"sbcs");break;case"D":y[v][w]?(Z.write_shift(4,("0000"+y[v][w].getFullYear()).slice(-4),"sbcs"),Z.write_shift(2,("00"+(y[v][w].getMonth()+1)).slice(-2),"sbcs"),Z.write_shift(2,("00"+y[v][w].getDate()).slice(-2),"sbcs")):Z.write_shift(8,"00000000","sbcs");break;case"C":var ne=String(y[v][w]!=null?y[v][w]:"").slice(0,M[w]);for(Z.write_shift(1,ne,"sbcs"),C=0;C<M[w]-ne.length;++C)Z.write_shift(1,32);break}}return h.next(1).write_shift(1,26),h.end()}return{to_workbook:a,to_sheet:n,from_sheet:o}})(),KA=(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("+Jr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(x,y){var b=e[y];return typeof b=="number"?IE(b):b},n=function(x,y,b){var v=y.charCodeAt(0)-32<<4|b.charCodeAt(0)-48;return v==59?x:IE(v)};e["|"]=254;function a(x,y){switch(y.type){case"base64":return s(ni(x),y);case"binary":return s(x,y);case"buffer":return s(Gt&&Buffer.isBuffer(x)?x.toString("binary"):Jo(x),y);case"array":return s(Ul(x),y)}throw new Error("Unrecognized type "+y.type)}function s(x,y){var b=x.split(/[\n\r]+/),v=-1,w=-1,C=0,k=0,E=[],D=[],M=null,A={},O=[],N=[],F=[],P=0,j;for(+y.codepage>=0&&Wi(+y.codepage);C!==b.length;++C){P=0;var R=b[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),W=R.replace(/;;/g,"\0").split(";").map(function(ee){return ee.replace(/\u0000/g,";")}),Y=W[0],Z;if(R.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":W[1].charAt(0)=="P"&&D.push(R.slice(3).replace(/;;/g,";"));break;case"C":var B=!1,ne=!1,ce=!1,U=!1,H=-1,ie=-1;for(k=1;k<W.length;++k)switch(W[k].charAt(0)){case"A":break;case"X":w=parseInt(W[k].slice(1))-1,ne=!0;break;case"Y":for(v=parseInt(W[k].slice(1))-1,ne||(w=0),j=E.length;j<=v;++j)E[j]=[];break;case"K":Z=W[k].slice(1),Z.charAt(0)==='"'?Z=Z.slice(1,Z.length-1):Z==="TRUE"?Z=!0:Z==="FALSE"?Z=!1:isNaN(Yi(Z))?isNaN(du(Z).getDate())||(Z=Pr(Z)):(Z=Yi(Z),M!==null&&wu(M)&&(Z=wm(Z))),B=!0;break;case"E":U=!0;var z=ru(W[k].slice(1),{r:v,c:w});E[v][w]=[E[v][w],z];break;case"S":ce=!0,E[v][w]=[E[v][w],"S5S"];break;case"G":break;case"R":H=parseInt(W[k].slice(1))-1;break;case"C":ie=parseInt(W[k].slice(1))-1;break;default:if(y&&y.WTF)throw new Error("SYLK bad record "+R)}if(B&&(E[v][w]&&E[v][w].length==2?E[v][w][0]=Z:E[v][w]=Z,M=null),ce){if(U)throw new Error("SYLK shared formula cannot have own formula");var K=H>-1&&E[H][ie];if(!K||!K[1])throw new Error("SYLK shared formula cannot find base");E[v][w][1]=pR(K[1],{r:v-H,c:w-ie})}break;case"F":var Q=0;for(k=1;k<W.length;++k)switch(W[k].charAt(0)){case"X":w=parseInt(W[k].slice(1))-1,++Q;break;case"Y":for(v=parseInt(W[k].slice(1))-1,j=E.length;j<=v;++j)E[j]=[];break;case"M":P=parseInt(W[k].slice(1))/20;break;case"F":break;case"G":break;case"P":M=D[parseInt(W[k].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(F=W[k].slice(1).split(" "),j=parseInt(F[0],10);j<=parseInt(F[1],10);++j)P=parseInt(F[2],10),N[j-1]=P===0?{hidden:!0}:{wch:P},$o(N[j-1]);break;case"C":w=parseInt(W[k].slice(1))-1,N[w]||(N[w]={});break;case"R":v=parseInt(W[k].slice(1))-1,O[v]||(O[v]={}),P>0?(O[v].hpt=P,O[v].hpx=pu(P)):P===0&&(O[v].hidden=!0);break;default:if(y&&y.WTF)throw new Error("SYLK bad record "+R)}Q<1&&(M=null);break;default:if(y&&y.WTF)throw new Error("SYLK bad record "+R)}}return O.length>0&&(A["!rows"]=O),N.length>0&&(A["!cols"]=N),y&&y.sheetRows&&(E=E.slice(0,y.sheetRows)),[E,A]}function o(x,y){var b=a(x,y),v=b[0],w=b[1],C=Cu(v,y);return Jr(w).forEach(function(k){C[k]=w[k]}),C}function c(x,y){return el(o(x,y),y)}function f(x,y,b,v){var w="C;Y"+(b+1)+";X"+(v+1)+";K";switch(x.t){case"n":w+=x.v||0,x.f&&!x.F&&(w+=";E"+l2(x.f,{r:b,c:v}));break;case"b":w+=x.v?"TRUE":"FALSE";break;case"e":w+=x.w||x.v;break;case"d":w+='"'+(x.w||x.v)+'"';break;case"s":w+='"'+x.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return w}function d(x,y){y.forEach(function(b,v){var w="F;W"+(v+1)+" "+(v+1)+" ";b.hidden?w+="0":(typeof b.width=="number"&&!b.wpx&&(b.wpx=Dd(b.width)),typeof b.wpx=="number"&&!b.wch&&(b.wch=Md(b.wpx)),typeof b.wch=="number"&&(w+=Math.round(b.wch))),w.charAt(w.length-1)!=" "&&x.push(w)})}function h(x,y){y.forEach(function(b,v){var w="F;";b.hidden?w+="M0;":b.hpt?w+="M"+20*b.hpt+";":b.hpx&&(w+="M"+20*Fd(b.hpx)+";"),w.length>2&&x.push(w+"R"+(v+1))})}function g(x,y){var b=["ID;PWXL;N;E"],v=[],w=or(x["!ref"]),C,k=Array.isArray(x),E=`\r
`;b.push("P;PGeneral"),b.push("F;P0;DG0G8;M255"),x["!cols"]&&d(b,x["!cols"]),x["!rows"]&&h(b,x["!rows"]),b.push("B;Y"+(w.e.r-w.s.r+1)+";X"+(w.e.c-w.s.c+1)+";D"+[w.s.c,w.s.r,w.e.c,w.e.r].join(" "));for(var D=w.s.r;D<=w.e.r;++D)for(var M=w.s.c;M<=w.e.c;++M){var A=Pt({r:D,c:M});C=k?(x[D]||[])[M]:x[A],!(!C||C.v==null&&(!C.f||C.F))&&v.push(f(C,x,D,M))}return b.join(E)+E+v.join(E)+E+"E"+E}return{to_workbook:c,to_sheet:o,from_sheet:g}})(),QA=(function(){function e(s,o){switch(o.type){case"base64":return t(ni(s),o);case"binary":return t(s,o);case"buffer":return t(Gt&&Buffer.isBuffer(s)?s.toString("binary"):Jo(s),o);case"array":return t(Ul(s),o)}throw new Error("Unrecognized type "+o.type)}function t(s,o){for(var c=s.split(`
`),f=-1,d=-1,h=0,g=[];h!==c.length;++h){if(c[h].trim()==="BOT"){g[++f]=[],d=0;continue}if(!(f<0)){var x=c[h].trim().split(","),y=x[0],b=x[1];++h;for(var v=c[h]||"";(v.match(/["]/g)||[]).length&1&&h<c.length-1;)v+=`
`+c[++h];switch(v=v.trim(),+y){case-1:if(v==="BOT"){g[++f]=[],d=0;continue}else if(v!=="EOD")throw new Error("Unrecognized DIF special command "+v);break;case 0:v==="TRUE"?g[f][d]=!0:v==="FALSE"?g[f][d]=!1:isNaN(Yi(b))?isNaN(du(b).getDate())?g[f][d]=b:g[f][d]=Pr(b):g[f][d]=Yi(b),++d;break;case 1:v=v.slice(1,v.length-1),v=v.replace(/""/g,'"'),v&&v.match(/^=".*"$/)&&(v=v.slice(2,-1)),g[f][d++]=v!==""?v:null;break}if(v==="EOD")break}}return o&&o.sheetRows&&(g=g.slice(0,o.sheetRows)),g}function r(s,o){return Cu(e(s,o),o)}function n(s,o){return el(r(s,o),o)}var a=(function(){var s=function(f,d,h,g,x){f.push(d),f.push(h+","+g),f.push('"'+x.replace(/"/g,'""')+'"')},o=function(f,d,h,g){f.push(d+","+h),f.push(d==1?'"'+g.replace(/"/g,'""')+'"':g)};return function(f){var d=[],h=or(f["!ref"]),g,x=Array.isArray(f);s(d,"TABLE",0,1,"sheetjs"),s(d,"VECTORS",0,h.e.r-h.s.r+1,""),s(d,"TUPLES",0,h.e.c-h.s.c+1,""),s(d,"DATA",0,0,"");for(var y=h.s.r;y<=h.e.r;++y){o(d,-1,0,"BOT");for(var b=h.s.c;b<=h.e.c;++b){var v=Pt({r:y,c:b});if(g=x?(f[y]||[])[b]:f[v],!g){o(d,1,0,"");continue}switch(g.t){case"n":var w=g.w;!w&&g.v!=null&&(w=g.v),w==null?g.f&&!g.F?o(d,1,0,"="+g.f):o(d,1,0,""):o(d,0,w,"V");break;case"b":o(d,0,g.v?1:0,g.v?"TRUE":"FALSE");break;case"s":o(d,1,0,isNaN(g.v)?g.v:'="'+g.v+'"');break;case"d":g.w||(g.w=Fi(g.z||Ft[14],Sn(Pr(g.v)))),o(d,0,g.w,"V");break;default:o(d,1,0,"")}}}o(d,-1,0,"EOD");var C=`\r
`,k=d.join(C);return k}})();return{to_workbook:n,to_sheet:r,from_sheet:a}})(),ZA=(function(){function e(g){return g.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(g){return g.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(g,x){for(var y=g.split(`
`),b=-1,v=-1,w=0,C=[];w!==y.length;++w){var k=y[w].trim().split(":");if(k[0]==="cell"){var E=Hr(k[1]);if(C.length<=E.r)for(b=C.length;b<=E.r;++b)C[b]||(C[b]=[]);switch(b=E.r,v=E.c,k[2]){case"t":C[b][v]=e(k[3]);break;case"v":C[b][v]=+k[3];break;case"vtf":var D=k[k.length-1];case"vtc":switch(k[3]){case"nl":C[b][v]=!!+k[4];break;default:C[b][v]=+k[4];break}k[2]=="vtf"&&(C[b][v]=[C[b][v],D])}}}return x&&x.sheetRows&&(C=C.slice(0,x.sheetRows)),C}function n(g,x){return Cu(r(g,x),x)}function a(g,x){return el(n(g,x),x)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,c=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),f="--SocialCalcSpreadsheetControlSave--";function d(g){if(!g||!g["!ref"])return"";for(var x=[],y=[],b,v="",w=Pa(g["!ref"]),C=Array.isArray(g),k=w.s.r;k<=w.e.r;++k)for(var E=w.s.c;E<=w.e.c;++E)if(v=Pt({r:k,c:E}),b=C?(g[k]||[])[E]:g[v],!(!b||b.v==null||b.t==="z")){switch(y=["cell",v,"t"],b.t){case"s":case"str":y.push(t(b.v));break;case"n":b.f?(y[2]="vtf",y[3]="n",y[4]=b.v,y[5]=t(b.f)):(y[2]="v",y[3]=b.v);break;case"b":y[2]="vt"+(b.f?"f":"c"),y[3]="nl",y[4]=b.v?"1":"0",y[5]=t(b.f||(b.v?"TRUE":"FALSE"));break;case"d":var D=Sn(Pr(b.v));y[2]="vtc",y[3]="nd",y[4]=""+D,y[5]=b.w||Fi(b.z||Ft[14],D);break;case"e":continue}x.push(y.join(":"))}return x.push("sheet:c:"+(w.e.c-w.s.c+1)+":r:"+(w.e.r-w.s.r+1)+":tvf:1"),x.push("valueformat:1:text-wiki"),x.join(`
`)}function h(g){return[s,o,c,o,d(g),f].join(`
`)}return{to_workbook:a,to_sheet:n,from_sheet:h}})(),hu=(function(){function e(h,g,x,y,b){b.raw?g[x][y]=h:h===""||(h==="TRUE"?g[x][y]=!0:h==="FALSE"?g[x][y]=!1:isNaN(Yi(h))?isNaN(du(h).getDate())?g[x][y]=h:g[x][y]=Pr(h):g[x][y]=Yi(h))}function t(h,g){var x=g||{},y=[];if(!h||h.length===0)return y;for(var b=h.split(/[\r\n]/),v=b.length-1;v>=0&&b[v].length===0;)--v;for(var w=10,C=0,k=0;k<=v;++k)C=b[k].indexOf(" "),C==-1?C=b[k].length:C++,w=Math.max(w,C);for(k=0;k<=v;++k){y[k]=[];var E=0;for(e(b[k].slice(0,w).trim(),y,k,E,x),E=1;E<=(b[k].length-w)/10+1;++E)e(b[k].slice(w+(E-1)*10,w+E*10).trim(),y,k,E,x)}return x.sheetRows&&(y=y.slice(0,x.sheetRows)),y}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(h){for(var g={},x=!1,y=0,b=0;y<h.length;++y)(b=h.charCodeAt(y))==34?x=!x:!x&&b in r&&(g[b]=(g[b]||0)+1);b=[];for(y in g)Object.prototype.hasOwnProperty.call(g,y)&&b.push([g[y],y]);if(!b.length){g=n;for(y in g)Object.prototype.hasOwnProperty.call(g,y)&&b.push([g[y],y])}return b.sort(function(v,w){return v[0]-w[0]||n[v[1]]-n[w[1]]}),r[b.pop()[1]]||44}function s(h,g){var x=g||{},y="",b=x.dense?[]:{},v={s:{c:0,r:0},e:{c:0,r:0}};h.slice(0,4)=="sep="?h.charCodeAt(5)==13&&h.charCodeAt(6)==10?(y=h.charAt(4),h=h.slice(7)):h.charCodeAt(5)==13||h.charCodeAt(5)==10?(y=h.charAt(4),h=h.slice(6)):y=a(h.slice(0,1024)):x&&x.FS?y=x.FS:y=a(h.slice(0,1024));var w=0,C=0,k=0,E=0,D=0,M=y.charCodeAt(0),A=!1,O=0,N=h.charCodeAt(0);h=h.replace(/\r\n/mg,`
`);var F=x.dateNF!=null?wV(x.dateNF):null;function P(){var j=h.slice(E,D),R={};if(j.charAt(0)=='"'&&j.charAt(j.length-1)=='"'&&(j=j.slice(1,-1).replace(/""/g,'"')),j.length===0)R.t="z";else if(x.raw)R.t="s",R.v=j;else if(j.trim().length===0)R.t="s",R.v=j;else if(j.charCodeAt(0)==61)j.charCodeAt(1)==34&&j.charCodeAt(j.length-1)==34?(R.t="s",R.v=j.slice(2,-1).replace(/""/g,'"')):QK(j)?(R.t="n",R.f=j.slice(1)):(R.t="s",R.v=j);else if(j=="TRUE")R.t="b",R.v=!0;else if(j=="FALSE")R.t="b",R.v=!1;else if(!isNaN(k=Yi(j)))R.t="n",x.cellText!==!1&&(R.w=j),R.v=k;else if(!isNaN(du(j).getDate())||F&&j.match(F)){R.z=x.dateNF||Ft[14];var W=0;F&&j.match(F)&&(j=TV(j,x.dateNF,j.match(F)||[]),W=1),x.cellDates?(R.t="d",R.v=Pr(j,W)):(R.t="n",R.v=Sn(Pr(j,W))),x.cellText!==!1&&(R.w=Fi(R.z,R.v instanceof Date?Sn(R.v):R.v)),x.cellNF||delete R.z}else R.t="s",R.v=j;if(R.t=="z"||(x.dense?(b[w]||(b[w]=[]),b[w][C]=R):b[Pt({c:C,r:w})]=R),E=D+1,N=h.charCodeAt(E),v.e.c<C&&(v.e.c=C),v.e.r<w&&(v.e.r=w),O==M)++C;else if(C=0,++w,x.sheetRows&&x.sheetRows<=w)return!0}e:for(;D<h.length;++D)switch(O=h.charCodeAt(D)){case 34:N===34&&(A=!A);break;case M:case 10:case 13:if(!A&&P())break e;break}return D-E>0&&P(),b["!ref"]=zt(v),b}function o(h,g){return!(g&&g.PRN)||g.FS||h.slice(0,4)=="sep="||h.indexOf("	")>=0||h.indexOf(",")>=0||h.indexOf(";")>=0?s(h,g):Cu(t(h,g),g)}function c(h,g){var x="",y=g.type=="string"?[0,0,0,0]:g2(h,g);switch(g.type){case"base64":x=ni(h);break;case"binary":x=h;break;case"buffer":g.codepage==65001?x=h.toString("utf8"):g.codepage&&typeof Td<"u"||(x=Gt&&Buffer.isBuffer(h)?h.toString("binary"):Jo(h));break;case"array":x=Ul(h);break;case"string":x=h;break;default:throw new Error("Unrecognized type "+g.type)}return y[0]==239&&y[1]==187&&y[2]==191?x=Ar(x.slice(3)):g.type!="string"&&g.type!="buffer"&&g.codepage==65001?x=Ar(x):g.type=="binary"&&typeof Td<"u",x.slice(0,19)=="socialcalc:version:"?ZA.to_sheet(g.type=="string"?x:Ar(x),g):o(x,g)}function f(h,g){return el(c(h,g),g)}function d(h){for(var g=[],x=or(h["!ref"]),y,b=Array.isArray(h),v=x.s.r;v<=x.e.r;++v){for(var w=[],C=x.s.c;C<=x.e.c;++C){var k=Pt({r:v,c:C});if(y=b?(h[v]||[])[C]:h[k],!y||y.v==null){w.push("          ");continue}for(var E=(y.w||(Ks(y),y.w)||"").slice(0,10);E.length<10;)E+=" ";w.push(E+(C===0?" ":""))}g.push(w.join(""))}return g.join(`
`)}return{to_workbook:f,to_sheet:c,from_sheet:d}})();function LY(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=KA.to_workbook(e,r);return r.WTF=n,a}catch(s){if(r.WTF=n,!s.message.match(/SYLK bad record ID/)&&n)throw s;return hu.to_workbook(e,t)}}var Fl=(function(){function e(z,K,Q){if(z){In(z,z.l||0);for(var ee=Q.Enum||H;z.l<z.length;){var ae=z.read_shift(2),xe=ee[ae]||ee[65535],ye=z.read_shift(2),Te=z.l+ye,he=xe.f&&xe.f(z,ye,Q);if(z.l=Te,K(he,xe,ae))return}}}function t(z,K){switch(K.type){case"base64":return r(Za(ni(z)),K);case"binary":return r(Za(z),K);case"buffer":case"array":return r(z,K)}throw"Unsupported type "+K.type}function r(z,K){if(!z)return z;var Q=K||{},ee=Q.dense?[]:{},ae="Sheet1",xe="",ye=0,Te={},he=[],Ve=[],te={s:{r:0,c:0},e:{r:0,c:0}},rt=Q.sheetRows||0;if(z[2]==0&&(z[3]==8||z[3]==9)&&z.length>=16&&z[14]==5&&z[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(z[2]==2)Q.Enum=H,e(z,function(Ae,st,yt){switch(yt){case 0:Q.vers=Ae,Ae>=4096&&(Q.qpro=!0);break;case 6:te=Ae;break;case 204:Ae&&(xe=Ae);break;case 222:xe=Ae;break;case 15:case 51:Q.qpro||(Ae[1].v=Ae[1].v.slice(1));case 13:case 14:case 16:yt==14&&(Ae[2]&112)==112&&(Ae[2]&15)>1&&(Ae[2]&15)<15&&(Ae[1].z=Q.dateNF||Ft[14],Q.cellDates&&(Ae[1].t="d",Ae[1].v=wm(Ae[1].v))),Q.qpro&&Ae[3]>ye&&(ee["!ref"]=zt(te),Te[ae]=ee,he.push(ae),ee=Q.dense?[]:{},te={s:{r:0,c:0},e:{r:0,c:0}},ye=Ae[3],ae=xe||"Sheet"+(ye+1),xe="");var Ct=Q.dense?(ee[Ae[0].r]||[])[Ae[0].c]:ee[Pt(Ae[0])];if(Ct){Ct.t=Ae[1].t,Ct.v=Ae[1].v,Ae[1].z!=null&&(Ct.z=Ae[1].z),Ae[1].f!=null&&(Ct.f=Ae[1].f);break}Q.dense?(ee[Ae[0].r]||(ee[Ae[0].r]=[]),ee[Ae[0].r][Ae[0].c]=Ae[1]):ee[Pt(Ae[0])]=Ae[1];break}},Q);else if(z[2]==26||z[2]==14)Q.Enum=ie,z[2]==14&&(Q.qpro=!0,z.l=0),e(z,function(Ae,st,yt){switch(yt){case 204:ae=Ae;break;case 22:Ae[1].v=Ae[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Ae[3]>ye&&(ee["!ref"]=zt(te),Te[ae]=ee,he.push(ae),ee=Q.dense?[]:{},te={s:{r:0,c:0},e:{r:0,c:0}},ye=Ae[3],ae="Sheet"+(ye+1)),rt>0&&Ae[0].r>=rt)break;Q.dense?(ee[Ae[0].r]||(ee[Ae[0].r]=[]),ee[Ae[0].r][Ae[0].c]=Ae[1]):ee[Pt(Ae[0])]=Ae[1],te.e.c<Ae[0].c&&(te.e.c=Ae[0].c),te.e.r<Ae[0].r&&(te.e.r=Ae[0].r);break;case 27:Ae[14e3]&&(Ve[Ae[14e3][0]]=Ae[14e3][1]);break;case 1537:Ve[Ae[0]]=Ae[1],Ae[0]==ye&&(ae=Ae[1]);break}},Q);else throw new Error("Unrecognized LOTUS BOF "+z[2]);if(ee["!ref"]=zt(te),Te[xe||ae]=ee,he.push(xe||ae),!Ve.length)return{SheetNames:he,Sheets:Te};for(var Ue={},ve=[],Ge=0;Ge<Ve.length;++Ge)Te[he[Ge]]?(ve.push(Ve[Ge]||he[Ge]),Ue[Ve[Ge]]=Te[Ve[Ge]]||Te[he[Ge]]):(ve.push(Ve[Ge]),Ue[Ve[Ge]]={"!ref":"A1"});return{SheetNames:ve,Sheets:Ue}}function n(z,K){var Q=K||{};if(+Q.codepage>=0&&Wi(+Q.codepage),Q.type=="string")throw new Error("Cannot write WK1 to JS string");var ee=Fa(),ae=or(z["!ref"]),xe=Array.isArray(z),ye=[];Ze(ee,0,s(1030)),Ze(ee,6,f(ae));for(var Te=Math.min(ae.e.r,8191),he=ae.s.r;he<=Te;++he)for(var Ve=on(he),te=ae.s.c;te<=ae.e.c;++te){he===ae.s.r&&(ye[te]=$r(te));var rt=ye[te]+Ve,Ue=xe?(z[he]||[])[te]:z[rt];if(!(!Ue||Ue.t=="z"))if(Ue.t=="n")(Ue.v|0)==Ue.v&&Ue.v>=-32768&&Ue.v<=32767?Ze(ee,13,y(he,te,Ue.v)):Ze(ee,14,v(he,te,Ue.v));else{var ve=Ks(Ue);Ze(ee,15,g(he,te,ve.slice(0,239)))}}return Ze(ee,1),ee.end()}function a(z,K){var Q=K||{};if(+Q.codepage>=0&&Wi(+Q.codepage),Q.type=="string")throw new Error("Cannot write WK3 to JS string");var ee=Fa();Ze(ee,0,o(z));for(var ae=0,xe=0;ae<z.SheetNames.length;++ae)(z.Sheets[z.SheetNames[ae]]||{})["!ref"]&&Ze(ee,27,U(z.SheetNames[ae],xe++));var ye=0;for(ae=0;ae<z.SheetNames.length;++ae){var Te=z.Sheets[z.SheetNames[ae]];if(!(!Te||!Te["!ref"])){for(var he=or(Te["!ref"]),Ve=Array.isArray(Te),te=[],rt=Math.min(he.e.r,8191),Ue=he.s.r;Ue<=rt;++Ue)for(var ve=on(Ue),Ge=he.s.c;Ge<=he.e.c;++Ge){Ue===he.s.r&&(te[Ge]=$r(Ge));var Ae=te[Ge]+ve,st=Ve?(Te[Ue]||[])[Ge]:Te[Ae];if(!(!st||st.t=="z"))if(st.t=="n")Ze(ee,23,P(Ue,Ge,ye,st.v));else{var yt=Ks(st);Ze(ee,22,O(Ue,Ge,ye,yt.slice(0,239)))}}++ye}}return Ze(ee,1),ee.end()}function s(z){var K=Ne(2);return K.write_shift(2,z),K}function o(z){var K=Ne(26);K.write_shift(2,4096),K.write_shift(2,4),K.write_shift(4,0);for(var Q=0,ee=0,ae=0,xe=0;xe<z.SheetNames.length;++xe){var ye=z.SheetNames[xe],Te=z.Sheets[ye];if(!(!Te||!Te["!ref"])){++ae;var he=Pa(Te["!ref"]);Q<he.e.r&&(Q=he.e.r),ee<he.e.c&&(ee=he.e.c)}}return Q>8191&&(Q=8191),K.write_shift(2,Q),K.write_shift(1,ae),K.write_shift(1,ee),K.write_shift(2,0),K.write_shift(2,0),K.write_shift(1,1),K.write_shift(1,2),K.write_shift(4,0),K.write_shift(4,0),K}function c(z,K,Q){var ee={s:{c:0,r:0},e:{c:0,r:0}};return K==8&&Q.qpro?(ee.s.c=z.read_shift(1),z.l++,ee.s.r=z.read_shift(2),ee.e.c=z.read_shift(1),z.l++,ee.e.r=z.read_shift(2),ee):(ee.s.c=z.read_shift(2),ee.s.r=z.read_shift(2),K==12&&Q.qpro&&(z.l+=2),ee.e.c=z.read_shift(2),ee.e.r=z.read_shift(2),K==12&&Q.qpro&&(z.l+=2),ee.s.c==65535&&(ee.s.c=ee.e.c=ee.s.r=ee.e.r=0),ee)}function f(z){var K=Ne(8);return K.write_shift(2,z.s.c),K.write_shift(2,z.s.r),K.write_shift(2,z.e.c),K.write_shift(2,z.e.r),K}function d(z,K,Q){var ee=[{c:0,r:0},{t:"n",v:0},0,0];return Q.qpro&&Q.vers!=20768?(ee[0].c=z.read_shift(1),ee[3]=z.read_shift(1),ee[0].r=z.read_shift(2),z.l+=2):(ee[2]=z.read_shift(1),ee[0].c=z.read_shift(2),ee[0].r=z.read_shift(2)),ee}function h(z,K,Q){var ee=z.l+K,ae=d(z,K,Q);if(ae[1].t="s",Q.vers==20768){z.l++;var xe=z.read_shift(1);return ae[1].v=z.read_shift(xe,"utf8"),ae}return Q.qpro&&z.l++,ae[1].v=z.read_shift(ee-z.l,"cstr"),ae}function g(z,K,Q){var ee=Ne(7+Q.length);ee.write_shift(1,255),ee.write_shift(2,K),ee.write_shift(2,z),ee.write_shift(1,39);for(var ae=0;ae<ee.length;++ae){var xe=Q.charCodeAt(ae);ee.write_shift(1,xe>=128?95:xe)}return ee.write_shift(1,0),ee}function x(z,K,Q){var ee=d(z,K,Q);return ee[1].v=z.read_shift(2,"i"),ee}function y(z,K,Q){var ee=Ne(7);return ee.write_shift(1,255),ee.write_shift(2,K),ee.write_shift(2,z),ee.write_shift(2,Q,"i"),ee}function b(z,K,Q){var ee=d(z,K,Q);return ee[1].v=z.read_shift(8,"f"),ee}function v(z,K,Q){var ee=Ne(13);return ee.write_shift(1,255),ee.write_shift(2,K),ee.write_shift(2,z),ee.write_shift(8,Q,"f"),ee}function w(z,K,Q){var ee=z.l+K,ae=d(z,K,Q);if(ae[1].v=z.read_shift(8,"f"),Q.qpro)z.l=ee;else{var xe=z.read_shift(2);D(z.slice(z.l,z.l+xe),ae),z.l+=xe}return ae}function C(z,K,Q){var ee=K&32768;return K&=-32769,K=(ee?z:0)+(K>=8192?K-16384:K),(ee?"":"$")+(Q?$r(K):on(K))}var k={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]},E=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function D(z,K){In(z,0);for(var Q=[],ee=0,ae="",xe="",ye="",Te="";z.l<z.length;){var he=z[z.l++];switch(he){case 0:Q.push(z.read_shift(8,"f"));break;case 1:xe=C(K[0].c,z.read_shift(2),!0),ae=C(K[0].r,z.read_shift(2),!1),Q.push(xe+ae);break;case 2:{var Ve=C(K[0].c,z.read_shift(2),!0),te=C(K[0].r,z.read_shift(2),!1);xe=C(K[0].c,z.read_shift(2),!0),ae=C(K[0].r,z.read_shift(2),!1),Q.push(Ve+te+":"+xe+ae)}break;case 3:if(z.l<z.length){console.error("WK1 premature formula end");return}break;case 4:Q.push("("+Q.pop()+")");break;case 5:Q.push(z.read_shift(2));break;case 6:{for(var rt="";he=z[z.l++];)rt+=String.fromCharCode(he);Q.push('"'+rt.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:Te=Q.pop(),ye=Q.pop(),Q.push(["AND","OR"][he-20]+"("+ye+","+Te+")");break;default:if(he<32&&E[he])Te=Q.pop(),ye=Q.pop(),Q.push(ye+E[he]+Te);else if(k[he]){if(ee=k[he][1],ee==69&&(ee=z[z.l++]),ee>Q.length){console.error("WK1 bad formula parse 0x"+he.toString(16)+":|"+Q.join("|")+"|");return}var Ue=Q.slice(-ee);Q.length-=ee,Q.push(k[he][0]+"("+Ue.join(",")+")")}else return he<=7?console.error("WK1 invalid opcode "+he.toString(16)):he<=24?console.error("WK1 unsupported op "+he.toString(16)):he<=30?console.error("WK1 invalid opcode "+he.toString(16)):he<=115?console.error("WK1 unsupported function opcode "+he.toString(16)):console.error("WK1 unrecognized opcode "+he.toString(16))}}Q.length==1?K[1].f=""+Q[0]:console.error("WK1 bad formula parse |"+Q.join("|")+"|")}function M(z){var K=[{c:0,r:0},{t:"n",v:0},0];return K[0].r=z.read_shift(2),K[3]=z[z.l++],K[0].c=z[z.l++],K}function A(z,K){var Q=M(z);return Q[1].t="s",Q[1].v=z.read_shift(K-4,"cstr"),Q}function O(z,K,Q,ee){var ae=Ne(6+ee.length);ae.write_shift(2,z),ae.write_shift(1,Q),ae.write_shift(1,K),ae.write_shift(1,39);for(var xe=0;xe<ee.length;++xe){var ye=ee.charCodeAt(xe);ae.write_shift(1,ye>=128?95:ye)}return ae.write_shift(1,0),ae}function N(z,K){var Q=M(z);Q[1].v=z.read_shift(2);var ee=Q[1].v>>1;if(Q[1].v&1)switch(ee&7){case 0:ee=(ee>>3)*5e3;break;case 1:ee=(ee>>3)*500;break;case 2:ee=(ee>>3)/20;break;case 3:ee=(ee>>3)/200;break;case 4:ee=(ee>>3)/2e3;break;case 5:ee=(ee>>3)/2e4;break;case 6:ee=(ee>>3)/16;break;case 7:ee=(ee>>3)/64;break}return Q[1].v=ee,Q}function F(z,K){var Q=M(z),ee=z.read_shift(4),ae=z.read_shift(4),xe=z.read_shift(2);if(xe==65535)return ee===0&&ae===3221225472?(Q[1].t="e",Q[1].v=15):ee===0&&ae===3489660928?(Q[1].t="e",Q[1].v=42):Q[1].v=0,Q;var ye=xe&32768;return xe=(xe&32767)-16446,Q[1].v=(1-ye*2)*(ae*Math.pow(2,xe+32)+ee*Math.pow(2,xe)),Q}function P(z,K,Q,ee){var ae=Ne(14);if(ae.write_shift(2,z),ae.write_shift(1,Q),ae.write_shift(1,K),ee==0)return ae.write_shift(4,0),ae.write_shift(4,0),ae.write_shift(2,65535),ae;var xe=0,ye=0,Te=0,he=0;return ee<0&&(xe=1,ee=-ee),ye=Math.log2(ee)|0,ee/=Math.pow(2,ye-31),he=ee>>>0,(he&2147483648)==0&&(ee/=2,++ye,he=ee>>>0),ee-=he,he|=2147483648,he>>>=0,ee*=Math.pow(2,32),Te=ee>>>0,ae.write_shift(4,Te),ae.write_shift(4,he),ye+=16383+(xe?32768:0),ae.write_shift(2,ye),ae}function j(z,K){var Q=F(z);return z.l+=K-14,Q}function R(z,K){var Q=M(z),ee=z.read_shift(4);return Q[1].v=ee>>6,Q}function W(z,K){var Q=M(z),ee=z.read_shift(8,"f");return Q[1].v=ee,Q}function Y(z,K){var Q=W(z);return z.l+=K-10,Q}function Z(z,K){return z[z.l+K-1]==0?z.read_shift(K,"cstr"):""}function B(z,K){var Q=z[z.l++];Q>K-1&&(Q=K-1);for(var ee="";ee.length<Q;)ee+=String.fromCharCode(z[z.l++]);return ee}function ne(z,K,Q){if(!(!Q.qpro||K<21)){var ee=z.read_shift(1);z.l+=17,z.l+=1,z.l+=2;var ae=z.read_shift(K-21,"cstr");return[ee,ae]}}function ce(z,K){for(var Q={},ee=z.l+K;z.l<ee;){var ae=z.read_shift(2);if(ae==14e3){for(Q[ae]=[0,""],Q[ae][0]=z.read_shift(2);z[z.l];)Q[ae][1]+=String.fromCharCode(z[z.l]),z.l++;z.l++}}return Q}function U(z,K){var Q=Ne(5+z.length);Q.write_shift(2,14e3),Q.write_shift(2,K);for(var ee=0;ee<z.length;++ee){var ae=z.charCodeAt(ee);Q[Q.l++]=ae>127?95:ae}return Q[Q.l++]=0,Q}var H={0:{n:"BOF",f:pn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:c},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:x},14:{n:"NUMBER",f:b},15:{n:"LABEL",f:h},16:{n:"FORMULA",f:w},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:Z},222:{n:"SHEETNAMELP",f:B},65535:{n:""}},ie={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:A},23:{n:"NUMBER17",f:F},24:{n:"NUMBER18",f:N},25:{n:"FORMULA19",f:j},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:R},38:{n:"??"},39:{n:"NUMBER27",f:W},40:{n:"FORMULA28",f:Y},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:Z},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:ne},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:a,to_workbook:t}})();function IY(e){var t={},r=e.match(ia),n=0,a=!1;if(r)for(;n!=r.length;++n){var s=Lt(r[n]);switch(s[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!s.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if(s.val=="1")break;t.cp=Fy[parseInt(s.val,10)];break;case"<outline":if(!s.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=s.val;break;case"<sz":t.sz=s.val;break;case"<strike":if(!s.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!s.val)break;switch(s.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(s.val=="0")break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if(s.val=="0")break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":s.rgb&&(t.color=s.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=s.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=s.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":a=!0;break;case"</ext>":a=!1;break;default:if(s[0].charCodeAt(1)!==47&&!a)throw new Error("Unrecognized rich format "+s[0])}}return t}var BY=(function(){var e=_d("t"),t=_d("rPr");function r(s){var o=s.match(e);if(!o)return{t:"s",v:""};var c={t:"s",v:sr(o[1])},f=s.match(t);return f&&(c.s=IY(f[1])),c}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(o){return o.replace(n,"").split(a).map(r).filter(function(c){return c.v})}})(),zY=(function(){var t=/(\r\n|\n)/g;function r(a,s,o){var c=[];a.u&&c.push("text-decoration: underline;"),a.uval&&c.push("text-underline-style:"+a.uval+";"),a.sz&&c.push("font-size:"+a.sz+"pt;"),a.outline&&c.push("text-effect: outline;"),a.shadow&&c.push("text-shadow: auto;"),s.push('<span style="'+c.join("")+'">'),a.b&&(s.push("<b>"),o.push("</b>")),a.i&&(s.push("<i>"),o.push("</i>")),a.strike&&(s.push("<s>"),o.push("</s>"));var f=a.valign||"";return f=="superscript"||f=="super"?f="sup":f=="subscript"&&(f="sub"),f!=""&&(s.push("<"+f+">"),o.push("</"+f+">")),o.push("</span>"),a}function n(a){var s=[[],a.v,[]];return a.v?(a.s&&r(a.s,s[0],s[2]),s[0].join("")+s[1].replace(t,"<br/>")+s[2].join("")):""}return function(s){return s.map(n).join("")}})(),UY=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,$Y=/<(?:\w+:)?r>/,HY=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function n2(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=sr(Ar(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Ar(e),r&&(n.h=Hy(n.t))):e.match($Y)&&(n.r=Ar(e),n.t=sr(Ar((e.replace(HY,"").match(UY)||[]).join("").replace(ia,""))),r&&(n.h=zY(BY(n.r)))),n):{t:""}}var WY=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,VY=/<(?:\w+:)?(?:si|sstItem)>/g,GY=/<\/(?:\w+:)?(?:si|sstItem)>/;function XY(e,t){var r=[],n="";if(!e)return r;var a=e.match(WY);if(a){n=a[2].replace(VY,"").split(GY);for(var s=0;s!=n.length;++s){var o=n2(n[s].trim(),t);o!=null&&(r[r.length]=o)}a=Lt(a[1]),r.Count=a.count,r.Unique=a.uniqueCount}return r}var YY=/^\s|\s$|[\t\n\r]/;function JA(e,t){if(!t.bookSST)return"";var r=[cn];r[r.length]=Qe("sst",null,{xmlns:Xl[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],s="<si>";a.r?s+=a.r:(s+="<t",a.t||(a.t=""),a.t.match(YY)&&(s+=' xml:space="preserve"'),s+=">"+Tr(a.t)+"</t>"),s+="</si>",r[r.length]=s}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function qY(e){return[e.read_shift(4),e.read_shift(4)]}function KY(e,t){var r=[],n=!1;return eo(e,function(s,o,c){switch(c){case 159:r.Count=s[0],r.Unique=s[1];break;case 19:r.push(s);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(o.T,!n||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}),r}function QY(e,t){return t||(t=Ne(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var ZY=lG;function JY(e){var t=Fa();He(t,159,QY(e));for(var r=0;r<e.length;++r)He(t,19,ZY(e[r]));return He(t,160),t.end()}function eR(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function $s(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 eq(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=$s(e,4),t.U=$s(e,4),t.W=$s(e,4),t}function tq(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},a=e.read_shift(4),s=[];a-- >0;)s.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=s,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function rq(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(tq(e));return t}function nq(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 aq(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=$s(e,4),t.U=$s(e,4),t.W=$s(e,4),t}function iq(e){var t=aq(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 tR(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 a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)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 rR(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 sq(e){var t=$s(e);switch(t.Minor){case 2:return[t.Minor,oq(e)];case 3:return[t.Minor,lq()];case 4:return[t.Minor,cq(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function oq(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=tR(e,r),a=rR(e,e.length-e.l);return{t:"Std",h:n,v:a}}function lq(){throw new Error("File is password-protected: ECMA-376 Extensible")}function cq(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(ia,function(s){var o=Lt(s);switch(bs(o[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach(function(c){n[c]=o[c]});break;case"<dataIntegrity":n.encryptedHmacKey=o.encryptedHmacKey,n.encryptedHmacValue=o.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=o.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(o);break;default:throw o[0]}}),n}function uq(e,t){var r={},n=r.EncryptionVersionInfo=$s(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 a=e.read_shift(4);return t-=4,r.EncryptionHeader=tR(e,a),t-=a,r.EncryptionVerifier=rR(e,t),r}function fq(e){var t={},r=t.EncryptionVersionInfo=$s(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 a2(e){var t=0,r,n=eR(e),a=n.length+1,s,o,c,f,d;for(r=Uo(a),r[0]=n.length,s=1;s!=a;++s)r[s]=n[s-1];for(s=a-1;s>=0;--s)o=r[s],c=(t&16384)===0?0:1,f=t<<1&32767,d=c|f,t=d^o;return t^52811}var nR=(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(o){return(o/2|o*128)&255},a=function(o,c){return n(o^c)},s=function(o){for(var c=t[o.length-1],f=104,d=o.length-1;d>=0;--d)for(var h=o[d],g=0;g!=7;++g)h&64&&(c^=r[f]),h*=2,--f;return c};return function(o){for(var c=eR(o),f=s(c),d=c.length,h=Uo(16),g=0;g!=16;++g)h[g]=0;var x,y,b;for((d&1)===1&&(x=f>>8,h[d]=a(e[0],x),--d,x=f&255,y=c[c.length-1],h[d]=a(y,x));d>0;)--d,x=f>>8,h[d]=a(c[d],x),--d,x=f&255,h[d]=a(c[d],x);for(d=15,b=15-c.length;b>0;)x=f>>8,h[d]=a(e[b],x),--d,--b,x=f&255,h[d]=a(c[d],x),--d,--b;return h}})(),dq=function(e,t,r,n,a){a||(a=t),n||(n=nR(e));var s,o;for(s=0;s!=t.length;++s)o=t[s],o^=n[r],o=(o>>5|o<<3)&255,a[s]=o,++r;return[a,r,n]},hq=function(e){var t=0,r=nR(e);return function(n){var a=dq("",n,t,r);return t=a[1],a[0]}};function pq(e,t,r,n){var a={key:pn(e),verificationBytes:pn(e)};return r.password&&(a.verifier=a2(r.password)),n.valid=a.verificationBytes===a.verifier,n.valid&&(n.insitu=hq(r.password)),a}function mq(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=fq(e):n.Data=uq(e,t),n}function gq(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?mq(e,t-2,n):pq(e,r.biff>=8?t:t-2,r,n),n}var aR=(function(){function e(a,s){switch(s.type){case"base64":return t(ni(a),s);case"binary":return t(a,s);case"buffer":return t(Gt&&Buffer.isBuffer(a)?a.toString("binary"):Jo(a),s);case"array":return t(Ul(a),s)}throw new Error("Unrecognized type "+s.type)}function t(a,s){var o=s||{},c=o.dense?[]:{},f=a.match(/\\trowd.*?\\row\b/g);if(!f.length)throw new Error("RTF missing table");var d={s:{c:0,r:0},e:{c:0,r:f.length-1}};return f.forEach(function(h,g){Array.isArray(c)&&(c[g]=[]);for(var x=/\\\w+\b/g,y=0,b,v=-1;b=x.exec(h);){switch(b[0]){case"\\cell":var w=h.slice(y,x.lastIndex-b[0].length);if(w[0]==" "&&(w=w.slice(1)),++v,w.length){var C={v:w,t:"s"};Array.isArray(c)?c[g][v]=C:c[Pt({r:g,c:v})]=C}break}y=x.lastIndex}v>d.e.c&&(d.e.c=v)}),c["!ref"]=zt(d),c}function r(a,s){return el(e(a,s),s)}function n(a){for(var s=["{\\rtf1\\ansi"],o=or(a["!ref"]),c,f=Array.isArray(a),d=o.s.r;d<=o.e.r;++d){s.push("\\trowd\\trautofit1");for(var h=o.s.c;h<=o.e.c;++h)s.push("\\cellx"+(h+1));for(s.push("\\pard\\intbl"),h=o.s.c;h<=o.e.c;++h){var g=Pt({r:d,c:h});c=f?(a[d]||[])[h]:a[g],!(!c||c.v==null&&(!c.f||c.F))&&(s.push(" "+(c.w||(Ks(c),c.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}})();function xq(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 Od(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 vq(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(t,r,n),s=Math.min(t,r,n),o=a-s;if(o===0)return[0,0,t];var c=0,f=0,d=a+s;switch(f=o/(d>1?2-d:d),a){case t:c=((r-n)/o+6)%6;break;case r:c=(n-t)/o+2;break;case n:c=(t-r)/o+4;break}return[c/6,f,d/2]}function yq(e){var t=e[0],r=e[1],n=e[2],a=r*2*(n<.5?n:1-n),s=n-a/2,o=[s,s,s],c=6*t,f;if(r!==0)switch(c|0){case 0:case 6:f=a*c,o[0]+=a,o[1]+=f;break;case 1:f=a*(2-c),o[0]+=f,o[1]+=a;break;case 2:f=a*(c-2),o[1]+=a,o[2]+=f;break;case 3:f=a*(4-c),o[1]+=f,o[2]+=a;break;case 4:f=a*(c-4),o[2]+=a,o[0]+=f;break;case 5:f=a*(6-c),o[2]+=f,o[0]+=a;break}for(var d=0;d!=3;++d)o[d]=Math.round(o[d]*255);return o}function jp(e,t){if(t===0)return e;var r=vq(xq(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),Od(yq(r))}var iR=6,bq=15,Sq=1,Kn=iR;function Dd(e){return Math.floor((e+Math.round(128/Kn)/256)*Kn)}function Md(e){return Math.floor((e-5)/Kn*100+.5)/100}function Lp(e){return Math.round((e*Kn+5)/Kn*256)/256}function dx(e){return Lp(Md(Dd(e)))}function i2(e){var t=Math.abs(e-dx(e)),r=Kn;if(t>.005)for(Kn=Sq;Kn<bq;++Kn)Math.abs(e-dx(e))<=t&&(t=Math.abs(e-dx(e)),r=Kn);Kn=r}function $o(e){e.width?(e.wpx=Dd(e.width),e.wch=Md(e.wpx),e.MDW=Kn):e.wpx?(e.wch=Md(e.wpx),e.width=Lp(e.wch),e.MDW=Kn):typeof e.wch=="number"&&(e.width=Lp(e.wch),e.wpx=Dd(e.width),e.MDW=Kn),e.customWidth&&delete e.customWidth}var wq=96,sR=wq;function Fd(e){return e*96/sR}function pu(e){return e*sR/96}var Tq={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 Cq(e,t,r,n){t.Borders=[];var a={},s=!1;(e[0].match(ia)||[]).forEach(function(o){var c=Lt(o);switch(bs(c[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":a={},c.diagonalUp&&(a.diagonalUp=Nr(c.diagonalUp)),c.diagonalDown&&(a.diagonalDown=Nr(c.diagonalDown)),t.Borders.push(a);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":s=!0;break;case"</ext>":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+c[0]+" in borders")}})}function Eq(e,t,r,n){t.Fills=[];var a={},s=!1;(e[0].match(ia)||[]).forEach(function(o){var c=Lt(o);switch(bs(c[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":a={},t.Fills.push(a);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(a),a={};break;case"<patternFill":case"<patternFill>":c.patternType&&(a.patternType=c.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":a.bgColor||(a.bgColor={}),c.indexed&&(a.bgColor.indexed=parseInt(c.indexed,10)),c.theme&&(a.bgColor.theme=parseInt(c.theme,10)),c.tint&&(a.bgColor.tint=parseFloat(c.tint)),c.rgb&&(a.bgColor.rgb=c.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":a.fgColor||(a.fgColor={}),c.theme&&(a.fgColor.theme=parseInt(c.theme,10)),c.tint&&(a.fgColor.tint=parseFloat(c.tint)),c.rgb!=null&&(a.fgColor.rgb=c.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":s=!0;break;case"</ext>":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+c[0]+" in fills")}})}function _q(e,t,r,n){t.Fonts=[];var a={},s=!1;(e[0].match(ia)||[]).forEach(function(o){var c=Lt(o);switch(bs(c[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(a),a={};break;case"<name":c.val&&(a.name=Ar(c.val));break;case"<name/>":case"</name>":break;case"<b":a.bold=c.val?Nr(c.val):1;break;case"<b/>":a.bold=1;break;case"<i":a.italic=c.val?Nr(c.val):1;break;case"<i/>":a.italic=1;break;case"<u":switch(c.val){case"none":a.underline=0;break;case"single":a.underline=1;break;case"double":a.underline=2;break;case"singleAccounting":a.underline=33;break;case"doubleAccounting":a.underline=34;break}break;case"<u/>":a.underline=1;break;case"<strike":a.strike=c.val?Nr(c.val):1;break;case"<strike/>":a.strike=1;break;case"<outline":a.outline=c.val?Nr(c.val):1;break;case"<outline/>":a.outline=1;break;case"<shadow":a.shadow=c.val?Nr(c.val):1;break;case"<shadow/>":a.shadow=1;break;case"<condense":a.condense=c.val?Nr(c.val):1;break;case"<condense/>":a.condense=1;break;case"<extend":a.extend=c.val?Nr(c.val):1;break;case"<extend/>":a.extend=1;break;case"<sz":c.val&&(a.sz=+c.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":c.val&&(a.vertAlign=c.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":c.val&&(a.family=parseInt(c.val,10));break;case"<family/>":case"</family>":break;case"<scheme":c.val&&(a.scheme=c.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(c.val=="1")break;c.codepage=Fy[parseInt(c.val,10)];break;case"<color":if(a.color||(a.color={}),c.auto&&(a.color.auto=Nr(c.auto)),c.rgb)a.color.rgb=c.rgb.slice(-6);else if(c.indexed){a.color.index=parseInt(c.indexed,10);var f=Dl[a.color.index];a.color.index==81&&(f=Dl[1]),f||(f=Dl[1]),a.color.rgb=f[0].toString(16)+f[1].toString(16)+f[2].toString(16)}else c.theme&&(a.color.theme=parseInt(c.theme,10),c.tint&&(a.color.tint=parseFloat(c.tint)),c.theme&&r.themeElements&&r.themeElements.clrScheme&&(a.color.rgb=jp(r.themeElements.clrScheme[a.color.theme].rgb,a.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":s=!0;break;case"</AlternateContent>":s=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+c[0]+" in fonts")}})}function kq(e,t,r){t.NumberFmt=[];for(var n=Jr(Ft),a=0;a<n.length;++a)t.NumberFmt[n[a]]=Ft[n[a]];var s=e[0].match(ia);if(s)for(a=0;a<s.length;++a){var o=Lt(s[a]);switch(bs(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var c=sr(Ar(o.formatCode)),f=parseInt(o.numFmtId,10);if(t.NumberFmt[f]=c,f>0){if(f>392){for(f=392;f>60&&t.NumberFmt[f]!=null;--f);t.NumberFmt[f]=c}Us(c,f)}}break;case"</numFmt>":break;default:if(r.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}function Aq(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]=Qe("numFmt",null,{numFmtId:n,formatCode:Tr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=Qe("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Uh=["numFmtId","fillId","fontId","borderId","xfId"],$h=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Rq(e,t,r){t.CellXf=[];var n,a=!1;(e[0].match(ia)||[]).forEach(function(s){var o=Lt(s),c=0;switch(bs(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=o,delete n[0],c=0;c<Uh.length;++c)n[Uh[c]]&&(n[Uh[c]]=parseInt(n[Uh[c]],10));for(c=0;c<$h.length;++c)n[$h[c]]&&(n[$h[c]]=Nr(n[$h[c]]));if(t.NumberFmt&&n.numFmtId>392){for(c=392;c>60;--c)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[c]){n.numFmtId=c;break}}t.CellXf.push(n);break;case"</xf>":break;case"<alignment":case"<alignment/>":var f={};o.vertical&&(f.vertical=o.vertical),o.horizontal&&(f.horizontal=o.horizontal),o.textRotation!=null&&(f.textRotation=o.textRotation),o.indent&&(f.indent=o.indent),o.wrapText&&(f.wrapText=Nr(o.wrapText)),n.alignment=f;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":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(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}function Oq(e){var t=[];return t[t.length]=Qe("cellXfs",null),e.forEach(function(r){t[t.length]=Qe("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=Qe("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Dq=(function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,s=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(c,f,d){var h={};if(!c)return h;c=c.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var g;return(g=c.match(t))&&kq(g,h,d),(g=c.match(a))&&_q(g,h,f,d),(g=c.match(n))&&Eq(g,h,f,d),(g=c.match(s))&&Cq(g,h,f,d),(g=c.match(r))&&Rq(g,h,d),h}})();function oR(e,t){var r=[cn,Qe("styleSheet",null,{xmlns:Xl[0],"xmlns:vt":yn.vt})],n;return e.SSF&&(n=Aq(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=Oq(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 Mq(e,t){var r=e.read_shift(2),n=na(e);return[r,n]}function Fq(e,t,r){r||(r=Ne(6+4*t.length)),r.write_shift(2,e),Dn(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Nq(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=mG(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var s=e.read_shift(2);switch(s===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(n.underline=o);var c=e.read_shift(1);c>0&&(n.family=c);var f=e.read_shift(1);switch(f>0&&(n.charset=f),e.l++,n.color=pG(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=na(e),n}function Pq(e,t){t||(t=Ne(153)),t.write_shift(2,e.sz*20),gG(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),Fp(e.color,t);var n=0;return n=2,t.write_shift(1,n),Dn(e.name,t),t.length>t.l?t.slice(0,t.l):t}var jq=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],hx,Lq=aa;function A4(e,t){t||(t=Ne(84)),hx||(hx=bm(jq));var r=hx[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Fp({auto:1},t),Fp({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 Iq(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function lR(e,t,r){r||(r=Ne(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 Ff(e,t){return t||(t=Ne(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Bq=aa;function zq(e,t){return t||(t=Ne(51)),t.write_shift(1,0),Ff(null,t),Ff(null,t),Ff(null,t),Ff(null,t),Ff(null,t),t.length>t.l?t.slice(0,t.l):t}function Uq(e,t){return t||(t=Ne(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),Mp(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function $q(e,t,r){var n=Ne(2052);return n.write_shift(4,e),Mp(t,n),Mp(r,n),n.length>n.l?n.slice(0,n.l):n}function Hq(e,t,r){var n={};n.NumberFmt=[];for(var a in Ft)n.NumberFmt[a]=Ft[a];n.CellXf=[],n.Fonts=[];var s=[],o=!1;return eo(e,function(f,d,h){switch(h){case 44:n.NumberFmt[f[0]]=f[1],Us(f[1],f[0]);break;case 43:n.Fonts.push(f),f.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(f.color.rgb=jp(t.themeElements.clrScheme[f.color.theme].rgb,f.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:s[s.length-1]==617&&n.CellXf.push(f);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:o=!0;break;case 36:o=!1;break;case 37:s.push(h),o=!0;break;case 38:s.pop(),o=!1;break;default:if(d.T>0)s.push(h);else if(d.T<0)s.pop();else if(!o||r.WTF&&s[s.length-1]!=37)throw new Error("Unexpected record 0x"+h.toString(16))}}),n}function Wq(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(He(e,615,qi(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&He(e,44,Fq(a,t[a]))}),He(e,616))}}function Vq(e){var t=1;He(e,611,qi(t)),He(e,43,Pq({sz:12,color:{theme:1},name:"Calibri",family:2})),He(e,612)}function Gq(e){var t=2;He(e,603,qi(t)),He(e,45,A4({patternType:"none"})),He(e,45,A4({patternType:"gray125"})),He(e,604)}function Xq(e){var t=1;He(e,613,qi(t)),He(e,46,zq()),He(e,614)}function Yq(e){var t=1;He(e,626,qi(t)),He(e,47,lR({numFmtId:0},65535)),He(e,627)}function qq(e,t){He(e,617,qi(t.length)),t.forEach(function(r){He(e,47,lR(r,0))}),He(e,618)}function Kq(e){var t=1;He(e,619,qi(t)),He(e,48,Uq({xfId:0,name:"Normal"})),He(e,620)}function Qq(e){var t=0;He(e,505,qi(t)),He(e,506)}function Zq(e){var t=0;He(e,508,$q(t,"TableStyleMedium9","PivotStyleMedium4")),He(e,509)}function Jq(e,t){var r=Fa();return He(r,278),Wq(r,e.SSF),Vq(r),Gq(r),Xq(r),Yq(r),qq(r,t.cellXfs),Kq(r),Qq(r),Zq(r),He(r,279),r.end()}var eK=["</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 tK(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(ia)||[]).forEach(function(a){var s=Lt(a);switch(s[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=s.val;break;case"<a:sysClr":n.rgb=s.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>":s[0].charAt(1)==="/"?(t.themeElements.clrScheme[eK.indexOf(s[0])]=n,n={}):n.name=s[0].slice(3,s[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+s[0]+" in clrScheme")}})}function rK(){}function nK(){}var aK=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,iK=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,sK=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function oK(e,t,r){t.themeElements={};var n;[["clrScheme",aK,tK],["fontScheme",iK,rK],["fmtScheme",sK,nK]].forEach(function(a){if(!(n=e.match(a[1])))throw new Error(a[0]+" not found in themeElements");a[2](n,t,r)})}var lK=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function cR(e,t){(!e||e.length===0)&&(e=s2());var r,n={};if(!(r=e.match(lK)))throw new Error("themeElements not found in theme");return oK(r[0],n,t),n.raw=e,n}function s2(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[cn];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 cK(e,t,r){var n=e.l+t,a=e.read_shift(4);if(a!==124226){if(!r.cellStyles){e.l=n;return}var s=e.slice(e.l);e.l=n;var o;try{o=tA(s,{type:"array"})}catch{return}var c=Ja(o,"theme/theme/theme1.xml",!0);if(c)return cR(c,r)}}function uK(e){return e.read_shift(4)}function fK(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=dK(e,4);break;case 2:t.xclrValue=$A(e);break;case 3:t.xclrValue=uK(e);break;case 4:e.l+=4;break}return e.l+=8,t}function dK(e,t){return aa(e,t)}function hK(e,t){return aa(e,t)}function pK(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]=fK(e);break;case 6:n[1]=hK(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 mK(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),s=[];a-- >0;)s.push(pK(e,r-e.l));return{ixfe:n,ext:s}}function gK(e,t){t.forEach(function(r){r[0]})}function xK(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:na(e)}}function vK(e){var t=Ne(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Dn(e.name,t),t.slice(0,t.l)}function yK(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function bK(e){var t=Ne(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 SK(e,t){var r=Ne(8+2*t.length);return r.write_shift(4,e),Dn(t,r),r.slice(0,r.l)}function wK(e){return e.l+=4,e.read_shift(4)!=0}function TK(e,t){var r=Ne(8);return r.write_shift(4,e),r.write_shift(4,1),r}function CK(e,t,r){var n={Types:[],Cell:[],Value:[]},a=r||{},s=[],o=!1,c=2;return eo(e,function(f,d,h){switch(h){case 335:n.Types.push({name:f.name});break;case 51:f.forEach(function(g){c==1?n.Cell.push({type:n.Types[g[0]-1].name,index:g[1]}):c==0&&n.Value.push({type:n.Types[g[0]-1].name,index:g[1]})});break;case 337:c=f?1:0;break;case 338:c=2;break;case 35:s.push(h),o=!0;break;case 36:s.pop(),o=!1;break;default:if(!d.T){if(!o||a.WTF&&s[s.length-1]!=35)throw new Error("Unexpected record 0x"+h.toString(16))}}}),n}function EK(){var e=Fa();return He(e,332),He(e,334,qi(1)),He(e,335,vK({name:"XLDAPR",version:12e4,flags:3496657072})),He(e,336),He(e,339,SK(1,"XLDAPR")),He(e,52),He(e,35,qi(514)),He(e,4096,qi(0)),He(e,4097,Ti(1)),He(e,36),He(e,53),He(e,340),He(e,337,TK(1)),He(e,51,bK([[1,0]])),He(e,338),He(e,333),e.end()}function _K(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var a=!1,s=2,o;return e.replace(ia,function(c){var f=Lt(c);switch(bs(f[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:f.name});break;case"</metadataType>":break;case"<futureMetadata":for(var d=0;d<n.Types.length;++d)n.Types[d].name==f.name&&(o=n.Types[d]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":s==1?n.Cell.push({type:n.Types[f.t-1].name,index:+f.v}):s==0&&n.Value.push({type:n.Types[f.t-1].name,index:+f.v});break;case"</rc>":break;case"<cellMetadata":s=1;break;case"</cellMetadata>":s=2;break;case"<valueMetadata":s=0;break;case"</valueMetadata>":s=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<rvb":if(!o)break;o.offsets||(o.offsets=[]),o.offsets.push(+f.i);break;default:if(!a&&r.WTF)throw new Error("unrecognized "+f[0]+" in metadata")}return c}),n}function uR(){var e=[cn];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 kK(e){var t=[];if(!e)return t;var r=1;return(e.match(ia)||[]).forEach(function(n){var a=Lt(n);switch(a[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete a[0],a.i?r=a.i:a.i=r,t.push(a);break}}),t}function AK(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=Pt(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}function RK(e,t,r){var n=[];return eo(e,function(s,o,c){switch(c){case 63:n.push(s);break;default:if(!o.T)throw new Error("Unexpected record 0x"+c.toString(16))}}),n}function OK(e,t,r,n){if(!e)return e;var a=n||{},s=!1;eo(e,function(c,f,d){switch(d){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:s=!0;break;case 36:s=!1;break;default:if(!f.T){if(!s||a.WTF)throw new Error("Unexpected record 0x"+d.toString(16))}}},a)}function DK(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var Yc=1024;function fR(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[Qe("xml",null,{"xmlns:v":Ya.v,"xmlns:o":Ya.o,"xmlns:x":Ya.x,"xmlns:mv":Ya.mv}).replace(/\/>/,">"),Qe("o:shapelayout",Qe("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Qe("v:shapetype",[Qe("v:stroke",null,{joinstyle:"miter"}),Qe("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Yc<e*1e3;)Yc+=1e3;return t.forEach(function(s){var o=Hr(s[0]),c={color2:"#BEFF82",type:"gradient"};c.type=="gradient"&&(c.angle="-180");var f=c.type=="gradient"?Qe("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,d=Qe("v:fill",f,c),h={on:"t",obscured:"t"};++Yc,a=a.concat(["<v:shape"+kd({id:"_x0000_s"+Yc,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(s[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",d,Qe("v:shadow",null,h),Qe("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Bn("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),Bn("x:AutoFill","False"),Bn("x:Row",String(o.r)),Bn("x:Column",String(o.c)),s[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function R4(e,t,r,n){var a=Array.isArray(e),s;t.forEach(function(o){var c=Hr(o.ref);if(a?(e[c.r]||(e[c.r]=[]),s=e[c.r][c.c]):s=e[o.ref],!s){s={t:"z"},a?e[c.r][c.c]=s:e[o.ref]=s;var f=or(e["!ref"]||"BDWGO1000001:A1");f.s.r>c.r&&(f.s.r=c.r),f.e.r<c.r&&(f.e.r=c.r),f.s.c>c.c&&(f.s.c=c.c),f.e.c<c.c&&(f.e.c=c.c);var d=zt(f);d!==e["!ref"]&&(e["!ref"]=d)}s.c||(s.c=[]);var h={a:o.author,t:o.t,r:o.r,T:r};o.h&&(h.h=o.h);for(var g=s.c.length-1;g>=0;--g){if(!r&&s.c[g].T)return;r&&!s.c[g].T&&s.c.splice(g,1)}if(r&&n){for(g=0;g<n.length;++g)if(h.a==n[g].id){h.a=n[g].name||h.a;break}}s.c.push(h)})}function MK(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],a=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);a&&a[1]&&a[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var c=o.match(/<(?:\w+:)?author[^>]*>(.*)/);c&&r.push(c[1])}});var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var c=o.match(/<(?:\w+:)?comment[^>]*>/);if(c){var f=Lt(c[0]),d={author:f.authorId&&r[f.authorId]||"sheetjsghost",ref:f.ref,guid:f.guid},h=Hr(f.ref);if(!(t.sheetRows&&t.sheetRows<=h.r)){var g=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),x=!!g&&!!g[1]&&n2(g[1])||{r:"",t:"",h:""};d.r=x.r,x.r=="<t></t>"&&(x.t=x.h=""),d.t=(x.t||"").replace(/\r\n/g,`
`).replace(/\r/g,`
`),t.cellHTML&&(d.h=x.h),n.push(d)}}}}),n}function dR(e){var t=[cn,Qe("comments",null,{xmlns:Xl[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var s=Tr(a.a);r.indexOf(s)==-1&&(r.push(s),t.push("<author>"+s+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,s=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(f){f.a&&(a=r.indexOf(Tr(f.a))),s.push(f.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),s.length<=1)t.push(Bn("t",Tr(s[0]||"")));else{for(var o=`Comment:
    `+s[0]+`
`,c=1;c<s.length;++c)o+=`Reply:
    `+s[c]+`
`;t.push(Bn("t",Tr(o)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function FK(e,t){var r=[],n=!1,a={},s=0;return e.replace(ia,function(c,f){var d=Lt(c);switch(bs(d[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":a={author:d.personId,guid:d.id,ref:d.ref,T:1};break;case"</threadedComment>":a.t!=null&&r.push(a);break;case"<text>":case"<text":s=f+c.length;break;case"</text>":a.t=e.slice(s,f).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 "+d[0]+" in threaded comments")}return c}),r}function NK(e,t,r){var n=[cn,Qe("ThreadedComments",null,{xmlns:yn.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var s="";(a[1]||[]).forEach(function(o,c){if(!o.T){delete o.ID;return}o.a&&t.indexOf(o.a)==-1&&t.push(o.a);var f={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};c==0?s=f.id:f.parentId=s,o.ID=f.id,o.a&&(f.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),n.push(Qe("threadedComment",Bn("text",o.t||""),f))})}),n.push("</ThreadedComments>"),n.join("")}function PK(e,t){var r=[],n=!1;return e.replace(ia,function(s){var o=Lt(s);switch(bs(o[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:o.displayname,id:o.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 "+o[0]+" in threaded comments")}return s}),r}function jK(e){var t=[cn,Qe("personList",null,{xmlns:yn.TCMNT,"xmlns:x":Xl[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Qe("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function LK(e){var t={};t.iauthor=e.read_shift(4);var r=Ql(e);return t.rfx=r.s,t.ref=Pt(r.s),e.l+=16,t}function IK(e,t){return t==null&&(t=Ne(36)),t.write_shift(4,e[1].iauthor),Eu(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 BK=na;function zK(e){return Dn(e.slice(0,54))}function UK(e,t){var r=[],n=[],a={},s=!1;return eo(e,function(c,f,d){switch(d){case 632:n.push(c);break;case 635:a=c;break;case 637:a.t=c.t,a.h=c.h,a.r=c.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!f.T){if(!s||t.WTF)throw new Error("Unexpected record 0x"+d.toString(16))}}}),r}function $K(e){var t=Fa(),r=[];return He(t,628),He(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),He(t,632,zK(a.a)))})}),He(t,631),He(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var s={s:Hr(n[0]),e:Hr(n[0])};He(t,635,IK([s,a])),a.t&&a.t.length>0&&He(t,637,uG(a)),He(t,636),delete a.iauthor})}),He(t,634),He(t,629),t.end()}var HK="application/vnd.ms-office.vbaProject";function WK(e){var t=kt.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");kt.utils.cfb_add(t,a,e.FileIndex[n].content)}}),kt.write(t)}function VK(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&kt.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var hR=["xlsb","xlsm","xlam","biff8","xla"];function GK(){return{"!type":"dialog"}}function XK(){return{"!type":"dialog"}}function YK(){return{"!type":"macro"}}function qK(){return{"!type":"macro"}}var ru=(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,a,s,o){var c=!1,f=!1;s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1)),o.length==0?c=!0:o.charAt(0)=="["&&(c=!0,o=o.slice(1,-1));var d=s.length>0?parseInt(s,10)|0:0,h=o.length>0?parseInt(o,10)|0:0;return c?h+=t.c:--h,f?d+=t.r:--d,a+(c?"":"$")+$r(h)+(f?"":"$")+on(d)}return function(a,s){return t=s,a.replace(e,r)}})(),o2=/(^|[^._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,l2=(function(){return function(t,r){return t.replace(o2,function(n,a,s,o,c,f){var d=Yy(o)-(s?0:r.c),h=Xy(f)-(c?0:r.r),g=h==0?"":c?h+1:"["+h+"]",x=d==0?"":s?d+1:"["+d+"]";return a+"R"+g+"C"+x})}})();function pR(e,t){return e.replace(o2,function(r,n,a,s,o,c){return n+(a=="$"?a+s:$r(Yy(s)+t.c))+(o=="$"?o+c:on(Xy(c)+t.r))})}function KK(e,t,r){var n=Pa(t),a=n.s,s=Hr(r),o={r:s.r-a.r,c:s.c-a.c};return pR(e,o)}function QK(e){return e.length!=1}function O4(e){return e.replace(/_xlfn\./g,"")}function dn(e){e.l+=1}function Ho(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function mR(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return gR(e);r.biff==12&&(n=4)}var a=e.read_shift(n),s=e.read_shift(n),o=Ho(e),c=Ho(e);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:s,c:c[0],cRel:c[1],rRel:c[2]}}}function gR(e){var t=Ho(e),r=Ho(e),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function ZK(e,t,r){if(r.biff<8)return gR(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),s=Ho(e),o=Ho(e);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function xR(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return JK(e);var n=e.read_shift(r&&r.biff==12?4:2),a=Ho(e);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function JK(e){var t=Ho(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function eQ(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 tQ(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return rQ(e);var a=e.read_shift(n>=12?4:2),s=e.read_shift(2),o=(s&16384)>>14,c=(s&32768)>>15;if(s&=16383,c==1)for(;a>524287;)a-=1048576;if(o==1)for(;s>8191;)s=s-16384;return{r:a,c:s,cRel:o,rRel:c}}function rQ(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function nQ(e,t,r){var n=(e[e.l++]&96)>>5,a=mR(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function aQ(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}var o=mR(e,s,r);return[n,a,o]}function iQ(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 sQ(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}return e.l+=s,[n,a]}function oQ(e,t,r){var n=(e[e.l++]&96)>>5,a=ZK(e,t-1,r);return[n,a]}function lQ(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function D4(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function cQ(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],s=0;s<=n;++s)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function uQ(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 fQ(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 dQ(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function hQ(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function vR(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function pQ(e){return e.read_shift(2),vR(e)}function mQ(e){return e.read_shift(2),vR(e)}function gQ(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=xR(e,0,r);return[n,a]}function xQ(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=tQ(e,0,r);return[n,a]}function vQ(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var s=xR(e,0,r);return[n,a,s]}function yQ(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[wZ[a],SR[a],n]}function bQ(e,t,r){var n=e[e.l++],a=e.read_shift(1),s=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:SQ(e);return[a,(s[0]===0?SR:SZ)[s[1]]]}function SQ(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function wQ(e,t,r){e.l+=r&&r.biff==2?3:4}function TQ(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function CQ(e){return e.l++,to[e.read_shift(1)]}function EQ(e){return e.l++,e.read_shift(2)}function _Q(e){return e.l++,e.read_shift(1)!==0}function kQ(e){return e.l++,Zn(e)}function AQ(e,t,r){return e.l++,a0(e,t-1,r)}function RQ(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]=rn(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=to[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Zn(e);break;case 2:r[1]=Zl(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function OQ(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],s=0;s!=n;++s)a.push((r.biff==12?Ql:Tm)(e));return a}function DQ(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var s=0,o=[];s!=n&&(o[s]=[]);++s)for(var c=0;c!=a;++c)o[s][c]=RQ(e,r.biff);return o}function MQ(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,s=e.read_shift(a);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,s]}function FQ(e,t,r){if(r.biff==5)return NQ(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),s=e.read_shift(4);return[n,a,s]}function NQ(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 PQ(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function jQ(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function LQ(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 IQ(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),s=4;if(r)switch(r.biff){case 5:s=15;break;case 12:s=6;break}return e.l+=s,[n,a]}var BQ=aa,zQ=aa,UQ=aa;function s0(e,t,r){return e.l+=2,[eQ(e)]}function c2(e){return e.l+=6,[]}var $Q=s0,HQ=c2,WQ=c2,VQ=s0;function yR(e){return e.l+=2,[pn(e),e.read_shift(2)&1]}var GQ=s0,XQ=yR,YQ=c2,qQ=s0,KQ=s0,QQ=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function ZQ(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),s=e.read_shift(2),o=QQ[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:a,C:s}}function JQ(e){return e.l+=2,[e.read_shift(4)]}function eZ(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function tZ(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function rZ(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function nZ(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function aZ(e){return e.l+=4,[0,0]}var M4={1:{n:"PtgExp",f:TQ},2:{n:"PtgTbl",f:UQ},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:AQ},26:{n:"PtgSheet",f:eZ},27:{n:"PtgEndSheet",f:tZ},28:{n:"PtgErr",f:CQ},29:{n:"PtgBool",f:_Q},30:{n:"PtgInt",f:EQ},31:{n:"PtgNum",f:kQ},32:{n:"PtgArray",f:lQ},33:{n:"PtgFunc",f:yQ},34:{n:"PtgFuncVar",f:bQ},35:{n:"PtgName",f:MQ},36:{n:"PtgRef",f:gQ},37:{n:"PtgArea",f:nQ},38:{n:"PtgMemArea",f:PQ},39:{n:"PtgMemErr",f:BQ},40:{n:"PtgMemNoMem",f:zQ},41:{n:"PtgMemFunc",f:jQ},42:{n:"PtgRefErr",f:LQ},43:{n:"PtgAreaErr",f:iQ},44:{n:"PtgRefN",f:xQ},45:{n:"PtgAreaN",f:oQ},46:{n:"PtgMemAreaN",f:rZ},47:{n:"PtgMemNoMemN",f:nZ},57:{n:"PtgNameX",f:FQ},58:{n:"PtgRef3d",f:vQ},59:{n:"PtgArea3d",f:aQ},60:{n:"PtgRefErr3d",f:IQ},61:{n:"PtgAreaErr3d",f:sQ},255:{}},iZ={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},sZ={1:{n:"PtgElfLel",f:yR},2:{n:"PtgElfRw",f:qQ},3:{n:"PtgElfCol",f:$Q},6:{n:"PtgElfRwV",f:KQ},7:{n:"PtgElfColV",f:VQ},10:{n:"PtgElfRadical",f:GQ},11:{n:"PtgElfRadicalS",f:YQ},13:{n:"PtgElfColS",f:HQ},15:{n:"PtgElfColSV",f:WQ},16:{n:"PtgElfRadicalLel",f:XQ},25:{n:"PtgList",f:ZQ},29:{n:"PtgSxName",f:JQ},255:{}},oZ={0:{n:"PtgAttrNoop",f:aZ},1:{n:"PtgAttrSemi",f:hQ},2:{n:"PtgAttrIf",f:fQ},4:{n:"PtgAttrChoose",f:cQ},8:{n:"PtgAttrGoto",f:uQ},16:{n:"PtgAttrSum",f:wQ},32:{n:"PtgAttrBaxcel",f:D4},33:{n:"PtgAttrBaxcel",f:D4},64:{n:"PtgAttrSpace",f:pQ},65:{n:"PtgAttrSpaceSemi",f:mQ},128:{n:"PtgAttrIfError",f:dQ},255:{}};function o0(e,t,r,n){if(n.biff<8)return aa(e,t);for(var a=e.l+t,s=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=DQ(e,0,n),s.push(r[o][1]);break;case"PtgMemArea":r[o][2]=OQ(e,r[o][1],n),s.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),s.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=a-e.l,t!==0&&s.push(aa(e,t)),s}function l0(e,t,r){for(var n=e.l+t,a,s,o=[];n!=e.l;)t=n-e.l,s=e[e.l],a=M4[s]||M4[iZ[s]],(s===24||s===25)&&(a=(s===24?sZ:oZ)[e[e.l+1]]),!a||!a.f?aa(e,t):o.push([a.n,a.f(e,t,r)]);return o}function lZ(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],s=0;s<n.length;++s){var o=n[s];if(o)switch(o[0]){case 2:a.push('"'+o[1].replace(/"/g,'""')+'"');break;default:a.push(o[1])}else a.push("")}t.push(a.join(","))}return t.join(";")}var cZ={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function uZ(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 bR(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 a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+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 a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(s){return s.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function F4(e,t,r){var n=bR(e,t,r);return n=="#REF"?n:uZ(n,r)}function qn(e,t,r,n,a){var s=a&&a.biff||8,o={s:{c:0,r:0}},c=[],f,d,h,g=0,x=0,y,b="";if(!e[0]||!e[0][0])return"";for(var v=-1,w="",C=0,k=e[0].length;C<k;++C){var E=e[0][C];switch(E[0]){case"PtgUminus":c.push("-"+c.pop());break;case"PtgUplus":c.push("+"+c.pop());break;case"PtgPercent":c.push(c.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(f=c.pop(),d=c.pop(),v>=0){switch(e[0][v][1][0]){case 0:w=Kr(" ",e[0][v][1][1]);break;case 1:w=Kr("\r",e[0][v][1][1]);break;default:if(w="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}d=d+w,v=-1}c.push(d+cZ[E[0]]+f);break;case"PtgIsect":f=c.pop(),d=c.pop(),c.push(d+" "+f);break;case"PtgUnion":f=c.pop(),d=c.pop(),c.push(d+","+f);break;case"PtgRange":f=c.pop(),d=c.pop(),c.push(d+":"+f);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":h=Qf(E[1][1],o,a),c.push(Zf(h,s));break;case"PtgRefN":h=r?Qf(E[1][1],r,a):E[1][1],c.push(Zf(h,s));break;case"PtgRef3d":g=E[1][1],h=Qf(E[1][2],o,a),b=F4(n,g,a),c.push(b+"!"+Zf(h,s));break;case"PtgFunc":case"PtgFuncVar":var D=E[1][0],M=E[1][1];D||(D=0),D&=127;var A=D==0?[]:c.slice(-D);c.length-=D,M==="User"&&(M=A.shift()),c.push(M+"("+A.join(",")+")");break;case"PtgBool":c.push(E[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(E[1]);break;case"PtgNum":c.push(String(E[1]));break;case"PtgStr":c.push('"'+E[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(E[1]);break;case"PtgAreaN":y=l4(E[1][1],r?{s:r}:o,a),c.push(cx(y,a));break;case"PtgArea":y=l4(E[1][1],o,a),c.push(cx(y,a));break;case"PtgArea3d":g=E[1][1],y=E[1][2],b=F4(n,g,a),c.push(b+"!"+cx(y,a));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":x=E[1][2];var O=(n.names||[])[x-1]||(n[0]||[])[x],N=O?O.Name:"SH33TJSNAME"+String(x);N&&N.slice(0,6)=="_xlfn."&&!a.xlfn&&(N=N.slice(6)),c.push(N);break;case"PtgNameX":var F=E[1][1];x=E[1][2];var P;if(a.biff<=5)F<0&&(F=-F),n[F]&&(P=n[F][x]);else{var j="";if(((n[F]||[])[0]||[])[0]==14849||(((n[F]||[])[0]||[])[0]==1025?n[F][x]&&n[F][x].itab>0&&(j=n.SheetNames[n[F][x].itab-1]+"!"):j=n.SheetNames[x-1]+"!"),n[F]&&n[F][x])j+=n[F][x].Name;else if(n[0]&&n[0][x])j+=n[0][x].Name;else{var R=(bR(n,F,a)||"").split(";;");R[x-1]?j=R[x-1]:j+="SH33TJSERRX"}c.push(j);break}P||(P={Name:"SH33TJSERRY"}),c.push(P.Name);break;case"PtgParen":var W="(",Y=")";if(v>=0){switch(w="",e[0][v][1][0]){case 2:W=Kr(" ",e[0][v][1][1])+W;break;case 3:W=Kr("\r",e[0][v][1][1])+W;break;case 4:Y=Kr(" ",e[0][v][1][1])+Y;break;case 5:Y=Kr("\r",e[0][v][1][1])+Y;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}v=-1}c.push(W+c.pop()+Y);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":h={c:E[1][1],r:E[1][0]};var Z={c:r.c,r:r.r};if(n.sharedf[Pt(h)]){var B=n.sharedf[Pt(h)];c.push(qn(B,o,Z,n,a))}else{var ne=!1;for(f=0;f!=n.arrayf.length;++f)if(d=n.arrayf[f],!(h.c<d[0].s.c||h.c>d[0].e.c)&&!(h.r<d[0].s.r||h.r>d[0].e.r)){c.push(qn(d[1],o,Z,n,a)),ne=!0;break}ne||c.push(E[1])}break;case"PtgArray":c.push("{"+lZ(E[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=C;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":c.push("#REF!");break;case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+E[1].idx+"[#"+E[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(E));default:throw new Error("Unrecognized Formula Token: "+String(E))}var ce=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&v>=0&&ce.indexOf(e[0][C][0])==-1){E=e[0][v];var U=!0;switch(E[1][0]){case 4:U=!1;case 0:w=Kr(" ",E[1][1]);break;case 5:U=!1;case 1:w=Kr("\r",E[1][1]);break;default:if(w="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+E[1][0])}c.push((U?w:"")+c.pop()+(U?"":w)),v=-1}}if(c.length>1&&a.WTF)throw new Error("bad formula stack");return c[0]}function fZ(e,t,r){var n=e.l+t,a=r.biff==2?1:2,s,o=e.read_shift(a);if(o==65535)return[[],aa(e,t-2)];var c=l0(e,o,r);return t!==o+a&&(s=o0(e,t-o-a,c,r)),e.l=n,[c,s]}function dZ(e,t,r){var n=e.l+t,a=r.biff==2?1:2,s,o=e.read_shift(a);if(o==65535)return[[],aa(e,t-2)];var c=l0(e,o,r);return t!==o+a&&(s=o0(e,t-o-a,c,r)),e.l=n,[c,s]}function hZ(e,t,r,n){var a=e.l+t,s=l0(e,n,r),o;return a!==e.l&&(o=o0(e,a-e.l,s,r)),[s,o]}function pZ(e,t,r){var n=e.l+t,a,s=e.read_shift(2),o=l0(e,s,r);return s==65535?[[],aa(e,t-2)]:(t!==s+2&&(a=o0(e,n-s-2,o,r)),[o,a])}function mZ(e){var t;if(Bs(e,e.l+6)!==65535)return[Zn(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 gZ(e){if(e==null){var t=Ne(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 $l(e);return $l(0)}function px(e,t,r){var n=e.l+t,a=Ss(e);r.biff==2&&++e.l;var s=mZ(e),o=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var c=dZ(e,n-e.l,r);return{cell:a,val:s[0],formula:c,shared:o>>3&1,tt:s[1]}}function xZ(e,t,r,n,a){var s=Wl(t,r,a),o=gZ(e.v),c=Ne(6),f=33;c.write_shift(2,f),c.write_shift(4,0);for(var d=Ne(e.bf.length),h=0;h<e.bf.length;++h)d[h]=e.bf[h];var g=Rn([s,o,c,d]);return g}function Cm(e,t,r){var n=e.read_shift(4),a=l0(e,n,r),s=e.read_shift(4),o=s>0?o0(e,s,a,r):null;return[a,o]}var vZ=Cm,Em=Cm,yZ=Cm,bZ=Cm,SZ={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"},SR={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"},wZ={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 N4(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 TZ(e){var t="of:="+e.replace(o2,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function mx(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 CZ(e){return e.replace(/\./,"!")}var ed={},nu={},td=typeof Map<"u";function u2(e,t,r){var n=0,a=e.length;if(r){if(td?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var s=td?r.get(t):r[t];n<s.length;++n)if(e[s[n]].t===t)return e.Count++,s[n]}}else for(;n<a;++n)if(e[n].t===t)return e.Count++,n;return e[a]={t},e.Count++,e.Unique++,r&&(td?(r.has(t)||r.set(t,[]),r.get(t).push(a)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(a))),a}function _m(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(Kn=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=Md(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=Lp(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 Nl(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 tl(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,s=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){Us(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=s;++a)if(e[a].numFmtId===n)return a;return e[s]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function wR(e,t,r,n,a,s){try{n.cellNF&&(e.z=Ft[t])}catch(c){if(n.WTF)throw c}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=Pr(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(Ft[t]==null&&Us(SV[t]||"General",t),e.t==="e")e.w=e.w||to[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Ed(e.v);else if(e.t==="d"){var o=Sn(e.v);(o|0)===o?e.w=o.toString(10):e.w=Ed(o)}else{if(e.v===void 0)return"";e.w=zl(e.v,nu)}else e.t==="d"?e.w=Fi(t,Sn(e.v),nu):e.w=Fi(t,e.v,nu)}catch(c){if(n.WTF)throw c}if(n.cellStyles&&r!=null)try{e.s=s.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=jp(a.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=a.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=jp(a.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=a.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(c){if(n.WTF&&s.Fills)throw c}}}function EZ(e,t,r){if(e&&e["!ref"]){var n=or(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function _Z(e,t){var r=or(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=zt(r))}var kZ=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,AZ=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,RZ=/<(?:\w:)?hyperlink [^>]*>/mg,OZ=/"(\w*:\w*)"/,DZ=/<(?:\w:)?col\b[^>]*[\/]?>/g,MZ=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,FZ=/<(?:\w:)?pageMargins[^>]*\/>/g,TR=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,NZ=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,PZ=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function jZ(e,t,r,n,a,s,o){if(!e)return e;n||(n={"!id":{}});var c=t.dense?[]:{},f={s:{r:2e6,c:2e6},e:{r:0,c:0}},d="",h="",g=e.match(AZ);g?(d=e.slice(0,g.index),h=e.slice(g.index+g[0].length)):d=h=e;var x=d.match(TR);x?f2(x[0],c,a,r):(x=d.match(NZ))&&IZ(x[0],x[1]||"",c,a,r);var y=(d.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(y>0){var b=d.slice(y,y+50).match(OZ);b&&_Z(c,b[1])}var v=d.match(PZ);v&&v[1]&&QZ(v[1],a);var w=[];if(t.cellStyles){var C=d.match(DZ);C&&GZ(w,C)}g&&eJ(g[1],c,t,f,s,o);var k=h.match(MZ);k&&(c["!autofilter"]=YZ(k[0]));var E=[],D=h.match(kZ);if(D)for(y=0;y!=D.length;++y)E[y]=or(D[y].slice(D[y].indexOf('"')+1));var M=h.match(RZ);M&&HZ(c,M,n);var A=h.match(FZ);if(A&&(c["!margins"]=WZ(Lt(A[0]))),!c["!ref"]&&f.e.c>=f.s.c&&f.e.r>=f.s.r&&(c["!ref"]=zt(f)),t.sheetRows>0&&c["!ref"]){var O=or(c["!ref"]);t.sheetRows<=+O.e.r&&(O.e.r=t.sheetRows-1,O.e.r>f.e.r&&(O.e.r=f.e.r),O.e.r<O.s.r&&(O.s.r=O.e.r),O.e.c>f.e.c&&(O.e.c=f.e.c),O.e.c<O.s.c&&(O.s.c=O.e.c),c["!fullref"]=c["!ref"],c["!ref"]=zt(O))}return w.length>0&&(c["!cols"]=w),E.length>0&&(c["!merges"]=E),c}function LZ(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+zt(e[r])+'"/>';return t+"</mergeCells>"}function f2(e,t,r,n){var a=Lt(e);r.Sheets[n]||(r.Sheets[n]={}),a.codeName&&(r.Sheets[n].CodeName=sr(Ar(a.codeName)))}function IZ(e,t,r,n,a){f2(e.slice(0,e.indexOf(">")),r,n,a)}function BZ(e,t,r,n,a){var s=!1,o={},c=null;if(n.bookType!=="xlsx"&&t.vbaraw){var f=t.SheetNames[r];try{t.Workbook&&(f=t.Workbook.Sheets[r].CodeName||f)}catch{}s=!0,o.codeName=hs(Tr(f))}if(e&&e["!outline"]){var d={summaryBelow:1,summaryRight:1};e["!outline"].above&&(d.summaryBelow=0),e["!outline"].left&&(d.summaryRight=0),c=(c||"")+Qe("outlinePr",null,d)}!s&&!c||(a[a.length]=Qe("sheetPr",c,o))}var zZ=["objects","scenarios","selectLockedCells","selectUnlockedCells"],UZ=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function $Z(e){var t={sheet:1};return zZ.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),UZ.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=a2(e.password).toString(16).toUpperCase()),Qe("sheetProtection",null,t)}function HZ(e,t,r){for(var n=Array.isArray(e),a=0;a!=t.length;++a){var s=Lt(Ar(t[a]),!0);if(!s.ref)return;var o=((r||{})["!id"]||[])[s.id];o?(s.Target=o.Target,s.location&&(s.Target+="#"+sr(s.location))):(s.Target="#"+sr(s.location),o={Target:s.Target,TargetMode:"Internal"}),s.Rel=o,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var c=or(s.ref),f=c.s.r;f<=c.e.r;++f)for(var d=c.s.c;d<=c.e.c;++d){var h=Pt({c:d,r:f});n?(e[f]||(e[f]=[]),e[f][d]||(e[f][d]={t:"z",v:void 0}),e[f][d].l=s):(e[h]||(e[h]={t:"z",v:void 0}),e[h].l=s)}}}function WZ(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function VZ(e){return Nl(e),Qe("pageMargins",null,e)}function GZ(e,t){for(var r=!1,n=0;n!=t.length;++n){var a=Lt(t[n],!0);a.hidden&&(a.hidden=Nr(a.hidden));var s=parseInt(a.min,10)-1,o=parseInt(a.max,10)-1;for(a.outlineLevel&&(a.level=+a.outlineLevel||0),delete a.min,delete a.max,a.width=+a.width,!r&&a.width&&(r=!0,i2(a.width)),$o(a);s<=o;)e[s++]=jr(a)}}function XZ(e,t){for(var r=["<cols>"],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=Qe("col",null,_m(a,n)));return r[r.length]="</cols>",r.join("")}function YZ(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function qZ(e,t,r,n){var a=typeof e.ref=="string"?e.ref:zt(e.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=zt(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}}return c==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),Qe("autoFilter",null,{ref:a})}var KZ=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function QZ(e,t){t.Views||(t.Views=[{}]),(e.match(KZ)||[]).forEach(function(r,n){var a=Lt(r);t.Views[n]||(t.Views[n]={}),+a.zoomScale&&(t.Views[n].zoom=+a.zoomScale),Nr(a.rightToLeft)&&(t.Views[n].RTL=!0)})}function ZZ(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Qe("sheetViews",Qe("sheetView",null,a),{})}function JZ(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 a="",s=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=to[e.v];break;case"d":n&&n.cellDates?a=Pr(e.v,-1).toISOString():(e=jr(e),e.t="n",a=""+(e.v=Sn(Pr(e.v)))),typeof e.z>"u"&&(e.z=Ft[14]);break;default:a=e.v;break}var c=Bn("v",Tr(a)),f={r:t},d=tl(n.cellXfs,e,n);switch(d!==0&&(f.s=d),e.t){case"n":break;case"d":f.t="d";break;case"b":f.t="b";break;case"e":f.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){c=Bn("v",""+u2(n.Strings,e.v,n.revStrings)),f.t="s";break}f.t="str";break}if(e.t!=s&&(e.t=s,e.v=o),typeof e.f=="string"&&e.f){var h=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;c=Qe("f",Tr(e.f),h)+(e.v!=null?c:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(f.cm=1),Qe("c",c,f)}var eJ=(function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,s=_d("v"),o=_d("f");return function(f,d,h,g,x,y){for(var b=0,v="",w=[],C=[],k=0,E=0,D=0,M="",A,O,N=0,F=0,P,j,R=0,W=0,Y=Array.isArray(y.CellXf),Z,B=[],ne=[],ce=Array.isArray(d),U=[],H={},ie=!1,z=!!h.sheetStubs,K=f.split(t),Q=0,ee=K.length;Q!=ee;++Q){v=K[Q].trim();var ae=v.length;if(ae!==0){var xe=0;e:for(b=0;b<ae;++b)switch(v[b]){case">":if(v[b-1]!="/"){++b;break e}if(h&&h.cellStyles){if(O=Lt(v.slice(xe,b),!0),N=O.r!=null?parseInt(O.r,10):N+1,F=-1,h.sheetRows&&h.sheetRows<N)continue;H={},ie=!1,O.ht&&(ie=!0,H.hpt=parseFloat(O.ht),H.hpx=pu(H.hpt)),O.hidden=="1"&&(ie=!0,H.hidden=!0),O.outlineLevel!=null&&(ie=!0,H.level=+O.outlineLevel),ie&&(U[N-1]=H)}break;case"<":xe=b;break}if(xe>=b)break;if(O=Lt(v.slice(xe,b),!0),N=O.r!=null?parseInt(O.r,10):N+1,F=-1,!(h.sheetRows&&h.sheetRows<N)){g.s.r>N-1&&(g.s.r=N-1),g.e.r<N-1&&(g.e.r=N-1),h&&h.cellStyles&&(H={},ie=!1,O.ht&&(ie=!0,H.hpt=parseFloat(O.ht),H.hpx=pu(H.hpt)),O.hidden=="1"&&(ie=!0,H.hidden=!0),O.outlineLevel!=null&&(ie=!0,H.level=+O.outlineLevel),ie&&(U[N-1]=H)),w=v.slice(b).split(e);for(var ye=0;ye!=w.length&&w[ye].trim().charAt(0)=="<";++ye);for(w=w.slice(ye),b=0;b!=w.length;++b)if(v=w[b].trim(),v.length!==0){if(C=v.match(r),k=b,E=0,D=0,v="<c "+(v.slice(0,1)=="<"?">":"")+v,C!=null&&C.length===2){for(k=0,M=C[1],E=0;E!=M.length&&!((D=M.charCodeAt(E)-64)<1||D>26);++E)k=26*k+D;--k,F=k}else++F;for(E=0;E!=v.length&&v.charCodeAt(E)!==62;++E);if(++E,O=Lt(v.slice(0,E),!0),O.r||(O.r=Pt({r:N-1,c:F})),M=v.slice(E),A={t:""},(C=M.match(s))!=null&&C[1]!==""&&(A.v=sr(C[1])),h.cellFormula){if((C=M.match(o))!=null&&C[1]!==""){if(A.f=sr(Ar(C[1])).replace(/\r\n/g,`
`),h.xlfn||(A.f=O4(A.f)),C[0].indexOf('t="array"')>-1)A.F=(M.match(a)||[])[1],A.F.indexOf(":")>-1&&B.push([or(A.F),A.F]);else if(C[0].indexOf('t="shared"')>-1){j=Lt(C[0]);var Te=sr(Ar(C[1]));h.xlfn||(Te=O4(Te)),ne[parseInt(j.si,10)]=[j,Te,O.r]}}else(C=M.match(/<f[^>]*\/>/))&&(j=Lt(C[0]),ne[j.si]&&(A.f=KK(ne[j.si][1],ne[j.si][2],O.r)));var he=Hr(O.r);for(E=0;E<B.length;++E)he.r>=B[E][0].s.r&&he.r<=B[E][0].e.r&&he.c>=B[E][0].s.c&&he.c<=B[E][0].e.c&&(A.F=B[E][1])}if(O.t==null&&A.v===void 0)if(A.f||A.F)A.v=0,A.t="n";else if(z)A.t="z";else continue;else A.t=O.t||"n";switch(g.s.c>F&&(g.s.c=F),g.e.c<F&&(g.e.c=F),A.t){case"n":if(A.v==""||A.v==null){if(!z)continue;A.t="z"}else A.v=parseFloat(A.v);break;case"s":if(typeof A.v>"u"){if(!z)continue;A.t="z"}else P=ed[parseInt(A.v,10)],A.v=P.t,A.r=P.r,h.cellHTML&&(A.h=P.h);break;case"str":A.t="s",A.v=A.v!=null?Ar(A.v):"",h.cellHTML&&(A.h=Hy(A.v));break;case"inlineStr":C=M.match(n),A.t="s",C!=null&&(P=n2(C[1]))?(A.v=P.t,h.cellHTML&&(A.h=P.h)):A.v="";break;case"b":A.v=Nr(A.v);break;case"d":h.cellDates?A.v=Pr(A.v,1):(A.v=Sn(Pr(A.v,1)),A.t="n");break;case"e":(!h||h.cellText!==!1)&&(A.w=A.v),A.v=EA[A.v];break}if(R=W=0,Z=null,Y&&O.s!==void 0&&(Z=y.CellXf[O.s],Z!=null&&(Z.numFmtId!=null&&(R=Z.numFmtId),h.cellStyles&&Z.fillId!=null&&(W=Z.fillId))),wR(A,R,W,h,x,y),h.cellDates&&Y&&A.t=="n"&&wu(Ft[R])&&(A.t="d",A.v=wm(A.v)),O.cm&&h.xlmeta){var Ve=(h.xlmeta.Cell||[])[+O.cm-1];Ve&&Ve.type=="XLDAPR"&&(A.D=!0)}if(ce){var te=Hr(O.r);d[te.r]||(d[te.r]=[]),d[te.r][te.c]=A}else d[O.r]=A}}}}U.length>0&&(d["!rows"]=U)}})();function tJ(e,t,r,n){var a=[],s=[],o=or(e["!ref"]),c="",f,d="",h=[],g=0,x=0,y=e["!rows"],b=Array.isArray(e),v={r:d},w,C=-1;for(x=o.s.c;x<=o.e.c;++x)h[x]=$r(x);for(g=o.s.r;g<=o.e.r;++g){for(s=[],d=on(g),x=o.s.c;x<=o.e.c;++x){f=h[x]+d;var k=b?(e[g]||[])[x]:e[f];k!==void 0&&(c=JZ(k,f,e,t))!=null&&s.push(c)}(s.length>0||y&&y[g])&&(v={r:d},y&&y[g]&&(w=y[g],w.hidden&&(v.hidden=1),C=-1,w.hpx?C=Fd(w.hpx):w.hpt&&(C=w.hpt),C>-1&&(v.ht=C,v.customHeight=1),w.level&&(v.outlineLevel=w.level)),a[a.length]=Qe("row",s.join(""),v))}if(y)for(;g<y.length;++g)y&&y[g]&&(v={r:g+1},w=y[g],w.hidden&&(v.hidden=1),C=-1,w.hpx?C=Fd(w.hpx):w.hpt&&(C=w.hpt),C>-1&&(v.ht=C,v.customHeight=1),w.level&&(v.outlineLevel=w.level),a[a.length]=Qe("row","",v));return a.join("")}function CR(e,t,r,n){var a=[cn,Qe("worksheet",null,{xmlns:Xl[0],"xmlns:r":yn.r})],s=r.SheetNames[e],o=0,c="",f=r.Sheets[s];f==null&&(f={});var d=f["!ref"]||"A1",h=or(d);if(h.e.c>16383||h.e.r>1048575){if(t.WTF)throw new Error("Range "+d+" exceeds format limit A1:XFD1048576");h.e.c=Math.min(h.e.c,16383),h.e.r=Math.min(h.e.c,1048575),d=zt(h)}n||(n={}),f["!comments"]=[];var g=[];BZ(f,r,e,t,a),a[a.length]=Qe("dimension",null,{ref:d}),a[a.length]=ZZ(f,t,e,r),t.sheetFormat&&(a[a.length]=Qe("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),f["!cols"]!=null&&f["!cols"].length>0&&(a[a.length]=XZ(f,f["!cols"])),a[o=a.length]="<sheetData/>",f["!links"]=[],f["!ref"]!=null&&(c=tJ(f,t),c.length>0&&(a[a.length]=c)),a.length>o+1&&(a[a.length]="</sheetData>",a[o]=a[o].replace("/>",">")),f["!protect"]&&(a[a.length]=$Z(f["!protect"])),f["!autofilter"]!=null&&(a[a.length]=qZ(f["!autofilter"],f,r,e)),f["!merges"]!=null&&f["!merges"].length>0&&(a[a.length]=LZ(f["!merges"]));var x=-1,y,b=-1;return f["!links"].length>0&&(a[a.length]="<hyperlinks>",f["!links"].forEach(function(v){v[1].Target&&(y={ref:v[0]},v[1].Target.charAt(0)!="#"&&(b=Sr(n,-1,Tr(v[1].Target).replace(/#.*$/,""),Yt.HLINK),y["r:id"]="rId"+b),(x=v[1].Target.indexOf("#"))>-1&&(y.location=Tr(v[1].Target.slice(x+1))),v[1].Tooltip&&(y.tooltip=Tr(v[1].Tooltip)),a[a.length]=Qe("hyperlink",null,y))}),a[a.length]="</hyperlinks>"),delete f["!links"],f["!margins"]!=null&&(a[a.length]=VZ(f["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=Bn("ignoredErrors",Qe("ignoredError",null,{numberStoredAsText:1,sqref:d}))),g.length>0&&(b=Sr(n,-1,"../drawings/drawing"+(e+1)+".xml",Yt.DRAW),a[a.length]=Qe("drawing",null,{"r:id":"rId"+b}),f["!drawing"]=g),f["!comments"].length>0&&(b=Sr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Yt.VML),a[a.length]=Qe("legacyDrawing",null,{"r:id":"rId"+b}),f["!legacy"]=b),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function rJ(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=n,s&7&&(r.level=s&7),s&16&&(r.hidden=!0),s&32&&(r.hpt=a/20),r}function nJ(e,t,r){var n=Ne(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var s=320;a.hpx?s=Fd(a.hpx)*20:a.hpt&&(s=a.hpt*20),n.write_shift(2,s),n.write_shift(1,0);var o=0;a.level&&(o|=a.level),a.hidden&&(o|=16),(a.hpx||a.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var c=0,f=n.l;n.l+=4;for(var d={r:e,c:0},h=0;h<16;++h)if(!(t.s.c>h+1<<10||t.e.c<h<<10)){for(var g=-1,x=-1,y=h<<10;y<h+1<<10;++y){d.c=y;var b=Array.isArray(r)?(r[d.r]||[])[d.c]:r[Pt(d)];b&&(g<0&&(g=y),x=y)}g<0||(++c,n.write_shift(4,g),n.write_shift(4,x))}var v=n.l;return n.l=f,n.write_shift(4,c),n.l=v,n.length>n.l?n.slice(0,n.l):n}function aJ(e,t,r,n){var a=nJ(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&He(e,0,a)}var iJ=Ql,sJ=Eu;function oJ(){}function lJ(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=fG(e),r}function cJ(e,t,r){r==null&&(r=Ne(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Fp({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),bA(e,r),r.slice(0,r.l)}function uJ(e){var t=ji(e);return[t]}function fJ(e,t,r){return r==null&&(r=Ne(8)),Yl(t,r)}function dJ(e){var t=ql(e);return[t]}function hJ(e,t,r){return r==null&&(r=Ne(4)),Kl(t,r)}function pJ(e){var t=ji(e),r=e.read_shift(1);return[t,r,"b"]}function mJ(e,t,r){return r==null&&(r=Ne(9)),Yl(t,r),r.write_shift(1,e.v?1:0),r}function gJ(e){var t=ql(e),r=e.read_shift(1);return[t,r,"b"]}function xJ(e,t,r){return r==null&&(r=Ne(5)),Kl(t,r),r.write_shift(1,e.v?1:0),r}function vJ(e){var t=ji(e),r=e.read_shift(1);return[t,r,"e"]}function yJ(e,t,r){return r==null&&(r=Ne(9)),Yl(t,r),r.write_shift(1,e.v),r}function bJ(e){var t=ql(e),r=e.read_shift(1);return[t,r,"e"]}function SJ(e,t,r){return r==null&&(r=Ne(8)),Kl(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function wJ(e){var t=ji(e),r=e.read_shift(4);return[t,r,"s"]}function TJ(e,t,r){return r==null&&(r=Ne(12)),Yl(t,r),r.write_shift(4,t.v),r}function CJ(e){var t=ql(e),r=e.read_shift(4);return[t,r,"s"]}function EJ(e,t,r){return r==null&&(r=Ne(8)),Kl(t,r),r.write_shift(4,t.v),r}function _J(e){var t=ji(e),r=Zn(e);return[t,r,"n"]}function kJ(e,t,r){return r==null&&(r=Ne(16)),Yl(t,r),$l(e.v,r),r}function ER(e){var t=ql(e),r=Zn(e);return[t,r,"n"]}function AJ(e,t,r){return r==null&&(r=Ne(12)),Kl(t,r),$l(e.v,r),r}function RJ(e){var t=ji(e),r=Zy(e);return[t,r,"n"]}function OJ(e,t,r){return r==null&&(r=Ne(12)),Yl(t,r),SA(e.v,r),r}function DJ(e){var t=ql(e),r=Zy(e);return[t,r,"n"]}function MJ(e,t,r){return r==null&&(r=Ne(8)),Kl(t,r),SA(e.v,r),r}function FJ(e){var t=ji(e),r=qy(e);return[t,r,"is"]}function NJ(e){var t=ji(e),r=na(e);return[t,r,"str"]}function PJ(e,t,r){return r==null&&(r=Ne(12+4*e.v.length)),Yl(t,r),Dn(e.v,r),r.length>r.l?r.slice(0,r.l):r}function jJ(e){var t=ql(e),r=na(e);return[t,r,"str"]}function LJ(e,t,r){return r==null&&(r=Ne(8+4*e.v.length)),Kl(t,r),Dn(e.v,r),r.length>r.l?r.slice(0,r.l):r}function IJ(e,t,r){var n=e.l+t,a=ji(e);a.r=r["!row"];var s=e.read_shift(1),o=[a,s,"b"];if(r.cellFormula){e.l+=2;var c=Em(e,n-e.l,r);o[3]=qn(c,null,a,r.supbooks,r)}else e.l=n;return o}function BJ(e,t,r){var n=e.l+t,a=ji(e);a.r=r["!row"];var s=e.read_shift(1),o=[a,s,"e"];if(r.cellFormula){e.l+=2;var c=Em(e,n-e.l,r);o[3]=qn(c,null,a,r.supbooks,r)}else e.l=n;return o}function zJ(e,t,r){var n=e.l+t,a=ji(e);a.r=r["!row"];var s=Zn(e),o=[a,s,"n"];if(r.cellFormula){e.l+=2;var c=Em(e,n-e.l,r);o[3]=qn(c,null,a,r.supbooks,r)}else e.l=n;return o}function UJ(e,t,r){var n=e.l+t,a=ji(e);a.r=r["!row"];var s=na(e),o=[a,s,"str"];if(r.cellFormula){e.l+=2;var c=Em(e,n-e.l,r);o[3]=qn(c,null,a,r.supbooks,r)}else e.l=n;return o}var $J=Ql,HJ=Eu;function WJ(e,t){return t==null&&(t=Ne(4)),t.write_shift(4,e),t}function VJ(e,t){var r=e.l+t,n=Ql(e),a=Ky(e),s=na(e),o=na(e),c=na(e);e.l=r;var f={rfx:n,relId:a,loc:s,display:c};return o&&(f.Tooltip=o),f}function GJ(e,t){var r=Ne(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Eu({s:Hr(e[0]),e:Hr(e[0])},r),Qy("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return Dn(a||"",r),Dn(e[1].Tooltip||"",r),Dn("",r),r.slice(0,r.l)}function XJ(){}function YJ(e,t,r){var n=e.l+t,a=wA(e),s=e.read_shift(1),o=[a];if(o[2]=s,r.cellFormula){var c=vZ(e,n-e.l,r);o[1]=c}else e.l=n;return o}function qJ(e,t,r){var n=e.l+t,a=Ql(e),s=[a];if(r.cellFormula){var o=bZ(e,n-e.l,r);s[1]=o,e.l=n}else e.l=n;return s}function KJ(e,t,r){r==null&&(r=Ne(18));var n=_m(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 a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var _R=["left","right","top","bottom","header","footer"];function QJ(e){var t={};return _R.forEach(function(r){t[r]=Zn(e)}),t}function ZJ(e,t){return t==null&&(t=Ne(48)),Nl(e),_R.forEach(function(r){$l(e[r],t)}),t}function JJ(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function eee(e,t,r){r==null&&(r=Ne(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 tee(e){var t=Ne(24);return t.write_shift(4,4),t.write_shift(4,1),Eu(e,t),t}function ree(e,t){return t==null&&(t=Ne(66)),t.write_shift(2,e.password?a2(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 nee(){}function aee(){}function iee(e,t,r,n,a,s,o){if(!e)return e;var c=t||{};n||(n={"!id":{}});var f=c.dense?[]:{},d,h={s:{r:2e6,c:2e6},e:{r:0,c:0}},g=!1,x=!1,y,b,v,w,C,k,E,D,M,A=[];c.biff=12,c["!row"]=0;var O=0,N=!1,F=[],P={},j=c.supbooks||a.supbooks||[[]];if(j.sharedf=P,j.arrayf=F,j.SheetNames=a.SheetNames||a.Sheets.map(function(ce){return ce.name}),!c.supbooks&&(c.supbooks=j,a.Names))for(var R=0;R<a.Names.length;++R)j[0][R+1]=a.Names[R];var W=[],Y=[],Z=!1;Nd[16]={n:"BrtShortReal",f:ER};var B;if(eo(e,function(U,H,ie){if(!x)switch(ie){case 148:d=U;break;case 0:y=U,c.sheetRows&&c.sheetRows<=y.r&&(x=!0),D=on(w=y.r),c["!row"]=y.r,(U.hidden||U.hpt||U.level!=null)&&(U.hpt&&(U.hpx=pu(U.hpt)),Y[U.r]=U);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(b={t:U[2]},U[2]){case"n":b.v=U[1];break;case"s":E=ed[U[1]],b.v=E.t,b.r=E.r;break;case"b":b.v=!!U[1];break;case"e":b.v=U[1],c.cellText!==!1&&(b.w=to[b.v]);break;case"str":b.t="s",b.v=U[1];break;case"is":b.t="s",b.v=U[1].t;break}if((v=o.CellXf[U[0].iStyleRef])&&wR(b,v.numFmtId,null,c,s,o),C=U[0].c==-1?C+1:U[0].c,c.dense?(f[w]||(f[w]=[]),f[w][C]=b):f[$r(C)+D]=b,c.cellFormula){for(N=!1,O=0;O<F.length;++O){var z=F[O];y.r>=z[0].s.r&&y.r<=z[0].e.r&&C>=z[0].s.c&&C<=z[0].e.c&&(b.F=zt(z[0]),N=!0)}!N&&U.length>3&&(b.f=U[3])}if(h.s.r>y.r&&(h.s.r=y.r),h.s.c>C&&(h.s.c=C),h.e.r<y.r&&(h.e.r=y.r),h.e.c<C&&(h.e.c=C),c.cellDates&&v&&b.t=="n"&&wu(Ft[v.numFmtId])){var K=Al(b.v);K&&(b.t="d",b.v=new Date(K.y,K.m-1,K.d,K.H,K.M,K.S,K.u))}B&&(B.type=="XLDAPR"&&(b.D=!0),B=void 0);break;case 1:case 12:if(!c.sheetStubs||g)break;b={t:"z",v:void 0},C=U[0].c==-1?C+1:U[0].c,c.dense?(f[w]||(f[w]=[]),f[w][C]=b):f[$r(C)+D]=b,h.s.r>y.r&&(h.s.r=y.r),h.s.c>C&&(h.s.c=C),h.e.r<y.r&&(h.e.r=y.r),h.e.c<C&&(h.e.c=C),B&&(B.type=="XLDAPR"&&(b.D=!0),B=void 0);break;case 176:A.push(U);break;case 49:B=((c.xlmeta||{}).Cell||[])[U-1];break;case 494:var Q=n["!id"][U.relId];for(Q?(U.Target=Q.Target,U.loc&&(U.Target+="#"+U.loc),U.Rel=Q):U.relId==""&&(U.Target="#"+U.loc),w=U.rfx.s.r;w<=U.rfx.e.r;++w)for(C=U.rfx.s.c;C<=U.rfx.e.c;++C)c.dense?(f[w]||(f[w]=[]),f[w][C]||(f[w][C]={t:"z",v:void 0}),f[w][C].l=U):(k=Pt({c:C,r:w}),f[k]||(f[k]={t:"z",v:void 0}),f[k].l=U);break;case 426:if(!c.cellFormula)break;F.push(U),M=c.dense?f[w][C]:f[$r(C)+D],M.f=qn(U[1],h,{r:y.r,c:C},j,c),M.F=zt(U[0]);break;case 427:if(!c.cellFormula)break;P[Pt(U[0].s)]=U[1],M=c.dense?f[w][C]:f[$r(C)+D],M.f=qn(U[1],h,{r:y.r,c:C},j,c);break;case 60:if(!c.cellStyles)break;for(;U.e>=U.s;)W[U.e--]={width:U.w/256,hidden:!!(U.flags&1),level:U.level},Z||(Z=!0,i2(U.w/256)),$o(W[U.e+1]);break;case 161:f["!autofilter"]={ref:zt(U)};break;case 476:f["!margins"]=U;break;case 147:a.Sheets[r]||(a.Sheets[r]={}),U.name&&(a.Sheets[r].CodeName=U.name),(U.above||U.left)&&(f["!outline"]={above:U.above,left:U.left});break;case 137:a.Views||(a.Views=[{}]),a.Views[0]||(a.Views[0]={}),U.RTL&&(a.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:g=!0;break;case 36:g=!1;break;case 37:g=!0;break;case 38:g=!1;break;default:if(!H.T){if(!g||c.WTF)throw new Error("Unexpected record 0x"+ie.toString(16))}}},c),delete c.supbooks,delete c["!row"],!f["!ref"]&&(h.s.r<2e6||d&&(d.e.r>0||d.e.c>0||d.s.r>0||d.s.c>0))&&(f["!ref"]=zt(d||h)),c.sheetRows&&f["!ref"]){var ne=or(f["!ref"]);c.sheetRows<=+ne.e.r&&(ne.e.r=c.sheetRows-1,ne.e.r>h.e.r&&(ne.e.r=h.e.r),ne.e.r<ne.s.r&&(ne.s.r=ne.e.r),ne.e.c>h.e.c&&(ne.e.c=h.e.c),ne.e.c<ne.s.c&&(ne.s.c=ne.e.c),f["!fullref"]=f["!ref"],f["!ref"]=zt(ne))}return A.length>0&&(f["!merges"]=A),W.length>0&&(f["!cols"]=W),Y.length>0&&(f["!rows"]=Y),f}function see(e,t,r,n,a,s,o){if(t.v===void 0)return!1;var c="";switch(t.t){case"b":c=t.v?"1":"0";break;case"d":t=jr(t),t.z=t.z||Ft[14],t.v=Sn(Pr(t.v)),t.t="n";break;case"n":case"e":c=""+t.v;break;default:c=t.v;break}var f={r,c:n};switch(f.s=tl(a.cellXfs,t,a),t.l&&s["!links"].push([Pt(f),t.l]),t.c&&s["!comments"].push([Pt(f),t.c]),t.t){case"s":case"str":return a.bookSST?(c=u2(a.Strings,t.v,a.revStrings),f.t="s",f.v=c,o?He(e,18,EJ(t,f)):He(e,7,TJ(t,f))):(f.t="str",o?He(e,17,LJ(t,f)):He(e,6,PJ(t,f))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?He(e,13,MJ(t,f)):He(e,2,OJ(t,f)):o?He(e,16,AJ(t,f)):He(e,5,kJ(t,f)),!0;case"b":return f.t="b",o?He(e,15,xJ(t,f)):He(e,4,mJ(t,f)),!0;case"e":return f.t="e",o?He(e,14,SJ(t,f)):He(e,3,yJ(t,f)),!0}return o?He(e,12,hJ(t,f)):He(e,1,fJ(t,f)),!0}function oee(e,t,r,n){var a=or(t["!ref"]||"A1"),s,o="",c=[];He(e,145);var f=Array.isArray(t),d=a.e.r;t["!rows"]&&(d=Math.max(a.e.r,t["!rows"].length-1));for(var h=a.s.r;h<=d;++h){o=on(h),aJ(e,t,a,h);var g=!1;if(h<=a.e.r)for(var x=a.s.c;x<=a.e.c;++x){h===a.s.r&&(c[x]=$r(x)),s=c[x]+o;var y=f?(t[h]||[])[x]:t[s];if(!y){g=!1;continue}g=see(e,y,h,x,n,t,g)}}He(e,146)}function lee(e,t){!t||!t["!merges"]||(He(e,177,WJ(t["!merges"].length)),t["!merges"].forEach(function(r){He(e,176,HJ(r))}),He(e,178))}function cee(e,t){!t||!t["!cols"]||(He(e,390),t["!cols"].forEach(function(r,n){r&&He(e,60,KJ(n,r))}),He(e,391))}function uee(e,t){!t||!t["!ref"]||(He(e,648),He(e,649,tee(or(t["!ref"]))),He(e,650))}function fee(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=Sr(r,-1,n[1].Target.replace(/#.*$/,""),Yt.HLINK);He(e,494,GJ(n,a))}}),delete t["!links"]}function dee(e,t,r,n){if(t["!comments"].length>0){var a=Sr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Yt.VML);He(e,551,Qy("rId"+a)),t["!legacy"]=a}}function hee(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],s=typeof a.ref=="string"?a.ref:zt(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,c=Pa(s);c.s.r==c.e.r&&(c.e.r=Pa(t["!ref"]).e.r,s=zt(c));for(var f=0;f<o.length;++f){var d=o[f];if(d.Name=="_xlnm._FilterDatabase"&&d.Sheet==n){d.Ref="'"+r.SheetNames[n]+"'!"+s;break}}f==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+s}),He(e,161,Eu(or(s))),He(e,162)}}function pee(e,t,r){He(e,133),He(e,137,eee(t,r)),He(e,138),He(e,134)}function mee(e,t){t["!protect"]&&He(e,535,ree(t["!protect"]))}function gee(e,t,r,n){var a=Fa(),s=r.SheetNames[e],o=r.Sheets[s]||{},c=s;try{r&&r.Workbook&&(c=r.Workbook.Sheets[e].CodeName||c)}catch{}var f=or(o["!ref"]||"A1");if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],He(a,129),(r.vbaraw||o["!outline"])&&He(a,147,cJ(c,o["!outline"])),He(a,148,sJ(f)),pee(a,o,r.Workbook),cee(a,o),oee(a,o,e,t),mee(a,o),hee(a,o,r,e),lee(a,o),fee(a,o,n),o["!margins"]&&He(a,476,ZJ(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&uee(a,o),dee(a,o,e,n),He(a,130),a.end()}function xee(e){var t=[],r=e.match(/^<c:numCache>/),n;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(s){var o=s.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);o&&(t[+o[1]]=r?+o[2]:o[2])});var a=sr((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(s){n=s.replace(/<.*?>/g,"")}),[t,a,n]}function vee(e,t,r,n,a,s){var o=s||{"!type":"chart"};if(!e)return s;var c=0,f=0,d="A",h={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(g){var x=xee(g);h.s.r=h.s.c=0,h.e.c=c,d=$r(c),x[0].forEach(function(y,b){o[d+on(b)]={t:"n",v:y,z:x[1]},f=b}),h.e.r<f&&(h.e.r=f),++c}),c>0&&(o["!ref"]=zt(h)),o}function yee(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o,c=e.match(TR);return c&&f2(c[0],s,a,r),(o=e.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=o[1]),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}function bee(e,t){e.l+=10;var r=na(e);return{name:r}}function See(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o=!1;return eo(e,function(f,d,h){switch(h){case 550:s["!rel"]=f;break;case 651:a.Sheets[r]||(a.Sheets[r]={}),f.name&&(a.Sheets[r].CodeName=f.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(d.T>0)){if(!(d.T<0)){if(!o||t.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}}},t),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}var d2=[["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"]],wee=[["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"]],Tee=[],Cee=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function P4(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],a=0;a!=t.length;++a){var s=t[a];if(n[s[0]]==null)n[s[0]]=s[1];else switch(s[2]){case"bool":typeof n[s[0]]=="string"&&(n[s[0]]=Nr(n[s[0]]));break;case"int":typeof n[s[0]]=="string"&&(n[s[0]]=parseInt(n[s[0]],10));break}}}function j4(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]]=Nr(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function kR(e){j4(e.WBProps,d2),j4(e.CalcPr,Cee),P4(e.WBView,wee),P4(e.Sheets,Tee),nu.date1904=Nr(e.WBProps.date1904)}function Eee(e){return!e.Workbook||!e.Workbook.WBProps?"false":Nr(e.Workbook.WBProps.date1904)?"true":"false"}var _ee="][*?/\\".split("");function AR(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return _ee.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function kee(e,t,r){e.forEach(function(n,a){AR(n);for(var s=0;s<a;++s)if(n==e[s])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=t&&t[a]&&t[a].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function Aee(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||[];kee(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)EZ(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}var Ree=/<\w+:workbook/;function Oee(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,a="xmlns",s={},o=0;if(e.replace(ia,function(f,d){var h=Lt(f);switch(bs(h[0])){case"<?xml":break;case"<workbook":f.match(Ree)&&(a="xmlns"+f.match(/<(\w+):/)[1]),r.xmlns=h[a];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/>":d2.forEach(function(g){if(h[g[0]]!=null)switch(g[2]){case"bool":r.WBProps[g[0]]=Nr(h[g[0]]);break;case"int":r.WBProps[g[0]]=parseInt(h[g[0]],10);break;default:r.WBProps[g[0]]=h[g[0]]}}),h.codeName&&(r.WBProps.CodeName=Ar(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=sr(Ar(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":s={},s.Name=Ar(h.name),h.comment&&(s.Comment=h.comment),h.localSheetId&&(s.Sheet=+h.localSheetId),Nr(h.hidden||"0")&&(s.Hidden=!0),o=d+f.length;break;case"</definedName>":s.Ref=sr(Ar(e.slice(o,d))),r.Names.push(s);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 f}),Xl.indexOf(r.xmlns)===-1)throw new Error("Unknown Namespace: "+r.xmlns);return kR(r),r}function RR(e){var t=[cn];t[t.length]=Qe("workbook",null,{xmlns:Xl[0],"xmlns:r":yn.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(d2.forEach(function(c){e.Workbook.WBProps[c[0]]!=null&&e.Workbook.WBProps[c[0]]!=c[1]&&(n[c[0]]=e.Workbook.WBProps[c[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=Qe("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],s=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="<bookViews>",s=0;s!=e.SheetNames.length&&!(!a[s]||!a[s].Hidden);++s);s==e.SheetNames.length&&(s=0),t[t.length]='<workbookView firstSheet="'+s+'" activeTab="'+s+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",s=0;s!=e.SheetNames.length;++s){var o={name:Tr(e.SheetNames[s].slice(0,31))};if(o.sheetId=""+(s+1),o["r:id"]="rId"+(s+1),a[s])switch(a[s].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=Qe("sheet",null,o)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(c){var f={name:c.Name};c.Comment&&(f.comment=c.Comment),c.Sheet!=null&&(f.localSheetId=""+c.Sheet),c.Hidden&&(f.hidden="1"),c.Ref&&(t[t.length]=Qe("definedName",Tr(c.Ref),f))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function Dee(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=hv(e),r.name=na(e),r}function Mee(e,t){return t||(t=Ne(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Qy(e.strRelID,t),Dn(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function Fee(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?na(e):"";return a.length>0&&(r.CodeName=a),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 Nee(e,t){t||(t=Ne(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),bA(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function Pee(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function jee(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),s=dG(e),o=yZ(e,0,r),c=Ky(e);e.l=n;var f={Name:s,Ptg:o};return a<268435455&&(f.Sheet=a),c&&(f.Comment=c),f}function Lee(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],a=!1;t||(t={}),t.biff=12;var s=[],o=[[]];return o.SheetNames=[],o.XTI=[],Nd[16]={n:"BrtFRTArchID$",f:Pee},eo(e,function(f,d,h){switch(h){case 156:o.SheetNames.push(f.name),r.Sheets.push(f);break;case 153:r.WBProps=f;break;case 39:f.Sheet!=null&&(t.SID=f.Sheet),f.Ref=qn(f.Ptg,null,null,o,t),delete t.SID,delete f.Ptg,s.push(f);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([h,f]):o[0]=[h,f],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(f),o.XTI=o.XTI.concat(f);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),a=!0;break;case 36:n.pop(),a=!1;break;case 37:n.push(h),a=!0;break;case 38:n.pop(),a=!1;break;case 16:break;default:if(!d.T){if(!a||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+h.toString(16))}}},t),kR(r),r.Names=s,r.supbooks=o,r}function Iee(e,t){He(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,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};He(e,156,Mee(a))}He(e,144)}function Bee(e,t){t||(t=Ne(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return Dn("SheetJS",t),Dn(_p.version,t),Dn(_p.version,t),Dn("7262",t),t.length>t.l?t.slice(0,t.l):t}function zee(e,t){t||(t=Ne(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 Uee(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,s=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&s==-1&&(s=n);s>a||(He(e,135),He(e,158,zee(a)),He(e,136))}}function $ee(e,t){var r=Fa();return He(r,131),He(r,128,Bee()),He(r,153,Nee(e.Workbook&&e.Workbook.WBProps||null)),Uee(r,e),Iee(r,e),He(r,132),r.end()}function Hee(e,t,r){return t.slice(-4)===".bin"?Lee(e,r):Oee(e,r)}function Wee(e,t,r,n,a,s,o,c){return t.slice(-4)===".bin"?iee(e,n,r,a,s,o,c):jZ(e,n,r,a,s,o,c)}function Vee(e,t,r,n,a,s,o,c){return t.slice(-4)===".bin"?See(e,n,r,a,s):yee(e,n,r,a,s)}function Gee(e,t,r,n,a,s,o,c){return t.slice(-4)===".bin"?YK():qK()}function Xee(e,t,r,n,a,s,o,c){return t.slice(-4)===".bin"?GK():XK()}function Yee(e,t,r,n){return t.slice(-4)===".bin"?Hq(e,r,n):Dq(e,r,n)}function qee(e,t,r){return cR(e,r)}function Kee(e,t,r){return t.slice(-4)===".bin"?KY(e,r):XY(e,r)}function Qee(e,t,r){return t.slice(-4)===".bin"?UK(e,r):MK(e,r)}function Zee(e,t,r){return t.slice(-4)===".bin"?RK(e):kK(e)}function Jee(e,t,r,n){return r.slice(-4)===".bin"?OK(e,t,r,n):void 0}function ete(e,t,r){return t.slice(-4)===".bin"?CK(e,t,r):_K(e,t,r)}function tte(e,t,r){return(t.slice(-4)===".bin"?$ee:RR)(e)}function rte(e,t,r,n,a){return(t.slice(-4)===".bin"?gee:CR)(e,r,n,a)}function nte(e,t,r){return(t.slice(-4)===".bin"?Jq:oR)(e,r)}function ate(e,t,r){return(t.slice(-4)===".bin"?JY:JA)(e,r)}function ite(e,t,r){return(t.slice(-4)===".bin"?$K:dR)(e)}function ste(e){return(e.slice(-4)===".bin"?EK:uR)()}var OR=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,DR=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function $i(e,t){var r=e.split(/\s+/),n=[];if(n[0]=r[0],r.length===1)return n;var a=e.match(OR),s,o,c,f;if(a)for(f=0;f!=a.length;++f)s=a[f].match(DR),(o=s[1].indexOf(":"))===-1?n[s[1]]=s[2].slice(1,s[2].length-1):(s[1].slice(0,6)==="xmlns:"?c="xmlns"+s[1].slice(6):c=s[1].slice(o+1),n[c]=s[2].slice(1,s[2].length-1));return n}function ote(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(OR),a,s,o,c;if(n)for(c=0;c!=n.length;++c)a=n[c].match(DR),(s=a[1].indexOf(":"))===-1?r[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),r[o]=a[2].slice(1,a[2].length-1));return r}var rd;function lte(e,t){var r=rd[e]||sr(e);return r==="General"?zl(t):Fi(r,t)}function cte(e,t,r,n){var a=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=Nr(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=Pr(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[sr(t)]=a}function ute(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||to[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Ed(e.v):e.w=zl(e.v):e.w=lte(t||"General",e.v)}catch(s){if(r.WTF)throw s}try{var n=rd[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&wu(n)){var a=Al(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(s){if(r.WTF)throw s}}}function fte(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=Tq[n.Pattern]||n.Pattern)}e[t.ID]=t}function dte(e,t,r,n,a,s,o,c,f,d){var h="General",g=n.StyleID,x={};d=d||{};var y=[],b=0;for(g===void 0&&c&&(g=c.StyleID),g===void 0&&o&&(g=o.StyleID);s[g]!==void 0&&(s[g].nf&&(h=s[g].nf),s[g].Interior&&y.push(s[g].Interior),!!s[g].Parent);)g=s[g].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=Nr(e);break;case"String":n.t="s",n.r=JE(sr(e)),n.v=e.indexOf("<")>-1?sr(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(Pr(e)-new Date(Date.UTC(1899,11,30)))/(1440*60*1e3),n.v!==n.v?n.v=sr(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=EA[e],d.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=JE(t||e));break}if(ute(n,h,d),d.cellFormula!==!1)if(n.Formula){var v=sr(n.Formula);v.charCodeAt(0)==61&&(v=v.slice(1)),n.f=ru(v,a),delete n.Formula,n.ArrayRange=="RC"?n.F=ru("RC:RC",a):n.ArrayRange&&(n.F=ru(n.ArrayRange,a),f.push([or(n.F),n.F]))}else for(b=0;b<f.length;++b)a.r>=f[b][0].s.r&&a.r<=f[b][0].e.r&&a.c>=f[b][0].s.c&&a.c<=f[b][0].e.c&&(n.F=f[b][1]);d.cellStyles&&(y.forEach(function(w){!x.patternType&&w.patternType&&(x.patternType=w.patternType)}),n.s=x),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function hte(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 gx(e,t){var r=t||{};Tu();var n=zf(Wy(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=Ar(n));var a=n.slice(0,1024).toLowerCase(),s=!1;if(a=a.replace(/".*?"/g,""),(a.indexOf(">")&1023)>Math.min(a.indexOf(",")&1023,a.indexOf(";")&1023)){var o=jr(r);return o.type="string",hu.to_workbook(n,o)}if(a.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(st){a.indexOf("<"+st)>=0&&(s=!0)}),s)return Zte(n,r);rd={"General Number":"General","General Date":Ft[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ft[15],"Short Date":Ft[14],"Long Time":Ft[19],"Medium Time":Ft[18],"Short Time":Ft[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ft[2],Standard:Ft[4],Percent:Ft[10],Scientific:Ft[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,f=[],d,h={},g=[],x=r.dense?[]:{},y="",b={},v={},w=$i('<Data ss:Type="String">'),C=0,k=0,E=0,D={s:{r:2e6,c:2e6},e:{r:0,c:0}},M={},A={},O="",N=0,F=[],P={},j={},R=0,W=[],Y=[],Z={},B=[],ne,ce=!1,U=[],H=[],ie={},z=0,K=0,Q={Sheets:[],WBProps:{date1904:!1}},ee={};Ad.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var ae="";c=Ad.exec(n);)switch(c[3]=(ae=c[3]).toLowerCase()){case"data":if(ae=="data"){if(c[1]==="/"){if((d=f.pop())[0]!==c[3])throw new Error("Bad state: "+d.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[3],!0]);break}if(f[f.length-1][1])break;c[1]==="/"?dte(n.slice(C,c.index),O,w,f[f.length-1][0]=="comment"?Z:b,{c:k,r:E},M,B[k],v,U,r):(O="",w=$i(c[0]),C=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(Y.length>0&&(b.c=Y),(!r.sheetRows||r.sheetRows>E)&&b.v!==void 0&&(r.dense?(x[E]||(x[E]=[]),x[E][k]=b):x[$r(k)+on(E)]=b),b.HRef&&(b.l={Target:sr(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(z=k+(parseInt(b.MergeAcross,10)|0),K=E+(parseInt(b.MergeDown,10)|0),F.push({s:{c:k,r:E},e:{c:z,r:K}})),!r.sheetStubs)b.MergeAcross?k=z+1:++k;else if(b.MergeAcross||b.MergeDown){for(var xe=k;xe<=z;++xe)for(var ye=E;ye<=K;++ye)(xe>k||ye>E)&&(r.dense?(x[ye]||(x[ye]=[]),x[ye][xe]={t:"z"}):x[$r(xe)+on(ye)]={t:"z"});k=z+1}else++k;else b=ote(c[0]),b.Index&&(k=+b.Index-1),k<D.s.c&&(D.s.c=k),k>D.e.c&&(D.e.c=k),c[0].slice(-2)==="/>"&&++k,Y=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(E<D.s.r&&(D.s.r=E),E>D.e.r&&(D.e.r=E),c[0].slice(-2)==="/>"&&(v=$i(c[0]),v.Index&&(E=+v.Index-1)),k=0,++E):(v=$i(c[0]),v.Index&&(E=+v.Index-1),ie={},(v.AutoFitHeight=="0"||v.Height)&&(ie.hpx=parseInt(v.Height,10),ie.hpt=Fd(ie.hpx),H[E]=ie),v.Hidden=="1"&&(ie.hidden=!0,H[E]=ie));break;case"worksheet":if(c[1]==="/"){if((d=f.pop())[0]!==c[3])throw new Error("Bad state: "+d.join("|"));g.push(y),D.s.r<=D.e.r&&D.s.c<=D.e.c&&(x["!ref"]=zt(D),r.sheetRows&&r.sheetRows<=D.e.r&&(x["!fullref"]=x["!ref"],D.e.r=r.sheetRows-1,x["!ref"]=zt(D))),F.length&&(x["!merges"]=F),B.length>0&&(x["!cols"]=B),H.length>0&&(x["!rows"]=H),h[y]=x}else D={s:{r:2e6,c:2e6},e:{r:0,c:0}},E=k=0,f.push([c[3],!1]),d=$i(c[0]),y=sr(d.Name),x=r.dense?[]:{},F=[],U=[],H=[],ee={name:y,Hidden:0},Q.Sheets.push(ee);break;case"table":if(c[1]==="/"){if((d=f.pop())[0]!==c[3])throw new Error("Bad state: "+d.join("|"))}else{if(c[0].slice(-2)=="/>")break;f.push([c[3],!1]),B=[],ce=!1}break;case"style":c[1]==="/"?fte(M,A,r):A=$i(c[0]);break;case"numberformat":A.nf=sr($i(c[0]).Format||"General"),rd[A.nf]&&(A.nf=rd[A.nf]);for(var Te=0;Te!=392&&Ft[Te]!=A.nf;++Te);if(Te==392){for(Te=57;Te!=392;++Te)if(Ft[Te]==null){Us(A.nf,Te);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if(ne=$i(c[0]),ne.Hidden&&(ne.hidden=!0,delete ne.Hidden),ne.Width&&(ne.wpx=parseInt(ne.Width,10)),!ce&&ne.wpx>10){ce=!0,Kn=iR;for(var he=0;he<B.length;++he)B[he]&&$o(B[he])}ce&&$o(ne),B[ne.Index-1||B.length]=ne;for(var Ve=0;Ve<+ne.Span;++Ve)B[B.length]=jr(ne);break;case"namedrange":if(c[1]==="/")break;Q.Names||(Q.Names=[]);var te=Lt(c[0]),rt={Name:te.Name,Ref:ru(te.RefersTo.slice(1),{r:0,c:0})};Q.Sheets.length>0&&(rt.Sheet=Q.Sheets.length-1),Q.Names.push(rt);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(c[0].slice(-2)==="/>")break;c[1]==="/"?O+=n.slice(N,c.index):N=c.index+c[0].length;break;case"interior":if(!r.cellStyles)break;A.Interior=$i(c[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(c[0].slice(-2)==="/>")break;c[1]==="/"?LG(P,ae,n.slice(R,c.index)):R=c.index+c[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(c[1]==="/"){if((d=f.pop())[0]!==c[3])throw new Error("Bad state: "+d.join("|"))}else f.push([c[3],!1]);break;case"comment":if(c[1]==="/"){if((d=f.pop())[0]!==c[3])throw new Error("Bad state: "+d.join("|"));hte(Z),Y.push(Z)}else f.push([c[3],!1]),d=$i(c[0]),Z={a:d.Author};break;case"autofilter":if(c[1]==="/"){if((d=f.pop())[0]!==c[3])throw new Error("Bad state: "+d.join("|"))}else if(c[0].charAt(c[0].length-2)!=="/"){var Ue=$i(c[0]);x["!autofilter"]={ref:ru(Ue.Range).replace(/\$/g,"")},f.push([c[3],!0])}break;case"name":break;case"datavalidation":if(c[1]==="/"){if((d=f.pop())[0]!==c[3])throw new Error("Bad state: "+d.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[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(c[1]==="/"){if((d=f.pop())[0]!==c[3])throw new Error("Bad state: "+d.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[3],!0]);break;case"null":break;default:if(f.length==0&&c[3]=="document"||f.length==0&&c[3]=="uof")return U4(n,r);var ve=!0;switch(f[f.length-1][0]){case"officedocumentsettings":switch(c[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:ve=!1}break;case"componentoptions":switch(c[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:ve=!1}break;case"excelworkbook":switch(c[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:ve=!1}break;case"workbookoptions":switch(c[3]){case"owcversion":break;case"height":break;case"width":break;default:ve=!1}break;case"worksheetoptions":switch(c[3]){case"visible":if(c[0].slice(-2)!=="/>")if(c[1]==="/")switch(n.slice(R,c.index)){case"SheetHidden":ee.Hidden=1;break;case"SheetVeryHidden":ee.Hidden=2;break}else R=c.index+c[0].length;break;case"header":x["!margins"]||Nl(x["!margins"]={},"xlml"),isNaN(+Lt(c[0]).Margin)||(x["!margins"].header=+Lt(c[0]).Margin);break;case"footer":x["!margins"]||Nl(x["!margins"]={},"xlml"),isNaN(+Lt(c[0]).Margin)||(x["!margins"].footer=+Lt(c[0]).Margin);break;case"pagemargins":var Ge=Lt(c[0]);x["!margins"]||Nl(x["!margins"]={},"xlml"),isNaN(+Ge.Top)||(x["!margins"].top=+Ge.Top),isNaN(+Ge.Left)||(x["!margins"].left=+Ge.Left),isNaN(+Ge.Right)||(x["!margins"].right=+Ge.Right),isNaN(+Ge.Bottom)||(x["!margins"].bottom=+Ge.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":x["!outline"]||(x["!outline"]={}),x["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":x["!outline"]||(x["!outline"]={}),x["!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:ve=!1}break;case"pivottable":case"pivotcache":switch(c[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:ve=!1}break;case"pagebreaks":switch(c[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ve=!1}break;case"autofilter":switch(c[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ve=!1}break;case"querytable":switch(c[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:ve=!1}break;case"datavalidation":switch(c[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:ve=!1}break;case"sorting":case"conditionalformatting":switch(c[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:ve=!1}break;case"mapinfo":case"schema":case"data":switch(c[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:ve=!1}break;case"smarttags":break;default:ve=!1;break}if(ve||c[3].match(/!\[CDATA/))break;if(!f[f.length-1][1])throw"Unrecognized tag: "+c[3]+"|"+f.join("|");if(f[f.length-1][0]==="customdocumentproperties"){if(c[0].slice(-2)==="/>")break;c[1]==="/"?cte(j,ae,W,n.slice(R,c.index)):(W=c,R=c.index+c[0].length);break}if(r.WTF)throw"Unrecognized tag: "+c[3]+"|"+f.join("|")}var Ae={};return!r.bookSheets&&!r.bookProps&&(Ae.Sheets=h),Ae.SheetNames=g,Ae.Workbook=Q,Ae.SSF=jr(Ft),Ae.Props=P,Ae.Custprops=j,Ae}function bv(e,t){switch(p2(t=t||{}),t.type||"base64"){case"base64":return gx(ni(e),t);case"binary":case"buffer":case"file":return gx(e,t);case"array":return gx(Jo(e),t)}}function pte(e,t){var r=[];return e.Props&&r.push(IG(e.Props,t)),e.Custprops&&r.push(BG(e.Props,e.Custprops)),r.join("")}function mte(){return""}function gte(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,a){var s=[];s.push(Qe("NumberFormat",null,{"ss:Format":Tr(Ft[n.numFmtId])}));var o={"ss:ID":"s"+(21+a)};r.push(Qe("Style",s.join(""),o))}),Qe("Styles",r.join(""))}function MR(e){return Qe("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+l2(e.Ref,{r:0,c:0})})}function xte(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var a=t[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(MR(a)))}return Qe("Names",r.join(""))}function vte(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,s=[],o=0;o<a.length;++o){var c=a[o];c.Sheet==r&&(c.Name.match(/^_xlfn\./)||s.push(MR(c)))}return s.join("")}function yte(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push("<PageSetup>"),e["!margins"].header&&a.push(Qe("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(Qe("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(Qe("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"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(Qe("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s<r&&!(n.Workbook.Sheets[s]&&!n.Workbook.Sheets[s].Hidden);++s);s==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),e["!protect"]&&(a.push(Bn("ProtectContents","True")),e["!protect"].objects&&a.push(Bn("ProtectObjects","True")),e["!protect"].scenarios&&a.push(Bn("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(Bn("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(Bn("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(o){e["!protect"][o[0]]&&a.push("<"+o[1]+"/>")})),a.length==0?"":Qe("WorksheetOptions",a.join(""),{xmlns:Ya.x})}function bte(e){return e.map(function(t){var r=UV(t.t||""),n=Qe("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Qe("Comment",n,{"ss:Author":t.a})}).join("")}function Ste(e,t,r,n,a,s,o){if(!e||e.v==null&&e.f==null)return"";var c={};if(e.f&&(c["ss:Formula"]="="+Tr(l2(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var f=Hr(e.F.slice(t.length+1));c["ss:ArrayRange"]="RC:R"+(f.r==o.r?"":"["+(f.r-o.r)+"]")+"C"+(f.c==o.c?"":"["+(f.c-o.c)+"]")}if(e.l&&e.l.Target&&(c["ss:HRef"]=Tr(e.l.Target),e.l.Tooltip&&(c["x:HRefScreenTip"]=Tr(e.l.Tooltip))),r["!merges"])for(var d=r["!merges"],h=0;h!=d.length;++h)d[h].s.c!=o.c||d[h].s.r!=o.r||(d[h].e.c>d[h].s.c&&(c["ss:MergeAcross"]=d[h].e.c-d[h].s.c),d[h].e.r>d[h].s.r&&(c["ss:MergeDown"]=d[h].e.r-d[h].s.r));var g="",x="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":g="Number",x=String(e.v);break;case"b":g="Boolean",x=e.v?"1":"0";break;case"e":g="Error",x=to[e.v];break;case"d":g="DateTime",x=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Ft[14]);break;case"s":g="String",x=zV(e.v||"");break}var y=tl(n.cellXfs,e,n);c["ss:StyleID"]="s"+(21+y),c["ss:Index"]=o.c+1;var b=e.v!=null?x:"",v=e.t=="z"?"":'<Data ss:Type="'+g+'">'+b+"</Data>";return(e.c||[]).length>0&&(v+=bte(e.c)),Qe("Cell",v,c)}function wte(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=pu(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function Tte(e,t,r,n){if(!e["!ref"])return"";var a=or(e["!ref"]),s=e["!merges"]||[],o=0,c=[];e["!cols"]&&e["!cols"].forEach(function(w,C){$o(w);var k=!!w.width,E=_m(C,w),D={"ss:Index":C+1};k&&(D["ss:Width"]=Dd(E.width)),w.hidden&&(D["ss:Hidden"]="1"),c.push(Qe("Column",null,D))});for(var f=Array.isArray(e),d=a.s.r;d<=a.e.r;++d){for(var h=[wte(d,(e["!rows"]||[])[d])],g=a.s.c;g<=a.e.c;++g){var x=!1;for(o=0;o!=s.length;++o)if(!(s[o].s.c>g)&&!(s[o].s.r>d)&&!(s[o].e.c<g)&&!(s[o].e.r<d)){(s[o].s.c!=g||s[o].s.r!=d)&&(x=!0);break}if(!x){var y={r:d,c:g},b=Pt(y),v=f?(e[d]||[])[g]:e[b];h.push(Ste(v,b,e,t,r,n,y))}}h.push("</Row>"),h.length>2&&c.push(h.join(""))}return c.join("")}function Cte(e,t,r){var n=[],a=r.SheetNames[e],s=r.Sheets[a],o=s?vte(s,t,e,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=s?Tte(s,t,e,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(yte(s,t,e,r)),n.join("")}function Ete(e,t){t||(t={}),e.SSF||(e.SSF=jr(Ft)),e.SSF&&(Tu(),ym(e.SSF),t.revssf=Sm(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],tl(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(pte(e,t)),r.push(mte()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(Qe("Worksheet",Cte(n,t,e),{"ss:Name":Tr(e.SheetNames[n])}));return r[2]=gte(e,t),r[3]=xte(e),cn+Qe("Workbook",r.join(""),{xmlns:Ya.ss,"xmlns:o":Ya.o,"xmlns:x":Ya.x,"xmlns:ss":Ya.ss,"xmlns:dt":Ya.dt,"xmlns:html":Ya.html})}function _te(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=xG(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=vG(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var kte=[60,1084,2066,2165,2175];function Ate(e,t,r,n,a){var s=n,o=[],c=r.slice(r.l,r.l+s);if(a&&a.enc&&a.enc.insitu&&c.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:a.enc.insitu(c)}o.push(c),r.l+=s;for(var f=Bs(r,r.l),d=Sv[f],h=0;d!=null&&kte.indexOf(f)>-1;)s=Bs(r,r.l+2),h=r.l+4,f==2066?h+=4:(f==2165||f==2175)&&(h+=12),c=r.slice(h,r.l+4+s),o.push(c),r.l+=4+s,d=Sv[f=Bs(r,r.l)];var g=Rn(o);In(g,0);var x=0;g.lens=[];for(var y=0;y<o.length;++y)g.lens.push(x),x+=o[y].length;if(g.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+g.length+" < "+n;return t.f(g,g.length,a)}function ss(e,t,r){if(e.t!=="z"&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=Ft[n])}catch(s){if(t.WTF)throw s}if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||to[e.v]:n===0||n=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Ed(e.v):e.w=zl(e.v):e.w=Fi(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(s){if(t.WTF)throw s}if(t.cellDates&&n&&e.t=="n"&&wu(Ft[n]||String(n))){var a=Al(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}}function Hh(e,t,r){return{v:e,ixfe:t,t:r}}function Rte(e,t){var r={opts:{}},n={},a=t.dense?[]:{},s={},o={},c=null,f=[],d="",h={},g,x="",y,b,v,w,C={},k=[],E,D,M=[],A=[],O={Sheets:[],WBProps:{date1904:!1},Views:[{}]},N={},F=function(xt){return xt<8?Dl[xt]:xt<64&&A[xt-8]||Dl[xt]},P=function(xt,ot,nr){var It=ot.XF.data;if(!(!It||!It.patternType||!nr||!nr.cellStyles)){ot.s={},ot.s.patternType=It.patternType;var Rr;(Rr=Od(F(It.icvFore)))&&(ot.s.fgColor={rgb:Rr}),(Rr=Od(F(It.icvBack)))&&(ot.s.bgColor={rgb:Rr})}},j=function(xt,ot,nr){if(!(ie>1)&&!(nr.sheetRows&&xt.r>=nr.sheetRows)){if(nr.cellStyles&&ot.XF&&ot.XF.data&&P(xt,ot,nr),delete ot.ixfe,delete ot.XF,g=xt,x=Pt(xt),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),xt.r<o.s.r&&(o.s.r=xt.r),xt.c<o.s.c&&(o.s.c=xt.c),xt.r+1>o.e.r&&(o.e.r=xt.r+1),xt.c+1>o.e.c&&(o.e.c=xt.c+1),nr.cellFormula&&ot.f){for(var It=0;It<k.length;++It)if(!(k[It][0].s.c>xt.c||k[It][0].s.r>xt.r)&&!(k[It][0].e.c<xt.c||k[It][0].e.r<xt.r)){ot.F=zt(k[It][0]),(k[It][0].s.c!=xt.c||k[It][0].s.r!=xt.r)&&delete ot.f,ot.f&&(ot.f=""+qn(k[It][1],o,xt,U,R));break}}nr.dense?(a[xt.r]||(a[xt.r]=[]),a[xt.r][xt.c]=ot):a[x]=ot}},R={enc:!1,sbcch:0,snames:[],sharedf:C,arrayf:k,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(R.password=t.password);var W,Y=[],Z=[],B=[],ne=[],ce=!1,U=[];U.SheetNames=R.snames,U.sharedf=R.sharedf,U.arrayf=R.arrayf,U.names=[],U.XTI=[];var H=0,ie=0,z=0,K=[],Q=[],ee;R.codepage=1200,Wi(1200);for(var ae=!1;e.l<e.length-1;){var xe=e.l,ye=e.read_shift(2);if(ye===0&&H===10)break;var Te=e.l===e.length?0:e.read_shift(2),he=Sv[ye];if(he&&he.f){if(t.bookSheets&&H===133&&ye!==133)break;if(H=ye,he.r===2||he.r==12){var Ve=e.read_shift(2);if(Te-=2,!R.enc&&Ve!==ye&&((Ve&255)<<8|Ve>>8)!==ye)throw new Error("rt mismatch: "+Ve+"!="+ye);he.r==12&&(e.l+=10,Te-=10)}var te={};if(ye===10?te=he.f(e,Te,R):te=Ate(ye,he,e,Te,R),ie==0&&[9,521,1033,2057].indexOf(H)===-1)continue;switch(ye){case 34:r.opts.Date1904=O.WBProps.date1904=te;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(R.enc||(e.l=0),R.enc=te,!t.password)throw new Error("File is password-protected");if(te.valid==null)throw new Error("Encryption scheme unsupported");if(!te.valid)throw new Error("Password is incorrect");break;case 92:R.lastuser=te;break;case 66:var rt=Number(te);switch(rt){case 21010:rt=1200;break;case 32768:rt=1e4;break;case 32769:rt=1252;break}Wi(R.codepage=rt),ae=!0;break;case 317:R.rrtabid=te;break;case 25:R.winlocked=te;break;case 439:r.opts.RefreshAll=te;break;case 12:r.opts.CalcCount=te;break;case 16:r.opts.CalcDelta=te;break;case 17:r.opts.CalcIter=te;break;case 13:r.opts.CalcMode=te;break;case 14:r.opts.CalcPrecision=te;break;case 95:r.opts.CalcSaveRecalc=te;break;case 15:R.CalcRefMode=te;break;case 2211:r.opts.FullCalc=te;break;case 129:te.fDialog&&(a["!type"]="dialog"),te.fBelow||((a["!outline"]||(a["!outline"]={})).above=!0),te.fRight||((a["!outline"]||(a["!outline"]={})).left=!0);break;case 224:M.push(te);break;case 430:U.push([te]),U[U.length-1].XTI=[];break;case 35:case 547:U[U.length-1].push(te);break;case 24:case 536:ee={Name:te.Name,Ref:qn(te.rgce,o,null,U,R)},te.itab>0&&(ee.Sheet=te.itab-1),U.names.push(ee),U[0]||(U[0]=[],U[0].XTI=[]),U[U.length-1].push(te),te.Name=="_xlnm._FilterDatabase"&&te.itab>0&&te.rgce&&te.rgce[0]&&te.rgce[0][0]&&te.rgce[0][0][0]=="PtgArea3d"&&(Q[te.itab-1]={ref:zt(te.rgce[0][0][1][2])});break;case 22:R.ExternCount=te;break;case 23:U.length==0&&(U[0]=[],U[0].XTI=[]),U[U.length-1].XTI=U[U.length-1].XTI.concat(te),U.XTI=U.XTI.concat(te);break;case 2196:if(R.biff<8)break;ee!=null&&(ee.Comment=te[1]);break;case 18:a["!protect"]=te;break;case 19:te!==0&&R.WTF&&console.error("Password verifier: "+te);break;case 133:s[te.pos]=te,R.snames.push(te.name);break;case 10:{if(--ie)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,a["!ref"]=zt(o),t.sheetRows&&t.sheetRows<=o.e.r){var Ue=o.e.r;o.e.r=t.sheetRows-1,a["!fullref"]=a["!ref"],a["!ref"]=zt(o),o.e.r=Ue}o.e.r++,o.e.c++}Y.length>0&&(a["!merges"]=Y),Z.length>0&&(a["!objects"]=Z),B.length>0&&(a["!cols"]=B),ne.length>0&&(a["!rows"]=ne),O.Sheets.push(N)}d===""?h=a:n[d]=a,a=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(R.biff===8&&(R.biff={9:2,521:3,1033:4}[ye]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[te.BIFFVer]||8),R.biffguess=te.BIFFVer==0,te.BIFFVer==0&&te.dt==4096&&(R.biff=5,ae=!0,Wi(R.codepage=28591)),R.biff==8&&te.BIFFVer==0&&te.dt==16&&(R.biff=2),ie++)break;if(a=t.dense?[]:{},R.biff<8&&!ae&&(ae=!0,Wi(R.codepage=t.codepage||1252)),R.biff<5||te.BIFFVer==0&&te.dt==4096){d===""&&(d="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var ve={pos:e.l-Te,name:d};s[ve.pos]=ve,R.snames.push(d)}else d=(s[xe]||{name:""}).name;te.dt==32&&(a["!type"]="chart"),te.dt==64&&(a["!type"]="macro"),Y=[],Z=[],R.arrayf=k=[],B=[],ne=[],ce=!1,N={Hidden:(s[xe]||{hs:0}).hs,name:d}}break;case 515:case 3:case 2:a["!type"]=="chart"&&(t.dense?(a[te.r]||[])[te.c]:a[Pt({c:te.c,r:te.r})])&&++te.c,E={ixfe:te.ixfe,XF:M[te.ixfe]||{},v:te.val,t:"n"},z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j({c:te.c,r:te.r},E,t);break;case 5:case 517:E={ixfe:te.ixfe,XF:M[te.ixfe],v:te.val,t:te.t},z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j({c:te.c,r:te.r},E,t);break;case 638:E={ixfe:te.ixfe,XF:M[te.ixfe],v:te.rknum,t:"n"},z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j({c:te.c,r:te.r},E,t);break;case 189:for(var Ge=te.c;Ge<=te.C;++Ge){var Ae=te.rkrec[Ge-te.c][0];E={ixfe:Ae,XF:M[Ae],v:te.rkrec[Ge-te.c][1],t:"n"},z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j({c:Ge,r:te.r},E,t)}break;case 6:case 518:case 1030:{if(te.val=="String"){c=te;break}if(E=Hh(te.val,te.cell.ixfe,te.tt),E.XF=M[E.ixfe],t.cellFormula){var st=te.formula;if(st&&st[0]&&st[0][0]&&st[0][0][0]=="PtgExp"){var yt=st[0][0][1][0],Ct=st[0][0][1][1],mt=Pt({r:yt,c:Ct});C[mt]?E.f=""+qn(te.formula,o,te.cell,U,R):E.F=((t.dense?(a[yt]||[])[Ct]:a[mt])||{}).F}else E.f=""+qn(te.formula,o,te.cell,U,R)}z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j(te.cell,E,t),c=te}break;case 7:case 519:if(c)c.val=te,E=Hh(te,c.cell.ixfe,"s"),E.XF=M[E.ixfe],t.cellFormula&&(E.f=""+qn(c.formula,o,c.cell,U,R)),z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j(c.cell,E,t),c=null;else throw new Error("String record expects Formula");break;case 33:case 545:{k.push(te);var qe=Pt(te[0].s);if(y=t.dense?(a[te[0].s.r]||[])[te[0].s.c]:a[qe],t.cellFormula&&y){if(!c||!qe||!y)break;y.f=""+qn(te[1],o,te[0],U,R),y.F=zt(te[0])}}break;case 1212:{if(!t.cellFormula)break;if(x){if(!c)break;C[Pt(c.cell)]=te[0],y=t.dense?(a[c.cell.r]||[])[c.cell.c]:a[Pt(c.cell)],(y||{}).f=""+qn(te[0],o,g,U,R)}}break;case 253:E=Hh(f[te.isst].t,te.ixfe,"s"),f[te.isst].h&&(E.h=f[te.isst].h),E.XF=M[E.ixfe],z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j({c:te.c,r:te.r},E,t);break;case 513:t.sheetStubs&&(E={ixfe:te.ixfe,XF:M[te.ixfe],t:"z"},z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j({c:te.c,r:te.r},E,t));break;case 190:if(t.sheetStubs)for(var Ut=te.c;Ut<=te.C;++Ut){var Dt=te.ixfe[Ut-te.c];E={ixfe:Dt,XF:M[Dt],t:"z"},z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j({c:Ut,r:te.r},E,t)}break;case 214:case 516:case 4:E=Hh(te.val,te.ixfe,"s"),E.XF=M[E.ixfe],z>0&&(E.z=K[E.ixfe>>8&63]),ss(E,t,r.opts.Date1904),j({c:te.c,r:te.r},E,t);break;case 0:case 512:ie===1&&(o=te);break;case 252:f=te;break;case 1054:if(R.biff==4){K[z++]=te[1];for(var vt=0;vt<z+163&&Ft[vt]!=te[1];++vt);vt>=163&&Us(te[1],z+163)}else Us(te[1],te[0]);break;case 30:{K[z++]=te;for(var Et=0;Et<z+163&&Ft[Et]!=te;++Et);Et>=163&&Us(te,z+163)}break;case 229:Y=Y.concat(te);break;case 93:Z[te.cmo[0]]=R.lastobj=te;break;case 438:R.lastobj.TxO=te;break;case 127:R.lastobj.ImData=te;break;case 440:for(w=te[0].s.r;w<=te[0].e.r;++w)for(v=te[0].s.c;v<=te[0].e.c;++v)y=t.dense?(a[w]||[])[v]:a[Pt({c:v,r:w})],y&&(y.l=te[1]);break;case 2048:for(w=te[0].s.r;w<=te[0].e.r;++w)for(v=te[0].s.c;v<=te[0].e.c;++v)y=t.dense?(a[w]||[])[v]:a[Pt({c:v,r:w})],y&&y.l&&(y.l.Tooltip=te[1]);break;case 28:{if(R.biff<=5&&R.biff>=2)break;y=t.dense?(a[te[0].r]||[])[te[0].c]:a[Pt(te[0])];var pt=Z[te[2]];y||(t.dense?(a[te[0].r]||(a[te[0].r]=[]),y=a[te[0].r][te[0].c]={t:"z"}):y=a[Pt(te[0])]={t:"z"},o.e.r=Math.max(o.e.r,te[0].r),o.s.r=Math.min(o.s.r,te[0].r),o.e.c=Math.max(o.e.c,te[0].c),o.s.c=Math.min(o.s.c,te[0].c)),y.c||(y.c=[]),b={a:te[1],t:pt.TxO.t},y.c.push(b)}break;case 2173:gK(M[te.ixfe],te.ext);break;case 125:{if(!R.cellStyles)break;for(;te.e>=te.s;)B[te.e--]={width:te.w/256,level:te.level||0,hidden:!!(te.flags&1)},ce||(ce=!0,i2(te.w/256)),$o(B[te.e+1])}break;case 520:{var _t={};te.level!=null&&(ne[te.r]=_t,_t.level=te.level),te.hidden&&(ne[te.r]=_t,_t.hidden=!0),te.hpt&&(ne[te.r]=_t,_t.hpt=te.hpt,_t.hpx=pu(te.hpt))}break;case 38:case 39:case 40:case 41:a["!margins"]||Nl(a["!margins"]={}),a["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[ye]]=te;break;case 161:a["!margins"]||Nl(a["!margins"]={}),a["!margins"].header=te.header,a["!margins"].footer=te.footer;break;case 574:te.RTL&&(O.Views[0].RTL=!0);break;case 146:A=te;break;case 2198:W=te;break;case 140:D=te;break;case 442:d?N.CodeName=te||N.name:O.WBProps.CodeName=te||"ThisWorkbook";break}}else he||console.error("Missing Info for XLS Record 0x"+ye.toString(16)),e.l+=Te}return r.SheetNames=Jr(s).sort(function(At,xt){return Number(At)-Number(xt)}).map(function(At){return s[At].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(At,xt){r.Sheets[r.SheetNames[xt]]["!autofilter"]=At}),r.Strings=f,r.SSF=jr(Ft),R.enc&&(r.Encryption=R.enc),W&&(r.Themes=W),r.Metadata={},D!==void 0&&(r.Metadata.Country=D),U.names.length>0&&(O.Names=U.names),r.Workbook=O,r}var nd={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Ote(e,t,r){var n=kt.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var a=x4(n,pv,nd.DSI);for(var s in a)t[s]=a[s]}catch(d){if(r.WTF)throw d}var o=kt.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var c=x4(o,mv,nd.SI);for(var f in c)t[f]==null&&(t[f]=c[f])}catch(d){if(r.WTF)throw d}t.HeadingPairs&&t.TitlesOfParts&&(DA(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function Dte(e,t){var r=[],n=[],a=[],s=0,o,c=XE(pv,"n"),f=XE(mv,"n");if(e.Props)for(o=Jr(e.Props),s=0;s<o.length;++s)(Object.prototype.hasOwnProperty.call(c,o[s])?r:Object.prototype.hasOwnProperty.call(f,o[s])?n:a).push([o[s],e.Props[o[s]]]);if(e.Custprops)for(o=Jr(e.Custprops),s=0;s<o.length;++s)Object.prototype.hasOwnProperty.call(e.Props||{},o[s])||(Object.prototype.hasOwnProperty.call(c,o[s])?r:Object.prototype.hasOwnProperty.call(f,o[s])?n:a).push([o[s],e.Custprops[o[s]]]);var d=[];for(s=0;s<a.length;++s)IA.indexOf(a[s][0])>-1||OA.indexOf(a[s][0])>-1||a[s][1]!=null&&d.push(a[s]);n.length&&kt.utils.cfb_add(t,"/SummaryInformation",v4(n,nd.SI,f,mv)),(r.length||d.length)&&kt.utils.cfb_add(t,"/DocumentSummaryInformation",v4(r,nd.DSI,c,pv,d.length?d:null,nd.UDI))}function FR(e,t){t||(t={}),p2(t),Py(),t.codepage&&Ny(t.codepage);var r,n;if(e.FullPaths){if(kt.find(e,"/encryption"))throw new Error("File is password-protected");r=kt.find(e,"!CompObj"),n=kt.find(e,"/Workbook")||kt.find(e,"/Book")}else{switch(t.type){case"base64":e=Za(ni(e));break;case"binary":e=Za(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}In(e,0),n={content:e}}var a,s;if(r&&_te(r),t.bookProps&&!t.bookSheets)a={};else{var o=Gt?"buffer":"array";if(n&&n.content)a=Rte(n.content,t);else if((s=kt.find(e,"PerfectOffice_MAIN"))&&s.content)a=Fl.to_workbook(s.content,(t.type=o,t));else if((s=kt.find(e,"NativeContent_MAIN"))&&s.content)a=Fl.to_workbook(s.content,(t.type=o,t));else throw(s=kt.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&kt.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=WK(e))}var c={};return e.FullPaths&&Ote(e,c,t),a.Props=a.Custprops=c,t.bookFiles&&(a.cfb=e),a}function Mte(e,t){var r=t||{},n=kt.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return kt.utils.cfb_add(n,a,NR(e,r)),r.biff==8&&(e.Props||e.Custprops)&&Dte(e,n),r.biff==8&&e.vbaraw&&VK(n,kt.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Nd={0:{f:rJ},1:{f:uJ},2:{f:RJ},3:{f:vJ},4:{f:pJ},5:{f:_J},6:{f:NJ},7:{f:wJ},8:{f:UJ},9:{f:zJ},10:{f:IJ},11:{f:BJ},12:{f:dJ},13:{f:DJ},14:{f:bJ},15:{f:gJ},16:{f:ER},17:{f:jJ},18:{f:CJ},19:{f:qy},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:jee},40:{},42:{},43:{f:Nq},44:{f:Mq},45:{f:Lq},46:{f:Bq},47:{f:Iq},48:{},49:{f:iG},50:{},51:{f:yK},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:qA},62:{f:FJ},63:{f:AK},64:{f:nee},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:aa,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:JJ},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:lJ},148:{f:iJ,p:16},151:{f:XJ},152:{},153:{f:Fee},154:{},155:{},156:{f:Dee},157:{},158:{},159:{T:1,f:qY},160:{T:-1},161:{T:1,f:Ql},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:$J},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:xK},336:{T:-1},337:{f:wK,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:hv},357:{},358:{},359:{},360:{T:1},361:{},362:{f:YA},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:YJ},427:{f:qJ},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:QJ},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:oJ},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:VJ},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:hv},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:BK},633:{T:1},634:{T:-1},635:{T:1,f:LK},636:{T:-1},637:{f:cG},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:bee},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:aee},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:""}},Sv={6:{f:px},10:{f:_o},12:{f:pn},13:{f:pn},14:{f:rn},15:{f:rn},16:{f:Zn},17:{f:rn},18:{f:rn},19:{f:pn},20:{f:C4},21:{f:C4},23:{f:YA},24:{f:_4},25:{f:rn},26:{},27:{},28:{f:aY},29:{},34:{f:rn},35:{f:E4},38:{f:Zn},39:{f:Zn},40:{f:Zn},41:{f:Zn},42:{f:rn},43:{f:rn},47:{f:gq},49:{f:DX},51:{f:pn},60:{},61:{f:_X},64:{f:rn},65:{f:OX},66:{f:pn},77:{},80:{},81:{},82:{},85:{f:pn},89:{},90:{},91:{},92:{f:mX},93:{f:oY},94:{},95:{f:rn},96:{},97:{},99:{f:rn},125:{f:qA},128:{f:GX},129:{f:xX},130:{f:pn},131:{f:rn},132:{f:rn},133:{f:vX},134:{},140:{f:mY},141:{f:pn},144:{},146:{f:vY},151:{},152:{},153:{},154:{},155:{},156:{f:pn},157:{},158:{},160:{f:EY},161:{f:SY},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:$X},190:{f:HX},193:{f:_o},197:{},198:{},199:{},200:{},201:{},202:{f:rn},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:pn},220:{},221:{f:rn},222:{},224:{f:VX},225:{f:pX},226:{f:_o},227:{},229:{f:iY},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:bX},253:{f:FX},255:{f:wX},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:BA},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:rn},353:{f:_o},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:QX},431:{f:rn},432:{},433:{},434:{},437:{},438:{f:uY},439:{f:rn},440:{f:fY},441:{},442:{f:i0},443:{},444:{f:pn},445:{},446:{},448:{f:_o},449:{f:EX,r:2},450:{f:_o},512:{f:S4},513:{f:CY},515:{f:qX},516:{f:PX},517:{f:T4},519:{f:_Y},520:{f:TX},523:{},545:{f:k4},549:{f:b4},566:{},574:{f:AX},638:{f:UX},659:{},1048:{},1054:{f:LX},1084:{},1212:{f:tY},2048:{f:hY},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:zh},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:_o},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:yY,r:12},2173:{f:mK,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:rn,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:eY,r:12},2197:{},2198:{f:cK,r:12},2199:{},2200:{},2201:{},2202:{f:rY,r:12},2203:{f:_o},2204:{},2205:{},2206:{},2207:{},2211:{f:CX},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:pn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:wY},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:xY},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:S4},1:{},2:{f:DY},3:{f:RY},4:{f:AY},5:{f:T4},7:{f:FY},8:{},9:{f:zh},11:{},22:{f:pn},30:{f:BX},31:{},32:{},33:{f:k4},36:{},37:{f:b4},50:{f:NY},62:{},52:{},67:{},68:{f:pn},69:{},86:{},126:{},127:{f:kY},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:PY},223:{},234:{},354:{},421:{},518:{f:px},521:{f:zh},536:{f:_4},547:{f:E4},561:{},579:{},1030:{f:px},1033:{f:zh},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Ze(e,t,r,n){var a=t;if(!isNaN(a)){var s=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,a),o.write_shift(2,s),s>0&&Gy(r)&&e.push(r)}}function Fte(e,t,r,n){var a=(r||[]).length||0;if(a<=8224)return Ze(e,t,r,a);var s=t;if(!isNaN(s)){for(var o=r.parts||[],c=0,f=0,d=0;d+(o[c]||8224)<=8224;)d+=o[c]||8224,c++;var h=e.next(4);for(h.write_shift(2,s),h.write_shift(2,d),e.push(r.slice(f,f+d)),f+=d;f<a;){for(h=e.next(4),h.write_shift(2,60),d=0;d+(o[c]||8224)<=8224;)d+=o[c]||8224,c++;h.write_shift(2,d),e.push(r.slice(f,f+d)),f+=d}}}function c0(e,t,r){return e||(e=Ne(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function Nte(e,t,r,n){var a=Ne(9);return c0(a,e,t),zA(r,n||"b",a),a}function Pte(e,t,r){var n=Ne(8+2*r.length);return c0(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 jte(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var a=t.t=="d"?Sn(Pr(t.v)):t.v;a==(a|0)&&a>=0&&a<65536?Ze(e,2,MY(r,n,a)):Ze(e,3,OY(r,n,a));return;case"b":case"e":Ze(e,5,Nte(r,n,t.v,t.t));return;case"s":case"str":Ze(e,4,Pte(r,n,(t.v||"").slice(0,255)));return}Ze(e,1,c0(null,r,n))}function Lte(e,t,r,n){var a=Array.isArray(t),s=or(t["!ref"]||"A1"),o,c="",f=[];if(s.e.c>255||s.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),o=zt(s)}for(var d=s.s.r;d<=s.e.r;++d){c=on(d);for(var h=s.s.c;h<=s.e.c;++h){d===s.s.r&&(f[h]=$r(h)),o=f[h]+c;var g=a?(t[d]||[])[h]:t[o];g&&jte(e,g,d,h)}}}function Ite(e,t){for(var r=t||{},n=Fa(),a=0,s=0;s<e.SheetNames.length;++s)e.SheetNames[s]==r.sheet&&(a=s);if(a==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return Ze(n,r.biff==4?1033:r.biff==3?521:9,r2(e,16,r)),Lte(n,e.Sheets[e.SheetNames[a]],a,r),Ze(n,10),n.end()}function Bte(e,t,r){Ze(e,49,MX({sz:12,name:"Arial"},r))}function zte(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&Ze(e,1054,IX(a,t[a],r))})}function Ute(e,t){var r=Ne(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),Ze(e,2151,r),r=Ne(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),VA(or(t["!ref"]||"A1"),r),r.write_shift(4,4),Ze(e,2152,r)}function $te(e,t){for(var r=0;r<16;++r)Ze(e,224,w4({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){Ze(e,224,w4(n,0,t))})}function Hte(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];Ze(e,440,dY(n)),n[1].Tooltip&&Ze(e,2048,pY(n))}delete t["!links"]}function Wte(e,t){if(t){var r=0;t.forEach(function(n,a){++r<=256&&n&&Ze(e,125,bY(_m(a,n),a))})}}function Vte(e,t,r,n,a){var s=16+tl(a.cellXfs,t,a);if(t.v==null&&!t.bf){Ze(e,513,Wl(r,n,s));return}if(t.bf)Ze(e,6,xZ(t,r,n,a,s));else switch(t.t){case"d":case"n":var o=t.t=="d"?Sn(Pr(t.v)):t.v;Ze(e,515,KX(r,n,o,s));break;case"b":case"e":Ze(e,517,YX(r,n,t.v,s,a,t.t));break;case"s":case"str":if(a.bookSST){var c=u2(a.Strings,t.v,a.revStrings);Ze(e,253,NX(r,n,c,s))}else Ze(e,516,jX(r,n,(t.v||"").slice(0,255),s,a));break;default:Ze(e,513,Wl(r,n,s))}}function Gte(e,t,r){var n=Fa(),a=r.SheetNames[e],s=r.Sheets[a]||{},o=(r||{}).Workbook||{},c=(o.Sheets||[])[e]||{},f=Array.isArray(s),d=t.biff==8,h,g="",x=[],y=or(s["!ref"]||"A1"),b=d?65536:16384;if(y.e.c>255||y.e.r>=b){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");y.e.c=Math.min(y.e.c,255),y.e.r=Math.min(y.e.c,b-1)}Ze(n,2057,r2(r,16,t)),Ze(n,13,Ti(1)),Ze(n,12,Ti(100)),Ze(n,15,fa(!0)),Ze(n,17,fa(!1)),Ze(n,16,$l(.001)),Ze(n,95,fa(!0)),Ze(n,42,fa(!1)),Ze(n,43,fa(!1)),Ze(n,130,Ti(1)),Ze(n,128,XX()),Ze(n,131,fa(!1)),Ze(n,132,fa(!1)),d&&Wte(n,s["!cols"]),Ze(n,512,zX(y,t)),d&&(s["!links"]=[]);for(var v=y.s.r;v<=y.e.r;++v){g=on(v);for(var w=y.s.c;w<=y.e.c;++w){v===y.s.r&&(x[w]=$r(w)),h=x[w]+g;var C=f?(s[v]||[])[w]:s[h];C&&(Vte(n,C,v,w,t),d&&C.l&&s["!links"].push([h,C.l]))}}var k=c.CodeName||c.name||a;return d&&Ze(n,574,RX((o.Views||[])[0])),d&&(s["!merges"]||[]).length&&Ze(n,229,sY(s["!merges"])),d&&Hte(n,s),Ze(n,442,UA(k)),d&&Ute(n,s),Ze(n,10),n.end()}function Xte(e,t,r){var n=Fa(),a=(e||{}).Workbook||{},s=a.Sheets||[],o=a.WBProps||{},c=r.biff==8,f=r.biff==5;if(Ze(n,2057,r2(e,5,r)),r.bookType=="xla"&&Ze(n,135),Ze(n,225,c?Ti(1200):null),Ze(n,193,YG(2)),f&&Ze(n,191),f&&Ze(n,192),Ze(n,226),Ze(n,92,gX("SheetJS",r)),Ze(n,66,Ti(c?1200:1252)),c&&Ze(n,353,Ti(0)),c&&Ze(n,448),Ze(n,317,TY(e.SheetNames.length)),c&&e.vbaraw&&Ze(n,211),c&&e.vbaraw){var d=o.CodeName||"ThisWorkbook";Ze(n,442,UA(d))}Ze(n,156,Ti(17)),Ze(n,25,fa(!1)),Ze(n,18,fa(!1)),Ze(n,19,Ti(0)),c&&Ze(n,431,fa(!1)),c&&Ze(n,444,Ti(0)),Ze(n,61,kX()),Ze(n,64,fa(!1)),Ze(n,141,Ti(0)),Ze(n,34,fa(Eee(e)=="true")),Ze(n,14,fa(!0)),c&&Ze(n,439,fa(!1)),Ze(n,218,Ti(0)),Bte(n,e,r),zte(n,e.SSF,r),$te(n,r),c&&Ze(n,352,fa(!1));var h=n.end(),g=Fa();c&&Ze(g,140,gY()),c&&r.Strings&&Fte(g,252,SX(r.Strings)),Ze(g,10);var x=g.end(),y=Fa(),b=0,v=0;for(v=0;v<e.SheetNames.length;++v)b+=(c?12:11)+(c?2:1)*e.SheetNames[v].length;var w=h.length+b+x.length;for(v=0;v<e.SheetNames.length;++v){var C=s[v]||{};Ze(y,133,yX({pos:w,hs:C.Hidden||0,dt:0,name:e.SheetNames[v]},r)),w+=t[v].length}var k=y.end();if(b!=k.length)throw new Error("BS8 "+b+" != "+k.length);var E=[];return h.length&&E.push(h),k.length&&E.push(k),x.length&&E.push(x),Rn(E)}function Yte(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=jr(Ft)),e&&e.SSF&&(Tu(),ym(e.SSF),r.revssf=Sm(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,m2(r),r.cellXfs=[],tl(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var a=0;a<e.SheetNames.length;++a)n[n.length]=Gte(a,r,e);return n.unshift(Xte(e,n,r)),Rn(n)}function NR(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var a=Pa(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var s=t||{};switch(s.biff||2){case 8:case 5:return Yte(e,t);case 4:case 3:case 2:return Ite(e,t)}throw new Error("invalid type "+s.bookType+" for BIFF")}function L4(e,t){var r=t||{},n=r.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var a=e.match(/<table/i);if(!a)throw new Error("Invalid HTML: could not find <table>");var s=e.match(/<\/table/i),o=a.index,c=s&&s.index||e.length,f=MV(e.slice(o,c),/(:?<tr[^>]*>)/i,"<tr>"),d=-1,h=0,g=0,x=0,y={s:{r:1e7,c:1e7},e:{r:0,c:0}},b=[];for(o=0;o<f.length;++o){var v=f[o].trim(),w=v.slice(0,3).toLowerCase();if(w=="<tr"){if(++d,r.sheetRows&&r.sheetRows<=d){--d;break}h=0;continue}if(!(w!="<td"&&w!="<th")){var C=v.split(/<\/t[dh]>/i);for(c=0;c<C.length;++c){var k=C[c].trim();if(k.match(/<t[dh]/i)){for(var E=k,D=0;E.charAt(0)=="<"&&(D=E.indexOf(">"))>-1;)E=E.slice(D+1);for(var M=0;M<b.length;++M){var A=b[M];A.s.c==h&&A.s.r<d&&d<=A.e.r&&(h=A.e.c+1,M=-1)}var O=Lt(k.slice(0,k.indexOf(">")));x=O.colspan?+O.colspan:1,((g=+O.rowspan)>1||x>1)&&b.push({s:{r:d,c:h},e:{r:d+(g||1)-1,c:h+x-1}});var N=O.t||O["data-t"]||"";if(!E.length){h+=x;continue}if(E=aA(E),y.s.r>d&&(y.s.r=d),y.e.r<d&&(y.e.r=d),y.s.c>h&&(y.s.c=h),y.e.c<h&&(y.e.c=h),!E.length){h+=x;continue}var F={t:"s",v:E};r.raw||!E.trim().length||N=="s"||(E==="TRUE"?F={t:"b",v:!0}:E==="FALSE"?F={t:"b",v:!1}:isNaN(Yi(E))?isNaN(du(E).getDate())||(F={t:"d",v:Pr(E)},r.cellDates||(F={t:"n",v:Sn(F.v)}),F.z=r.dateNF||Ft[14]):F={t:"n",v:Yi(E)}),r.dense?(n[d]||(n[d]=[]),n[d][h]=F):n[Pt({r:d,c:h})]=F,h+=x}}}}return n["!ref"]=zt(y),b.length&&(n["!merges"]=b),n}function qte(e,t,r,n){for(var a=e["!merges"]||[],s=[],o=t.s.c;o<=t.e.c;++o){for(var c=0,f=0,d=0;d<a.length;++d)if(!(a[d].s.r>r||a[d].s.c>o)&&!(a[d].e.r<r||a[d].e.c<o)){if(a[d].s.r<r||a[d].s.c<o){c=-1;break}c=a[d].e.r-a[d].s.r+1,f=a[d].e.c-a[d].s.c+1;break}if(!(c<0)){var h=Pt({r,c:o}),g=n.dense?(e[r]||[])[o]:e[h],x=g&&g.v!=null&&(g.h||Hy(g.w||(Ks(g),g.w)||""))||"",y={};c>1&&(y.rowspan=c),f>1&&(y.colspan=f),n.editable?x='<span contenteditable="true">'+x+"</span>":g&&(y["data-t"]=g&&g.t||"z",g.v!=null&&(y["data-v"]=g.v),g.z!=null&&(y["data-z"]=g.z),g.l&&(g.l.Target||"#").charAt(0)!="#"&&(x='<a href="'+g.l.Target+'">'+x+"</a>")),y.id=(n.id||"sjs")+"-"+h,s.push(Qe("td",x,y))}}var b="<tr>";return b+s.join("")+"</tr>"}var Kte='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Qte="</body></html>";function Zte(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 el(L4(r[0],t),t);var n=v2();return r.forEach(function(a,s){y2(n,L4(a,t),"Sheet"+(s+1))}),n}function Jte(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function PR(e,t){var r=t||{},n=r.header!=null?r.header:Kte,a=r.footer!=null?r.footer:Qte,s=[n],o=Pa(e["!ref"]);r.dense=Array.isArray(e),s.push(Jte(e,o,r));for(var c=o.s.r;c<=o.e.r;++c)s.push(qte(e,o,c,r));return s.push("</table>"+a),s.join("")}function jR(e,t,r){var n=r||{},a=0,s=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var o=typeof n.origin=="string"?Hr(n.origin):n.origin;a=o.r,s=o.c}var c=t.getElementsByTagName("tr"),f=Math.min(n.sheetRows||1e7,c.length),d={s:{r:0,c:0},e:{r:a,c:s}};if(e["!ref"]){var h=Pa(e["!ref"]);d.s.r=Math.min(d.s.r,h.s.r),d.s.c=Math.min(d.s.c,h.s.c),d.e.r=Math.max(d.e.r,h.e.r),d.e.c=Math.max(d.e.c,h.e.c),a==-1&&(d.e.r=a=h.e.r+1)}var g=[],x=0,y=e["!rows"]||(e["!rows"]=[]),b=0,v=0,w=0,C=0,k=0,E=0;for(e["!cols"]||(e["!cols"]=[]);b<c.length&&v<f;++b){var D=c[b];if(I4(D)){if(n.display)continue;y[v]={hidden:!0}}var M=D.children;for(w=C=0;w<M.length;++w){var A=M[w];if(!(n.display&&I4(A))){var O=A.hasAttribute("data-v")?A.getAttribute("data-v"):A.hasAttribute("v")?A.getAttribute("v"):aA(A.innerHTML),N=A.getAttribute("data-z")||A.getAttribute("z");for(x=0;x<g.length;++x){var F=g[x];F.s.c==C+s&&F.s.r<v+a&&v+a<=F.e.r&&(C=F.e.c+1-s,x=-1)}E=+A.getAttribute("colspan")||1,((k=+A.getAttribute("rowspan")||1)>1||E>1)&&g.push({s:{r:v+a,c:C+s},e:{r:v+a+(k||1)-1,c:C+s+(E||1)-1}});var P={t:"s",v:O},j=A.getAttribute("data-t")||A.getAttribute("t")||"";O!=null&&(O.length==0?P.t=j||"z":n.raw||O.trim().length==0||j=="s"||(O==="TRUE"?P={t:"b",v:!0}:O==="FALSE"?P={t:"b",v:!1}:isNaN(Yi(O))?isNaN(du(O).getDate())||(P={t:"d",v:Pr(O)},n.cellDates||(P={t:"n",v:Sn(P.v)}),P.z=n.dateNF||Ft[14]):P={t:"n",v:Yi(O)})),P.z===void 0&&N!=null&&(P.z=N);var R="",W=A.getElementsByTagName("A");if(W&&W.length)for(var Y=0;Y<W.length&&!(W[Y].hasAttribute("href")&&(R=W[Y].getAttribute("href"),R.charAt(0)!="#"));++Y);R&&R.charAt(0)!="#"&&(P.l={Target:R}),n.dense?(e[v+a]||(e[v+a]=[]),e[v+a][C+s]=P):e[Pt({c:C+s,r:v+a})]=P,d.e.c<C+s&&(d.e.c=C+s),C+=E}}++v}return g.length&&(e["!merges"]=(e["!merges"]||[]).concat(g)),d.e.r=Math.max(d.e.r,v-1+a),e["!ref"]=zt(d),v>=f&&(e["!fullref"]=zt((d.e.r=c.length-b+v-1+a,d))),e}function LR(e,t){var r=t||{},n=r.dense?[]:{};return jR(n,e,t)}function ere(e,t){return el(LR(e,t),t)}function I4(e){var t="",r=tre(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function tre(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function rre(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,a){return Array(parseInt(a,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"	").replace(/<text:line-break\/>/g,`
`),r=sr(t.replace(/<[^>]*>/g,""));return[r]}var B4={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 IR(e,t){var r=t||{},n=Wy(e),a=[],s,o,c={name:""},f="",d=0,h,g,x={},y=[],b=r.dense?[]:{},v,w,C={value:""},k="",E=0,D=[],M=-1,A=-1,O={s:{r:1e6,c:1e7},e:{r:0,c:0}},N=0,F={},P=[],j={},R=0,W=0,Y=[],Z=1,B=1,ne=[],ce={Names:[]},U={},H=["",""],ie=[],z={},K="",Q=0,ee=!1,ae=!1,xe=0;for(Ad.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");v=Ad.exec(n);)switch(v[3]=v[3].replace(/_.*$/,"")){case"table":case"工作表":v[1]==="/"?(O.e.c>=O.s.c&&O.e.r>=O.s.r?b["!ref"]=zt(O):b["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=O.e.r&&(b["!fullref"]=b["!ref"],O.e.r=r.sheetRows-1,b["!ref"]=zt(O)),P.length&&(b["!merges"]=P),Y.length&&(b["!rows"]=Y),h.name=h.名称||h.name,typeof JSON<"u"&&JSON.stringify(h),y.push(h.name),x[h.name]=b,ae=!1):v[0].charAt(v[0].length-2)!=="/"&&(h=Lt(v[0],!1),M=A=-1,O.s.r=O.s.c=1e7,O.e.r=O.e.c=0,b=r.dense?[]:{},P=[],Y=[],ae=!0);break;case"table-row-group":v[1]==="/"?--N:++N;break;case"table-row":case"行":if(v[1]==="/"){M+=Z,Z=1;break}if(g=Lt(v[0],!1),g.行号?M=g.行号-1:M==-1&&(M=0),Z=+g["number-rows-repeated"]||1,Z<10)for(xe=0;xe<Z;++xe)N>0&&(Y[M+xe]={level:N});A=-1;break;case"covered-table-cell":v[1]!=="/"&&++A,r.sheetStubs&&(r.dense?(b[M]||(b[M]=[]),b[M][A]={t:"z"}):b[Pt({r:M,c:A})]={t:"z"}),k="",D=[];break;case"table-cell":case"数据":if(v[0].charAt(v[0].length-2)==="/")++A,C=Lt(v[0],!1),B=parseInt(C["number-columns-repeated"]||"1",10),w={t:"z",v:null},C.formula&&r.cellFormula!=!1&&(w.f=N4(sr(C.formula))),(C.数据类型||C["value-type"])=="string"&&(w.t="s",w.v=sr(C["string-value"]||""),r.dense?(b[M]||(b[M]=[]),b[M][A]=w):b[Pt({r:M,c:A})]=w),A+=B-1;else if(v[1]!=="/"){++A,k="",E=0,D=[],B=1;var ye=Z?M+Z-1:M;if(A>O.e.c&&(O.e.c=A),A<O.s.c&&(O.s.c=A),M<O.s.r&&(O.s.r=M),ye>O.e.r&&(O.e.r=ye),C=Lt(v[0],!1),ie=[],z={},w={t:C.数据类型||C["value-type"],v:null},r.cellFormula)if(C.formula&&(C.formula=sr(C.formula)),C["number-matrix-columns-spanned"]&&C["number-matrix-rows-spanned"]&&(R=parseInt(C["number-matrix-rows-spanned"],10)||0,W=parseInt(C["number-matrix-columns-spanned"],10)||0,j={s:{r:M,c:A},e:{r:M+R-1,c:A+W-1}},w.F=zt(j),ne.push([j,w.F])),C.formula)w.f=N4(C.formula);else for(xe=0;xe<ne.length;++xe)M>=ne[xe][0].s.r&&M<=ne[xe][0].e.r&&A>=ne[xe][0].s.c&&A<=ne[xe][0].e.c&&(w.F=ne[xe][1]);switch((C["number-columns-spanned"]||C["number-rows-spanned"])&&(R=parseInt(C["number-rows-spanned"],10)||0,W=parseInt(C["number-columns-spanned"],10)||0,j={s:{r:M,c:A},e:{r:M+R-1,c:A+W-1}},P.push(j)),C["number-columns-repeated"]&&(B=parseInt(C["number-columns-repeated"],10)),w.t){case"boolean":w.t="b",w.v=Nr(C["boolean-value"]);break;case"float":w.t="n",w.v=parseFloat(C.value);break;case"percentage":w.t="n",w.v=parseFloat(C.value);break;case"currency":w.t="n",w.v=parseFloat(C.value);break;case"date":w.t="d",w.v=Pr(C["date-value"]),r.cellDates||(w.t="n",w.v=Sn(w.v)),w.z="m/d/yy";break;case"time":w.t="n",w.v=RV(C["time-value"])/86400,r.cellDates&&(w.t="d",w.v=wm(w.v)),w.z="HH:MM:SS";break;case"number":w.t="n",w.v=parseFloat(C.数据数值);break;default:if(w.t==="string"||w.t==="text"||!w.t)w.t="s",C["string-value"]!=null&&(k=sr(C["string-value"]),D=[]);else throw new Error("Unsupported value type "+w.t)}}else{if(ee=!1,w.t==="s"&&(w.v=k||"",D.length&&(w.R=D),ee=E==0),U.Target&&(w.l=U),ie.length>0&&(w.c=ie,ie=[]),k&&r.cellText!==!1&&(w.w=k),ee&&(w.t="z",delete w.v),(!ee||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=M))for(var Te=0;Te<Z;++Te){if(B=parseInt(C["number-columns-repeated"]||"1",10),r.dense)for(b[M+Te]||(b[M+Te]=[]),b[M+Te][A]=Te==0?w:jr(w);--B>0;)b[M+Te][A+B]=jr(w);else for(b[Pt({r:M+Te,c:A})]=w;--B>0;)b[Pt({r:M+Te,c:A+B})]=jr(w);O.e.c<=A&&(O.e.c=A)}B=parseInt(C["number-columns-repeated"]||"1",10),A+=B-1,B=0,w={},k="",D=[]}U={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(v[1]==="/"){if((s=a.pop())[0]!==v[3])throw"Bad state: "+s}else v[0].charAt(v[0].length-2)!=="/"&&a.push([v[3],!0]);break;case"annotation":if(v[1]==="/"){if((s=a.pop())[0]!==v[3])throw"Bad state: "+s;z.t=k,D.length&&(z.R=D),z.a=K,ie.push(z)}else v[0].charAt(v[0].length-2)!=="/"&&a.push([v[3],!1]);K="",Q=0,k="",E=0,D=[];break;case"creator":v[1]==="/"?K=n.slice(Q,v.index):Q=v.index+v[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(v[1]==="/"){if((s=a.pop())[0]!==v[3])throw"Bad state: "+s}else v[0].charAt(v[0].length-2)!=="/"&&a.push([v[3],!1]);k="",E=0,D=[];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(v[1]==="/"){if(F[c.name]=f,(s=a.pop())[0]!==v[3])throw"Bad state: "+s}else v[0].charAt(v[0].length-2)!=="/"&&(f="",c=Lt(v[0],!1),a.push([v[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(a[a.length-1][0]){case"time-style":case"date-style":o=Lt(v[0],!1),f+=B4[v[3]][o.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(a[a.length-1][0]){case"time-style":case"date-style":o=Lt(v[0],!1),f+=B4[v[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(v[0].slice(-2)==="/>")break;if(v[1]==="/")switch(a[a.length-1][0]){case"number-style":case"date-style":case"time-style":f+=n.slice(d,v.index);break}else d=v.index+v[0].length;break;case"named-range":o=Lt(v[0],!1),H=mx(o["cell-range-address"]);var he={Name:o.name,Ref:H[0]+"!"+H[1]};ae&&(he.Sheet=y.length),ce.Names.push(he);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(a[a.length-1][0])>-1)break;if(v[1]==="/"&&(!C||!C["string-value"])){var Ve=rre(n.slice(E,v.index));k=(k.length>0?k+`
`:"")+Ve[0]}else Lt(v[0],!1),E=v.index+v[0].length;break;case"s":break;case"database-range":if(v[1]==="/")break;try{H=mx(Lt(v[0])["target-range-address"]),x[H[0]]["!autofilter"]={ref:H[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(v[1]!=="/"){if(U=Lt(v[0],!1),!U.href)break;U.Target=sr(U.href),delete U.href,U.Target.charAt(0)=="#"&&U.Target.indexOf(".")>-1?(H=mx(U.Target.slice(1)),U.Target="#"+H[0]+"!"+H[1]):U.Target.match(/^\.\.[\\\/]/)&&(U.Target=U.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(v[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(v)}}var te={Sheets:x,SheetNames:y,Workbook:ce};return r.bookSheets&&delete te.Sheets,te}function z4(e,t){t=t||{},Si(e,"META-INF/manifest.xml")&&RG(hn(e,"META-INF/manifest.xml"),t);var r=Ja(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=IR(Ar(r),t);return Si(e,"meta.xml")&&(n.Props=AA(hn(e,"meta.xml"))),n}function U4(e,t){return IR(e,t)}var nre=(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 "+kd({"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 cn+t}})(),$4=(function(){var e=function(s){return Tr(s).replace(/  +/g,function(o){return'<text:s text:c="'+o.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(s,o,c){var f=[];f.push('      <table:table table:name="'+Tr(o.SheetNames[c])+`" table:style-name="ta1">
`);var d=0,h=0,g=Pa(s["!ref"]||"A1"),x=s["!merges"]||[],y=0,b=Array.isArray(s);if(s["!cols"])for(h=0;h<=g.e.c;++h)f.push("        <table:table-column"+(s["!cols"][h]?' table:style-name="co'+s["!cols"][h].ods+'"':"")+`></table:table-column>
`);var v="",w=s["!rows"]||[];for(d=0;d<g.s.r;++d)v=w[d]?' table:style-name="ro'+w[d].ods+'"':"",f.push("        <table:table-row"+v+`></table:table-row>
`);for(;d<=g.e.r;++d){for(v=w[d]?' table:style-name="ro'+w[d].ods+'"':"",f.push("        <table:table-row"+v+`>
`),h=0;h<g.s.c;++h)f.push(t);for(;h<=g.e.c;++h){var C=!1,k={},E="";for(y=0;y!=x.length;++y)if(!(x[y].s.c>h)&&!(x[y].s.r>d)&&!(x[y].e.c<h)&&!(x[y].e.r<d)){(x[y].s.c!=h||x[y].s.r!=d)&&(C=!0),k["table:number-columns-spanned"]=x[y].e.c-x[y].s.c+1,k["table:number-rows-spanned"]=x[y].e.r-x[y].s.r+1;break}if(C){f.push(r);continue}var D=Pt({r:d,c:h}),M=b?(s[d]||[])[h]:s[D];if(M&&M.f&&(k["table:formula"]=Tr(TZ(M.f)),M.F&&M.F.slice(0,D.length)==D)){var A=Pa(M.F);k["table:number-matrix-columns-spanned"]=A.e.c-A.s.c+1,k["table:number-matrix-rows-spanned"]=A.e.r-A.s.r+1}if(!M){f.push(t);continue}switch(M.t){case"b":E=M.v?"TRUE":"FALSE",k["office:value-type"]="boolean",k["office:boolean-value"]=M.v?"true":"false";break;case"n":E=M.w||String(M.v||0),k["office:value-type"]="float",k["office:value"]=M.v||0;break;case"s":case"str":E=M.v==null?"":M.v,k["office:value-type"]="string";break;case"d":E=M.w||Pr(M.v).toISOString(),k["office:value-type"]="date",k["office:date-value"]=Pr(M.v).toISOString(),k["table:style-name"]="ce1";break;default:f.push(t);continue}var O=e(E);if(M.l&&M.l.Target){var N=M.l.Target;N=N.charAt(0)=="#"?"#"+CZ(N.slice(1)):N,N.charAt(0)!="#"&&!N.match(/^\w+:/)&&(N="../"+N),O=Qe("text:a",O,{"xlink:href":N.replace(/&/g,"&amp;")})}f.push("          "+Qe("table:table-cell",Qe("text:p",O,{}),k)+`
`)}f.push(`        </table:table-row>
`)}return f.push(`      </table:table>
`),f.join("")},a=function(s,o){s.push(` <office:automatic-styles>
`),s.push(`  <number:date-style style:name="N37" number:automatic-order="true">
`),s.push(`   <number:month number:style="long"/>
`),s.push(`   <number:text>/</number:text>
`),s.push(`   <number:day number:style="long"/>
`),s.push(`   <number:text>/</number:text>
`),s.push(`   <number:year/>
`),s.push(`  </number:date-style>
`);var c=0;o.SheetNames.map(function(d){return o.Sheets[d]}).forEach(function(d){if(d&&d["!cols"]){for(var h=0;h<d["!cols"].length;++h)if(d["!cols"][h]){var g=d["!cols"][h];if(g.width==null&&g.wpx==null&&g.wch==null)continue;$o(g),g.ods=c;var x=d["!cols"][h].wpx+"px";s.push('  <style:style style:name="co'+c+`" style:family="table-column">
`),s.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+x+`"/>
`),s.push(`  </style:style>
`),++c}}});var f=0;o.SheetNames.map(function(d){return o.Sheets[d]}).forEach(function(d){if(d&&d["!rows"]){for(var h=0;h<d["!rows"].length;++h)if(d["!rows"][h]){d["!rows"][h].ods=f;var g=d["!rows"][h].hpx+"px";s.push('  <style:style style:name="ro'+f+`" style:family="table-row">
`),s.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+g+`"/>
`),s.push(`  </style:style>
`),++f}}}),s.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),s.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),s.push(`  </style:style>
`),s.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),s.push(` </office:automatic-styles>
`)};return function(o,c){var f=[cn],d=kd({"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=kd({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});c.bookType=="fods"?(f.push("<office:document"+d+h+`>
`),f.push(kA().replace(/office:document-meta/g,"office:meta"))):f.push("<office:document-content"+d+`>
`),a(f,o),f.push(`  <office:body>
`),f.push(`    <office:spreadsheet>
`);for(var g=0;g!=o.SheetNames.length;++g)f.push(n(o.Sheets[o.SheetNames[g]],o,g));return f.push(`    </office:spreadsheet>
`),f.push(`  </office:body>
`),c.bookType=="fods"?f.push("</office:document>"):f.push("</office:document-content>"),f.join("")}})();function BR(e,t){if(t.bookType=="fods")return $4(e,t);var r=zy(),n="",a=[],s=[];return n="mimetype",Wt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Wt(r,n,$4(e,t)),a.push([n,"text/xml"]),s.push([n,"ContentFile"]),n="styles.xml",Wt(r,n,nre(e,t)),a.push([n,"text/xml"]),s.push([n,"StylesFile"]),n="meta.xml",Wt(r,n,cn+kA()),a.push([n,"text/xml"]),s.push([n,"MetadataFile"]),n="manifest.rdf",Wt(r,n,MG(s)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Wt(r,n,OG(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Vl(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function wv(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Ar(Jo(e))}function are(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Za(hs(e))}function ire(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 Wo(e){var t=e.reduce(function(a,s){return a+s.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function H4(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function sre(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,a=t+13;a>=t;--a)n=n*256+e[a];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function ore(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var s=0;a>=1;++s,a/=256)e[t+s]=a&255;e[t+15]|=r>=0?0:128}function Pd(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 br(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 Zr(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 cr(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=Pd(e,r),s=a&7;a=Math.floor(a/8);var o=0,c;if(a==0)break;switch(s){case 0:{for(var f=r[0];e[r[0]++]>=128;);c=e.slice(f,r[0])}break;case 5:o=4,c=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,c=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=Pd(e,r),c=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(a," at offset ").concat(n))}var d={data:c,type:s};t[a]==null?t[a]=[d]:t[a].push(d)}return t}function jn(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(br(n*8+a.type)),a.type==2&&t.push(br(a.data.length)),t.push(a.data))})}),Wo(t)}function h2(e,t){return e?.map(function(r){return t(r.data)})||[]}function yi(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=Pd(e,n),s=cr(e.slice(n[0],n[0]+a));n[0]+=a;var o={id:Zr(s[1][0].data),messages:[]};s[2].forEach(function(c){var f=cr(c.data),d=Zr(f[3][0].data);o.messages.push({meta:f,data:e.slice(n[0],n[0]+d)}),n[0]+=d}),(t=s[3])!=null&&t[0]&&(o.merge=Zr(s[3][0].data)>>>0>0),r.push(o)}return r}function zc(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:br(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:br(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(o){a.push(o.data),o.meta[3]=[{type:0,data:br(o.data.length)}],n[2].push({data:jn(o.meta),type:2})});var s=jn(n);t.push(br(s.length)),t.push(s),a.forEach(function(o){return t.push(o)})}),Wo(t)}function lre(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Pd(t,r),a=[];r[0]<t.length;){var s=t[r[0]]&3;if(s==0){var o=t[r[0]++]>>2;if(o<60)++o;else{var c=o-59;o=t[r[0]],c>1&&(o|=t[r[0]+1]<<8),c>2&&(o|=t[r[0]+2]<<16),c>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=c}a.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var f=0,d=0;if(s==1?(d=(t[r[0]]>>2&7)+4,f=(t[r[0]++]&224)<<3,f|=t[r[0]++]):(d=(t[r[0]++]>>2)+1,s==2?(f=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(f=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Wo(a)],f==0)throw new Error("Invalid offset 0");if(f>a[0].length)throw new Error("Invalid offset beyond length");if(d>=f)for(a.push(a[0].slice(-f)),d-=f;d>=a[a.length-1].length;)a.push(a[a.length-1]),d-=a[a.length-1].length;a.push(a[0].slice(-f,-f+d))}}var h=Wo(a);if(h.length!=n)throw new Error("Unexpected length: ".concat(h.length," != ").concat(n));return h}function bi(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(lre(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Wo(t)}function Uc(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),a=new Uint8Array(4);t.push(a);var s=br(n),o=s.length;t.push(s),n<=60?(o++,t.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=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)),o+=n,a[0]=0,a[1]=o&255,a[2]=o>>8&255,a[3]=o>>16&255,r+=n}return Wo(t)}function cre(e,t,r,n){var a=Vl(e),s=a.getUint32(4,!0),o=(n>1?12:8)+H4(s&(n>1?3470:398))*4,c=-1,f=-1,d=NaN,h=new Date(2001,0,1);s&512&&(c=a.getUint32(o,!0),o+=4),o+=H4(s&(n>1?12288:4096))*4,s&16&&(f=a.getUint32(o,!0),o+=4),s&32&&(d=a.getFloat64(o,!0),o+=8),s&64&&(h.setTime(h.getTime()+a.getFloat64(o,!0)*1e3),o+=8);var g;switch(e[2]){case 0:break;case 2:g={t:"n",v:d};break;case 3:g={t:"s",v:t[f]};break;case 5:g={t:"d",v:h};break;case 6:g={t:"b",v:d>0};break;case 7:g={t:"n",v:d/86400};break;case 8:g={t:"e",v:0};break;case 9:if(c>-1)g={t:"s",v:r[c]};else if(f>-1)g={t:"s",v:t[f]};else if(!isNaN(d))g={t:"n",v:d};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 g}function ure(e,t,r){var n=Vl(e),a=n.getUint32(8,!0),s=12,o=-1,c=-1,f=NaN,d=NaN,h=new Date(2001,0,1);a&1&&(f=sre(e,s),s+=16),a&2&&(d=n.getFloat64(s,!0),s+=8),a&4&&(h.setTime(h.getTime()+n.getFloat64(s,!0)*1e3),s+=8),a&8&&(c=n.getUint32(s,!0),s+=4),a&16&&(o=n.getUint32(s,!0),s+=4);var g;switch(e[1]){case 0:break;case 2:g={t:"n",v:f};break;case 3:g={t:"s",v:t[c]};break;case 5:g={t:"d",v:h};break;case 6:g={t:"b",v:d>0};break;case 7:g={t:"n",v:d/86400};break;case 8:g={t:"e",v:0};break;case 9:if(o>-1)g={t:"s",v:r[o]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)));break;case 10:g={t:"n",v:f};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)))}return g}function xx(e,t){var r=new Uint8Array(32),n=Vl(r),a=12,s=0;switch(r[0]=5,e.t){case"n":r[1]=2,ore(r,a,e.v),s|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),s|=2,a+=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(a,t.indexOf(e.v),!0),s|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,s,!0),r.slice(0,a)}function vx(e,t){var r=new Uint8Array(32),n=Vl(r),a=12,s=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),s|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),s|=32,a+=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(a,t.indexOf(e.v),!0),s|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,s,!0),r.slice(0,a)}function fre(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return cre(e,t,r,e[0]);case 5:return ure(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Xn(e){var t=cr(e);return Pd(t[1][0].data)}function W4(e,t){var r=cr(t.data),n=Zr(r[1][0].data),a=r[3],s=[];return(a||[]).forEach(function(o){var c=cr(o.data),f=Zr(c[1][0].data)>>>0;switch(n){case 1:s[f]=wv(c[3][0].data);break;case 8:{var d=e[Xn(c[9][0].data)][0],h=cr(d.data),g=e[Xn(h[1][0].data)][0],x=Zr(g.meta[1][0].data);if(x!=2001)throw new Error("2000 unexpected reference to ".concat(x));var y=cr(g.data);s[f]=y[3].map(function(b){return wv(b.data)}).join("")}break}}),s}function dre(e,t){var r,n,a,s,o,c,f,d,h,g,x,y,b,v,w=cr(e),C=Zr(w[1][0].data)>>>0,k=Zr(w[2][0].data)>>>0,E=((n=(r=w[8])==null?void 0:r[0])==null?void 0:n.data)&&Zr(w[8][0].data)>0||!1,D,M;if((s=(a=w[7])==null?void 0:a[0])!=null&&s.data&&t!=0)D=(c=(o=w[7])==null?void 0:o[0])==null?void 0:c.data,M=(d=(f=w[6])==null?void 0:f[0])==null?void 0:d.data;else if((g=(h=w[4])==null?void 0:h[0])!=null&&g.data&&t!=1)D=(y=(x=w[4])==null?void 0:x[0])==null?void 0:y.data,M=(v=(b=w[3])==null?void 0:b[0])==null?void 0:v.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var A=E?4:1,O=Vl(D),N=[],F=0;F<D.length/2;++F){var P=O.getUint16(F*2,!0);P<65535&&N.push([F,P])}if(N.length!=k)throw"Expected ".concat(k," cells, found ").concat(N.length);var j=[];for(F=0;F<N.length-1;++F)j[N[F][0]]=M.subarray(N[F][1]*A,N[F+1][1]*A);return N.length>=1&&(j[N[N.length-1][0]]=M.subarray(N[N.length-1][1]*A)),{R:C,cells:j}}function hre(e,t){var r,n=cr(t.data),a=(r=n?.[7])!=null&&r[0]?Zr(n[7][0].data)>>>0>0?1:0:-1,s=h2(n[5],function(o){return dre(o,a)});return{nrows:Zr(n[4][0].data)>>>0,data:s.reduce(function(o,c){return o[c.R]||(o[c.R]=[]),c.cells.forEach(function(f,d){if(o[c.R][d])throw new Error("Duplicate cell r=".concat(c.R," c=").concat(d));o[c.R][d]=f}),o},[])}}function pre(e,t,r){var n,a=cr(t.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(Zr(a[6][0].data)>>>0)-1,s.e.r<0)throw new Error("Invalid row varint ".concat(a[6][0].data));if(s.e.c=(Zr(a[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(a[7][0].data));r["!ref"]=zt(s);var o=cr(a[4][0].data),c=W4(e,e[Xn(o[4][0].data)][0]),f=(n=o[17])!=null&&n[0]?W4(e,e[Xn(o[17][0].data)][0]):[],d=cr(o[3][0].data),h=0;d[1].forEach(function(g){var x=cr(g.data),y=e[Xn(x[2][0].data)][0],b=Zr(y.meta[1][0].data);if(b!=6002)throw new Error("6001 unexpected reference to ".concat(b));var v=hre(e,y);v.data.forEach(function(w,C){w.forEach(function(k,E){var D=Pt({r:h+C,c:E}),M=fre(k,c,f);M&&(r[D]=M)})}),h+=v.nrows})}function mre(e,t){var r=cr(t.data),n={"!ref":"A1"},a=e[Xn(r[2][0].data)],s=Zr(a[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));return pre(e,a[0],n),n}function gre(e,t){var r,n=cr(t.data),a={name:(r=n[1])!=null&&r[0]?wv(n[1][0].data):"",sheets:[]},s=h2(n[2],Xn);return s.forEach(function(o){e[o].forEach(function(c){var f=Zr(c.meta[1][0].data);f==6e3&&a.sheets.push(mre(e,c))})}),a}function xre(e,t){var r=v2(),n=cr(t.data),a=h2(n[1],Xn);if(a.forEach(function(s){e[s].forEach(function(o){var c=Zr(o.meta[1][0].data);if(c==2){var f=gre(e,o);f.sheets.forEach(function(d,h){y2(r,d,h==0?f.name:f.name+"_"+h,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function yx(e){var t,r,n,a,s={},o=[];if(e.FullPaths.forEach(function(f){if(f.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(f){if(f.name.match(/\.iwa$/)){var d;try{d=bi(f.content)}catch(g){return console.log("?? "+f.content.length+" "+(g.message||g))}var h;try{h=yi(d)}catch(g){return console.log("## "+(g.message||g))}h.forEach(function(g){s[g.id]=g.messages,o.push(g.id)})}}),!o.length)throw new Error("File has no messages");var c=((a=(n=(r=(t=s?.[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&Zr(s[1][0].meta[1][0].data)==1&&s[1][0];if(c||o.forEach(function(f){s[f].forEach(function(d){var h=Zr(d.meta[1][0].data)>>>0;if(h==1)if(!c)c=d;else throw new Error("Document has multiple roots")})}),!c)throw new Error("Cannot find Document root");return xre(s,c)}function vre(e,t,r){var n,a,s,o;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var c=((o=(s=e[8])==null?void 0:s[0])==null?void 0:o.data)&&Zr(e[8][0].data)>0||!1;if(c)throw"Math only works with normal offsets";for(var f=0,d=Vl(e[7][0].data),h=0,g=[],x=Vl(e[4][0].data),y=0,b=[],v=0;v<t.length;++v){if(t[v]==null){d.setUint16(v*2,65535,!0),x.setUint16(v*2,65535);continue}d.setUint16(v*2,h,!0),x.setUint16(v*2,y,!0);var w,C;switch(typeof t[v]){case"string":w=xx({t:"s",v:t[v]},r),C=vx({t:"s",v:t[v]},r);break;case"number":w=xx({t:"n",v:t[v]},r),C=vx({t:"n",v:t[v]},r);break;case"boolean":w=xx({t:"b",v:t[v]},r),C=vx({t:"b",v:t[v]},r);break;default:throw new Error("Unsupported value "+t[v])}g.push(w),h+=w.length,b.push(C),y+=C.length,++f}for(e[2][0].data=br(f);v<e[7][0].data.length/2;++v)d.setUint16(v*2,65535,!0),x.setUint16(v*2,65535,!0);return e[6][0].data=Wo(g),e[3][0].data=Wo(b),f}function yre(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 a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(zt(n)));var s=Ip(r,{range:n,header:1}),o=["~Sh33tJ5~"];s.forEach(function(K){return K.forEach(function(Q){typeof Q=="string"&&o.push(Q)})});var c={},f=[],d=kt.read(t.numbers,{type:"base64"});d.FileIndex.map(function(K,Q){return[K,d.FullPaths[Q]]}).forEach(function(K){var Q=K[0],ee=K[1];if(Q.type==2&&Q.name.match(/\.iwa/)){var ae=Q.content,xe=bi(ae),ye=yi(xe);ye.forEach(function(Te){f.push(Te.id),c[Te.id]={deps:[],location:ee,type:Zr(Te.messages[0].meta[1][0].data)}})}}),f.sort(function(K,Q){return K-Q});var h=f.filter(function(K){return K>1}).map(function(K){return[K,br(K)]});d.FileIndex.map(function(K,Q){return[K,d.FullPaths[Q]]}).forEach(function(K){var Q=K[0];if(K[1],!!Q.name.match(/\.iwa/)){var ee=yi(bi(Q.content));ee.forEach(function(ae){ae.messages.forEach(function(xe){h.forEach(function(ye){ae.messages.some(function(Te){return Zr(Te.meta[1][0].data)!=11006&&ire(Te.data,ye[1])})&&c[ye[0]].deps.push(ae.id)})})})}});for(var g=kt.find(d,c[1].location),x=yi(bi(g.content)),y,b=0;b<x.length;++b){var v=x[b];v.id==1&&(y=v)}var w=Xn(cr(y.messages[0].data)[1][0].data);for(g=kt.find(d,c[w].location),x=yi(bi(g.content)),b=0;b<x.length;++b)v=x[b],v.id==w&&(y=v);for(w=Xn(cr(y.messages[0].data)[2][0].data),g=kt.find(d,c[w].location),x=yi(bi(g.content)),b=0;b<x.length;++b)v=x[b],v.id==w&&(y=v);for(w=Xn(cr(y.messages[0].data)[2][0].data),g=kt.find(d,c[w].location),x=yi(bi(g.content)),b=0;b<x.length;++b)v=x[b],v.id==w&&(y=v);var C=cr(y.messages[0].data);{C[6][0].data=br(n.e.r+1),C[7][0].data=br(n.e.c+1);var k=Xn(C[46][0].data),E=kt.find(d,c[k].location),D=yi(bi(E.content));{for(var M=0;M<D.length&&D[M].id!=k;++M);if(D[M].id!=k)throw"Bad ColumnRowUIDMapArchive";var A=cr(D[M].messages[0].data);A[1]=[],A[2]=[],A[3]=[];for(var O=0;O<=n.e.c;++O){var N=[];N[1]=N[2]=[{type:0,data:br(O+420690)}],A[1].push({type:2,data:jn(N)}),A[2].push({type:0,data:br(O)}),A[3].push({type:0,data:br(O)})}A[4]=[],A[5]=[],A[6]=[];for(var F=0;F<=n.e.r;++F)N=[],N[1]=N[2]=[{type:0,data:br(F+726270)}],A[4].push({type:2,data:jn(N)}),A[5].push({type:0,data:br(F)}),A[6].push({type:0,data:br(F)});D[M].messages[0].data=jn(A)}E.content=Uc(zc(D)),E.size=E.content.length,delete C[46];var P=cr(C[4][0].data);{P[7][0].data=br(n.e.r+1);var j=cr(P[1][0].data),R=Xn(j[2][0].data);E=kt.find(d,c[R].location),D=yi(bi(E.content));{if(D[0].id!=R)throw"Bad HeaderStorageBucket";var W=cr(D[0].messages[0].data);for(F=0;F<s.length;++F){var Y=cr(W[2][0].data);Y[1][0].data=br(F),Y[4][0].data=br(s[F].length),W[2][F]={type:W[2][0].type,data:jn(Y)}}D[0].messages[0].data=jn(W)}E.content=Uc(zc(D)),E.size=E.content.length;var Z=Xn(P[2][0].data);E=kt.find(d,c[Z].location),D=yi(bi(E.content));{if(D[0].id!=Z)throw"Bad HeaderStorageBucket";for(W=cr(D[0].messages[0].data),O=0;O<=n.e.c;++O)Y=cr(W[2][0].data),Y[1][0].data=br(O),Y[4][0].data=br(n.e.r+1),W[2][O]={type:W[2][0].type,data:jn(Y)};D[0].messages[0].data=jn(W)}E.content=Uc(zc(D)),E.size=E.content.length;var B=Xn(P[4][0].data);(function(){for(var K=kt.find(d,c[B].location),Q=yi(bi(K.content)),ee,ae=0;ae<Q.length;++ae){var xe=Q[ae];xe.id==B&&(ee=xe)}var ye=cr(ee.messages[0].data);{ye[3]=[];var Te=[];o.forEach(function(te,rt){Te[1]=[{type:0,data:br(rt)}],Te[2]=[{type:0,data:br(1)}],Te[3]=[{type:2,data:are(te)}],ye[3].push({type:2,data:jn(Te)})})}ee.messages[0].data=jn(ye);var he=zc(Q),Ve=Uc(he);K.content=Ve,K.size=K.content.length})();var ne=cr(P[3][0].data);{var ce=ne[1][0];delete ne[2];var U=cr(ce.data);{var H=Xn(U[2][0].data);(function(){for(var K=kt.find(d,c[H].location),Q=yi(bi(K.content)),ee,ae=0;ae<Q.length;++ae){var xe=Q[ae];xe.id==H&&(ee=xe)}var ye=cr(ee.messages[0].data);{delete ye[6],delete ne[7];var Te=new Uint8Array(ye[5][0].data);ye[5]=[];for(var he=0,Ve=0;Ve<=n.e.r;++Ve){var te=cr(Te);he+=vre(te,s[Ve],o),te[1][0].data=br(Ve),ye[5].push({data:jn(te),type:2})}ye[1]=[{type:0,data:br(n.e.c+1)}],ye[2]=[{type:0,data:br(n.e.r+1)}],ye[3]=[{type:0,data:br(he)}],ye[4]=[{type:0,data:br(n.e.r+1)}]}ee.messages[0].data=jn(ye);var rt=zc(Q),Ue=Uc(rt);K.content=Ue,K.size=K.content.length})()}ce.data=jn(U)}P[3][0].data=jn(ne)}C[4][0].data=jn(P)}y.messages[0].data=jn(C);var ie=zc(x),z=Uc(ie);return g.content=z,g.size=g.content.length,d}function zR(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function p2(e){zR([["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 m2(e){zR([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function bre(e){return Yt.WS.indexOf(e)>-1?"sheet":e==Yt.CS?"chart":e==Yt.DS?"dialog":e==Yt.MS?"macro":e&&e.length?e:"sheet"}function Sre(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,bre(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function wre(e,t,r,n,a,s,o,c,f,d,h,g){try{s[n]=Jf(Ja(e,r,!0),t);var x=hn(e,t),y;switch(c){case"sheet":y=Wee(x,t,a,f,s[n],d,h,g);break;case"chart":if(y=Vee(x,t,a,f,s[n],d,h,g),!y||!y["!drawel"])break;var b=$f(y["!drawel"].Target,t),v=Rd(b),w=DK(Ja(e,b,!0),Jf(Ja(e,v,!0),b)),C=$f(w,b),k=Rd(C);y=vee(Ja(e,C,!0),C,f,Jf(Ja(e,k,!0),C),d,y);break;case"macro":y=Gee(x,t,a,f,s[n],d,h,g);break;case"dialog":y=Xee(x,t,a,f,s[n],d,h,g);break;default:throw new Error("Unrecognized sheet type "+c)}o[n]=y;var E=[];s&&s[n]&&Jr(s[n]).forEach(function(D){var M="";if(s[n][D].Type==Yt.CMNT){M=$f(s[n][D].Target,t);var A=Qee(hn(e,M,!0),M,f);if(!A||!A.length)return;R4(y,A,!1)}s[n][D].Type==Yt.TCMNT&&(M=$f(s[n][D].Target,t),E=E.concat(FK(hn(e,M,!0),f)))}),E&&E.length&&R4(y,E,!0,f.people||[])}catch(D){if(f.WTF)throw D}}function xi(e){return e.charAt(0)=="/"?e.slice(1):e}function Tre(e,t){if(Tu(),t=t||{},p2(t),Si(e,"META-INF/manifest.xml")||Si(e,"objectdata.xml"))return z4(e,t);if(Si(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof yx<"u"){if(e.FileIndex)return yx(e);var r=kt.utils.cfb_new();return KE(e).forEach(function(Y){Wt(r,Y,NV(e,Y))}),yx(r)}throw new Error("Unsupported NUMBERS file")}if(!Si(e,"[Content_Types].xml"))throw Si(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Si(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=KE(e),a=kG(Ja(e,"[Content_Types].xml")),s=!1,o,c;if(a.workbooks.length===0&&(c="xl/workbook.xml",hn(e,c,!0)&&a.workbooks.push(c)),a.workbooks.length===0){if(c="xl/workbook.bin",!hn(e,c,!0))throw new Error("Could not find workbook");a.workbooks.push(c),s=!0}a.workbooks[0].slice(-3)=="bin"&&(s=!0);var f={},d={};if(!t.bookSheets&&!t.bookProps){if(ed=[],a.sst)try{ed=Kee(hn(e,xi(a.sst)),a.sst,t)}catch(Y){if(t.WTF)throw Y}t.cellStyles&&a.themes.length&&(f=qee(Ja(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(d=Yee(hn(e,xi(a.style)),a.style,f,t))}a.links.map(function(Y){try{var Z=Jf(Ja(e,Rd(xi(Y))),Y);return Jee(hn(e,xi(Y)),Z,Y,t)}catch{}});var h=Hee(hn(e,xi(a.workbooks[0])),a.workbooks[0],t),g={},x="";a.coreprops.length&&(x=hn(e,xi(a.coreprops[0]),!0),x&&(g=AA(x)),a.extprops.length!==0&&(x=hn(e,xi(a.extprops[0]),!0),x&&NG(x,g,t)));var y={};(!t.bookSheets||t.bookProps)&&a.custprops.length!==0&&(x=Ja(e,xi(a.custprops[0]),!0),x&&(y=jG(x,t)));var b={};if((t.bookSheets||t.bookProps)&&(h.Sheets?o=h.Sheets.map(function(Z){return Z.name}):g.Worksheets&&g.SheetNames.length>0&&(o=g.SheetNames),t.bookProps&&(b.Props=g,b.Custprops=y),t.bookSheets&&typeof o<"u"&&(b.SheetNames=o),t.bookSheets?b.SheetNames:t.bookProps))return b;o={};var v={};t.bookDeps&&a.calcchain&&(v=Zee(hn(e,xi(a.calcchain)),a.calcchain));var w=0,C={},k,E;{var D=h.Sheets;g.Worksheets=D.length,g.SheetNames=[];for(var M=0;M!=D.length;++M)g.SheetNames[M]=D[M].name}var A=s?"bin":"xml",O=a.workbooks[0].lastIndexOf("/"),N=(a.workbooks[0].slice(0,O+1)+"_rels/"+a.workbooks[0].slice(O+1)+".rels").replace(/^\//,"");Si(e,N)||(N="xl/_rels/workbook."+A+".rels");var F=Jf(Ja(e,N,!0),N.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=ete(hn(e,xi(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=PK(hn(e,xi(a.people[0])),t)),F&&(F=Sre(F,h.Sheets));var P=hn(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(w=0;w!=g.Worksheets;++w){var j="sheet";if(F&&F[w]?(k="xl/"+F[w][1].replace(/[\/]?xl\//,""),Si(e,k)||(k=F[w][1]),Si(e,k)||(k=N.replace(/_rels\/.*$/,"")+F[w][1]),j=F[w][2]):(k="xl/worksheets/sheet"+(w+1-P)+"."+A,k=k.replace(/sheet0\./,"sheet.")),E=k.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(w!=t.sheets)continue e;break;case"string":if(g.SheetNames[w].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var R=!1,W=0;W!=t.sheets.length;++W)typeof t.sheets[W]=="number"&&t.sheets[W]==w&&(R=1),typeof t.sheets[W]=="string"&&t.sheets[W].toLowerCase()==g.SheetNames[w].toLowerCase()&&(R=1);if(!R)continue e}}wre(e,k,E,g.SheetNames[w],w,C,o,j,t,h,f,d)}return b={Directory:a,Workbook:h,Props:g,Custprops:y,Deps:v,Sheets:o,SheetNames:g.SheetNames,Strings:ed,Styles:d,Themes:f,SSF:jr(Ft)},t&&t.bookFiles&&(e.files?(b.keys=n,b.files=e.files):(b.keys=[],b.files={},e.FullPaths.forEach(function(Y,Z){Y=Y.replace(/^Root Entry[\/]/,""),b.keys.push(Y),b.files[Y]=e.FileIndex[Z]}))),t&&t.bookVBA&&(a.vba.length>0?b.vbaraw=hn(e,xi(a.vba[0]),!0):a.defaults&&a.defaults.bin===HK&&(b.vbaraw=hn(e,"xl/vbaProject.bin",!0))),b}function Cre(e,t){var r=t||{},n="Workbook",a=kt.find(e,n);try{if(n="/!DataSpaces/Version",a=kt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(eq(a.content),n="/!DataSpaces/DataSpaceMap",a=kt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=rq(a.content);if(s.length!==1||s[0].comps.length!==1||s[0].comps[0].t!==0||s[0].name!=="StrongEncryptionDataSpace"||s[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",a=kt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=nq(a.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",a=kt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);iq(a.content)}catch{}if(n="/EncryptionInfo",a=kt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var c=sq(a.content);if(n="/EncryptedPackage",a=kt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(c[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(c[1],a.content,r.password||"",r);if(c[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(c[1],a.content,r.password||"",r);throw new Error("File is password-protected")}function Ere(e,t){return t.bookType=="ods"?BR(e,t):t.bookType=="numbers"?yre(e,t):t.bookType=="xlsb"?_re(e,t):kre(e,t)}function _re(e,t){Yc=1024,e&&!e.SSF&&(e.SSF=jr(Ft)),e&&e.SSF&&(Tu(),ym(e.SSF),t.revssf=Sm(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,td?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=hR.indexOf(t.bookType)>-1,a=e2();m2(t=t||{});var s=zy(),o="",c=0;if(t.cellXfs=[],tl(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Wt(s,o,RA(e.Props,t)),a.coreprops.push(o),Sr(t.rels,2,o,Yt.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var f=[],d=0;d<e.SheetNames.length;++d)(e.Workbook.Sheets[d]||{}).Hidden!=2&&f.push(e.SheetNames[d]);e.Props.SheetNames=f}for(e.Props.Worksheets=e.Props.SheetNames.length,Wt(s,o,MA(e.Props)),a.extprops.push(o),Sr(t.rels,3,o,Yt.EXT_PROPS),e.Custprops!==e.Props&&Jr(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Wt(s,o,FA(e.Custprops)),a.custprops.push(o),Sr(t.rels,4,o,Yt.CUST_PROPS)),c=1;c<=e.SheetNames.length;++c){var h={"!id":{}},g=e.Sheets[e.SheetNames[c-1]],x=(g||{})["!type"]||"sheet";switch(x){case"chart":default:o="xl/worksheets/sheet"+c+"."+r,Wt(s,o,rte(c-1,o,t,e,h)),a.sheets.push(o),Sr(t.wbrels,-1,"worksheets/sheet"+c+"."+r,Yt.WS[0])}if(g){var y=g["!comments"],b=!1,v="";y&&y.length>0&&(v="xl/comments"+c+"."+r,Wt(s,v,ite(y,v)),a.comments.push(v),Sr(h,-1,"../comments"+c+"."+r,Yt.CMNT),b=!0),g["!legacy"]&&b&&Wt(s,"xl/drawings/vmlDrawing"+c+".vml",fR(c,g["!comments"])),delete g["!comments"],delete g["!legacy"]}h["!id"].rId1&&Wt(s,Rd(o),tu(h))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,Wt(s,o,ate(t.Strings,o,t)),a.strs.push(o),Sr(t.wbrels,-1,"sharedStrings."+r,Yt.SST)),o="xl/workbook."+r,Wt(s,o,tte(e,o)),a.workbooks.push(o),Sr(t.rels,1,o,Yt.WB),o="xl/theme/theme1.xml",Wt(s,o,s2(e.Themes,t)),a.themes.push(o),Sr(t.wbrels,-1,"theme/theme1.xml",Yt.THEME),o="xl/styles."+r,Wt(s,o,nte(e,o,t)),a.styles.push(o),Sr(t.wbrels,-1,"styles."+r,Yt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",Wt(s,o,e.vbaraw),a.vba.push(o),Sr(t.wbrels,-1,"vbaProject.bin",Yt.VBA)),o="xl/metadata."+r,Wt(s,o,ste(o)),a.metadata.push(o),Sr(t.wbrels,-1,"metadata."+r,Yt.XLMETA),Wt(s,"[Content_Types].xml",_A(a,t)),Wt(s,"_rels/.rels",tu(t.rels)),Wt(s,"xl/_rels/workbook."+r+".rels",tu(t.wbrels)),delete t.revssf,delete t.ssf,s}function kre(e,t){Yc=1024,e&&!e.SSF&&(e.SSF=jr(Ft)),e&&e.SSF&&(Tu(),ym(e.SSF),t.revssf=Sm(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,td?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=hR.indexOf(t.bookType)>-1,a=e2();m2(t=t||{});var s=zy(),o="",c=0;if(t.cellXfs=[],tl(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Wt(s,o,RA(e.Props,t)),a.coreprops.push(o),Sr(t.rels,2,o,Yt.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var f=[],d=0;d<e.SheetNames.length;++d)(e.Workbook.Sheets[d]||{}).Hidden!=2&&f.push(e.SheetNames[d]);e.Props.SheetNames=f}e.Props.Worksheets=e.Props.SheetNames.length,Wt(s,o,MA(e.Props)),a.extprops.push(o),Sr(t.rels,3,o,Yt.EXT_PROPS),e.Custprops!==e.Props&&Jr(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Wt(s,o,FA(e.Custprops)),a.custprops.push(o),Sr(t.rels,4,o,Yt.CUST_PROPS));var h=["SheetJ5"];for(t.tcid=0,c=1;c<=e.SheetNames.length;++c){var g={"!id":{}},x=e.Sheets[e.SheetNames[c-1]],y=(x||{})["!type"]||"sheet";switch(y){case"chart":default:o="xl/worksheets/sheet"+c+"."+r,Wt(s,o,CR(c-1,t,e,g)),a.sheets.push(o),Sr(t.wbrels,-1,"worksheets/sheet"+c+"."+r,Yt.WS[0])}if(x){var b=x["!comments"],v=!1,w="";if(b&&b.length>0){var C=!1;b.forEach(function(k){k[1].forEach(function(E){E.T==!0&&(C=!0)})}),C&&(w="xl/threadedComments/threadedComment"+c+"."+r,Wt(s,w,NK(b,h,t)),a.threadedcomments.push(w),Sr(g,-1,"../threadedComments/threadedComment"+c+"."+r,Yt.TCMNT)),w="xl/comments"+c+"."+r,Wt(s,w,dR(b)),a.comments.push(w),Sr(g,-1,"../comments"+c+"."+r,Yt.CMNT),v=!0}x["!legacy"]&&v&&Wt(s,"xl/drawings/vmlDrawing"+c+".vml",fR(c,x["!comments"])),delete x["!comments"],delete x["!legacy"]}g["!id"].rId1&&Wt(s,Rd(o),tu(g))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,Wt(s,o,JA(t.Strings,t)),a.strs.push(o),Sr(t.wbrels,-1,"sharedStrings."+r,Yt.SST)),o="xl/workbook."+r,Wt(s,o,RR(e)),a.workbooks.push(o),Sr(t.rels,1,o,Yt.WB),o="xl/theme/theme1.xml",Wt(s,o,s2(e.Themes,t)),a.themes.push(o),Sr(t.wbrels,-1,"theme/theme1.xml",Yt.THEME),o="xl/styles."+r,Wt(s,o,oR(e,t)),a.styles.push(o),Sr(t.wbrels,-1,"styles."+r,Yt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",Wt(s,o,e.vbaraw),a.vba.push(o),Sr(t.wbrels,-1,"vbaProject.bin",Yt.VBA)),o="xl/metadata."+r,Wt(s,o,uR()),a.metadata.push(o),Sr(t.wbrels,-1,"metadata."+r,Yt.XLMETA),h.length>1&&(o="xl/persons/person.xml",Wt(s,o,jK(h)),a.people.push(o),Sr(t.wbrels,-1,"persons/person.xml",Yt.PEOPLE)),Wt(s,"[Content_Types].xml",_A(a,t)),Wt(s,"_rels/.rels",tu(t.rels)),Wt(s,"xl/_rels/workbook."+r+".rels",tu(t.wbrels)),delete t.revssf,delete t.ssf,s}function g2(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=ni(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 Are(e,t){return kt.find(e,"EncryptedPackage")?Cre(e,t):FR(e,t)}function Rre(e,t){var r,n=e,a=t||{};return a.type||(a.type=Gt&&Buffer.isBuffer(e)?"buffer":"base64"),r=tA(n,a),Tre(r,a)}function UR(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 bv(e.slice(r),t);default:break e}return hu.to_workbook(e,t)}function Ore(e,t){var r="",n=g2(e,t);switch(t.type){case"base64":r=ni(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=Ul(e);break;default:throw new Error("Unrecognized type "+t.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(r=Ar(r)),t.type="binary",UR(r,t)}function Dre(e,t){var r=e;return t.type=="base64"&&(r=ni(r)),r=Td.utils.decode(1200,r.slice(2),"str"),t.type="binary",UR(r,t)}function Mre(e){return e.match(/[^\x00-\x7F]/)?hs(e):e}function bx(e,t,r,n){return n?(r.type="string",hu.to_workbook(e,r)):hu.to_workbook(t,r)}function Tv(e,t){Py();var r=t||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return Tv(new Uint8Array(e),(r=jr(r),r.type="array",r));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!r.type&&(r.type=typeof Deno<"u"?"buffer":"array");var n=e,a=[0,0,0,0],s=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),nu={},r.dateNF&&(nu.dateNF=r.dateNF),r.type||(r.type=Gt&&Buffer.isBuffer(e)?"buffer":"base64"),r.type=="file"&&(r.type=Gt?"buffer":"binary",n=_V(e),typeof Uint8Array<"u"&&!Gt&&(r.type="array")),r.type=="string"&&(s=!0,r.type="binary",r.codepage=65001,n=Mre(e)),r.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var o=new ArrayBuffer(3),c=new Uint8Array(o);if(c.foo="bar",!c.foo)return r=jr(r),r.type="array",Tv(jy(n),r)}switch((a=g2(n,r))[0]){case 208:if(a[1]===207&&a[2]===17&&a[3]===224&&a[4]===161&&a[5]===177&&a[6]===26&&a[7]===225)return Are(kt.read(n,r),r);break;case 9:if(a[1]<=8)return FR(n,r);break;case 60:return bv(n,r);case 73:if(a[1]===73&&a[2]===42&&a[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(a[1]===68)return LY(n,r);break;case 84:if(a[1]===65&&a[2]===66&&a[3]===76)return QA.to_workbook(n,r);break;case 80:return a[1]===75&&a[2]<9&&a[3]<9?Rre(n,r):bx(e,n,r,s);case 239:return a[3]===60?bv(n,r):bx(e,n,r,s);case 255:if(a[1]===254)return Dre(n,r);if(a[1]===0&&a[2]===2&&a[3]===0)return Fl.to_workbook(n,r);break;case 0:if(a[1]===0&&(a[2]>=2&&a[3]===0||a[2]===0&&(a[3]===8||a[3]===9)))return Fl.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return yv.to_workbook(n,r);case 123:if(a[1]===92&&a[2]===114&&a[3]===116)return aR.to_workbook(n,r);break;case 10:case 13:case 32:return Ore(n,r);case 137:if(a[1]===80&&a[2]===78&&a[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return jY.indexOf(a[0])>-1&&a[2]<=12&&a[3]<=31?yv.to_workbook(n,r):bx(e,n,r,s)}function $R(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return r0(t.file,kt.write(e,{type:Gt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return kt.write(e,t)}function Fre(e,t){var r=jr(t||{}),n=Ere(e,r);return Nre(n,r)}function Nre(e,t){var r={},n=Gt?"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 a=e.FullPaths?kt.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(vm(a))}return t.password&&typeof encrypt_agile<"u"?$R(encrypt_agile(a,t.password),t):t.type==="file"?r0(t.file,a):t.type=="string"?Ar(a):a}function Pre(e,t){var r=t||{},n=Mte(e,r);return $R(n,r)}function ls(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Cd(hs(n));case"binary":return hs(n);case"string":return e;case"file":return r0(t.file,n,"utf8");case"buffer":return Gt?Js(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):ls(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function jre(e,t){switch(t.type){case"base64":return Cd(e);case"binary":return e;case"string":return e;case"file":return r0(t.file,e,"binary");case"buffer":return Gt?Js(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Wh(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"?Cd(r):t.type=="string"?Ar(r):r;case"file":return r0(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function HR(e,t){Py(),Aee(e);var r=jr(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=HR(e,r);return r.type="array",vm(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=e.SheetNames.indexOf(r.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return ls(Ete(e,r),r);case"slk":case"sylk":return ls(KA.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"htm":case"html":return ls(PR(e.Sheets[e.SheetNames[a]],r),r);case"txt":return jre(WR(e.Sheets[e.SheetNames[a]],r),r);case"csv":return ls(x2(e.Sheets[e.SheetNames[a]],r),r,"\uFEFF");case"dif":return ls(QA.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"dbf":return Wh(yv.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"prn":return ls(hu.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"rtf":return ls(aR.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"eth":return ls(ZA.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"fods":return ls(BR(e,r),r);case"wk1":return Wh(Fl.sheet_to_wk1(e.Sheets[e.SheetNames[a]],r),r);case"wk3":return Wh(Fl.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),Wh(NR(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),Pre(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return Fre(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function Lre(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 Ire(e,t,r){var n={};return n.type="file",n.file=t,Lre(n),HR(e,n)}function Bre(e,t,r,n,a,s,o,c){var f=on(r),d=c.defval,h=c.raw||!Object.prototype.hasOwnProperty.call(c,"raw"),g=!0,x=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(x,"__rowNum__",{value:r,enumerable:!1})}catch{x.__rowNum__=r}else x.__rowNum__=r;if(!o||e[r])for(var y=t.s.c;y<=t.e.c;++y){var b=o?e[r][y]:e[n[y]+f];if(b===void 0||b.t===void 0){if(d===void 0)continue;s[y]!=null&&(x[s[y]]=d);continue}var v=b.v;switch(b.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+b.t)}if(s[y]!=null){if(v==null)if(b.t=="e"&&v===null)x[s[y]]=null;else if(d!==void 0)x[s[y]]=d;else if(h&&v===null)x[s[y]]=null;else continue;else x[s[y]]=h&&(b.t!=="n"||b.t==="n"&&c.rawNumbers!==!1)?v:Ks(b,v,c);v!=null&&(g=!1)}}return{row:x,isempty:g}}function Ip(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,s=[],o=0,c="",f={s:{r:0,c:0},e:{r:0,c:0}},d=t||{},h=d.range!=null?d.range:e["!ref"];switch(d.header===1?n=1:d.header==="A"?n=2:Array.isArray(d.header)?n=3:d.header==null&&(n=0),typeof h){case"string":f=or(h);break;case"number":f=or(e["!ref"]),f.s.r=h;break;default:f=h}n>0&&(a=0);var g=on(f.s.r),x=[],y=[],b=0,v=0,w=Array.isArray(e),C=f.s.r,k=0,E={};w&&!e[C]&&(e[C]=[]);var D=d.skipHidden&&e["!cols"]||[],M=d.skipHidden&&e["!rows"]||[];for(k=f.s.c;k<=f.e.c;++k)if(!(D[k]||{}).hidden)switch(x[k]=$r(k),r=w?e[C][k]:e[x[k]+g],n){case 1:s[k]=k-f.s.c;break;case 2:s[k]=x[k];break;case 3:s[k]=d.header[k-f.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),c=o=Ks(r,null,d),v=E[o]||0,!v)E[o]=1;else{do c=o+"_"+v++;while(E[c]);E[o]=v,E[c]=1}s[k]=c}for(C=f.s.r+a;C<=f.e.r;++C)if(!(M[C]||{}).hidden){var A=Bre(e,f,C,x,n,s,w,d);(A.isempty===!1||(n===1?d.blankrows!==!1:d.blankrows))&&(y[b++]=A.row)}return y.length=b,y}var V4=/"/g;function zre(e,t,r,n,a,s,o,c){for(var f=!0,d=[],h="",g=on(r),x=t.s.c;x<=t.e.c;++x)if(n[x]){var y=c.dense?(e[r]||[])[x]:e[n[x]+g];if(y==null)h="";else if(y.v!=null){f=!1,h=""+(c.rawNumbers&&y.t=="n"?y.v:Ks(y,null,c));for(var b=0,v=0;b!==h.length;++b)if((v=h.charCodeAt(b))===a||v===s||v===34||c.forceQuotes){h='"'+h.replace(V4,'""')+'"';break}h=="ID"&&(h='"ID"')}else y.f!=null&&!y.F?(f=!1,h="="+y.f,h.indexOf(",")>=0&&(h='"'+h.replace(V4,'""')+'"')):h="";d.push(h)}return c.blankrows===!1&&f?null:d.join(o)}function x2(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=or(e["!ref"]),s=n.FS!==void 0?n.FS:",",o=s.charCodeAt(0),c=n.RS!==void 0?n.RS:`
`,f=c.charCodeAt(0),d=new RegExp((s=="|"?"\\|":s)+"+$"),h="",g=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],y=n.skipHidden&&e["!rows"]||[],b=a.s.c;b<=a.e.c;++b)(x[b]||{}).hidden||(g[b]=$r(b));for(var v=0,w=a.s.r;w<=a.e.r;++w)(y[w]||{}).hidden||(h=zre(e,a,w,g,o,f,s,n),h!=null&&(n.strip&&(h=h.replace(d,"")),(h||n.blankrows!==!1)&&r.push((v++?c:"")+h)));return delete n.dense,r.join("")}function WR(e,t){t||(t={}),t.FS="	",t.RS=`
`;var r=x2(e,t);return r}function Ure(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=or(e["!ref"]),s="",o=[],c,f=[],d=Array.isArray(e);for(c=a.s.c;c<=a.e.c;++c)o[c]=$r(c);for(var h=a.s.r;h<=a.e.r;++h)for(s=on(h),c=a.s.c;c<=a.e.c;++c)if(t=o[c]+s,r=d?(e[h]||[])[c]: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}}f[f.length]=t+"="+n}return f}function VR(e,t,r){var n=r||{},a=+!n.skipHeader,s=e||{},o=0,c=0;if(s&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var f=typeof n.origin=="string"?Hr(n.origin):n.origin;o=f.r,c=f.c}var d,h={s:{c:0,r:0},e:{c,r:o+t.length-1+a}};if(s["!ref"]){var g=or(s["!ref"]);h.e.c=Math.max(h.e.c,g.e.c),h.e.r=Math.max(h.e.r,g.e.r),o==-1&&(o=g.e.r+1,h.e.r=o+t.length-1+a)}else o==-1&&(o=0,h.e.r=t.length-1+a);var x=n.header||[],y=0;t.forEach(function(v,w){Jr(v).forEach(function(C){(y=x.indexOf(C))==-1&&(x[y=x.length]=C);var k=v[C],E="z",D="",M=Pt({c:c+y,r:o+w+a});d=jd(s,M),k&&typeof k=="object"&&!(k instanceof Date)?s[M]=k:(typeof k=="number"?E="n":typeof k=="boolean"?E="b":typeof k=="string"?E="s":k instanceof Date?(E="d",n.cellDates||(E="n",k=Sn(k)),D=n.dateNF||Ft[14]):k===null&&n.nullError&&(E="e",k=0),d?(d.t=E,d.v=k,delete d.w,delete d.R,D&&(d.z=D)):s[M]=d={t:E,v:k},D&&(d.z=D))})}),h.e.c=Math.max(h.e.c,c+x.length-1);var b=on(o);if(a)for(y=0;y<x.length;++y)s[$r(y+c)+b]={t:"s",v:x[y]};return s["!ref"]=zt(h),s}function $re(e,t){return VR(null,e,t)}function jd(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Hr(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"?jd(e,Pt(t)):jd(e,Pt({r:t,c:r||0}))}function Hre(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 v2(){return{SheetNames:[],Sheets:{}}}function y2(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);a=s&&+s[2]||0;var o=s&&s[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=o+a)!=-1;++a);}if(AR(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 Wre(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Hre(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 Vre(e,t){return e.z=t,e}function GR(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Gre(e,t,r){return GR(e,"#"+t,r)}function Xre(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function Yre(e,t,r,n){for(var a=typeof t!="string"?t:or(t),s=typeof t=="string"?t:zt(t),o=a.s.r;o<=a.e.r;++o)for(var c=a.s.c;c<=a.e.c;++c){var f=jd(e,o,c);f.t="n",f.F=s,delete f.v,o==a.s.r&&c==a.s.c&&(f.f=r,n&&(f.D=!0))}return e}var ap={encode_col:$r,encode_row:on,encode_cell:Pt,encode_range:zt,decode_col:Yy,decode_row:Xy,split_cell:aG,decode_cell:Hr,decode_range:Pa,format_cell:Ks,sheet_add_aoa:yA,sheet_add_json:VR,sheet_add_dom:jR,aoa_to_sheet:Cu,json_to_sheet:$re,table_to_sheet:LR,table_to_book:ere,sheet_to_csv:x2,sheet_to_txt:WR,sheet_to_json:Ip,sheet_to_html:PR,sheet_to_formulae:Ure,sheet_to_row_object_array:Ip,sheet_get_cell:jd,book_new:v2,book_append_sheet:y2,book_set_sheet_visibility:Wre,cell_set_number_format:Vre,cell_set_hyperlink:GR,cell_set_internal_link:Gre,cell_add_comment:Xre,sheet_set_array_formula:Yre,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};class qre{constructor(){this.columnMapping={name:["游客姓名（必填）","游客姓名","姓名","name"],gender:["性别（必填）","性别","gender"],idType:["证件类型（必填）","证件类型","idType"],idNumber:["证件号码（必填）","证件号码","idNumber"],phone:["手机号码（选填）","手机号码","phone"],nationality:["国籍（必填）","国籍","nationality"],origin:["来源地（必填，境外人员可填写国籍）","来源地","origin"],age:["年龄（中国居民身份证选填，其他必填）","年龄","age"]}}findColumnIndex(t,r){for(const n of r){const a=t.findIndex(s=>s&&s.toString().trim()===n);if(a!==-1)return a}return-1}parseFile(t){return new Promise((r,n)=>{const a=new FileReader;a.onload=s=>{try{const o=new Uint8Array(s.target.result),c=Tv(o,{type:"array"}),f=c.SheetNames[0],d=c.Sheets[f],h=ap.sheet_to_json(d,{header:1}),g=h[0],x=this.buildColumnIndexes(g),y=this.parseDataRows(h,x);r(y)}catch(o){console.error("Excel文件解析错误:",o),n(o)}},a.readAsArrayBuffer(t)})}buildColumnIndexes(t){const r={};for(const[n,a]of Object.entries(this.columnMapping))r[n]=this.findColumnIndex(t,a);return r}parseDataRows(t,r){const n=[];for(let a=1;a<t.length;a++){const s=t[a];if(!s||s.every(c=>!c))continue;const o=this.parseRowToTourist(s,r);n.push(o)}return n}parseRowToTourist(t,r){return{name:t[r.name]?.toString().trim()||"",gender:t[r.gender]?.toString().trim()||"",idType:t[r.idType]?.toString().trim()||"",idNumber:t[r.idNumber]?.toString().trim()||"",phone:r.phone!==-1&&t[r.phone]?.toString().trim()||"",nationality:t[r.nationality]?.toString().trim()||"",origin:t[r.origin]?.toString().trim()||"",age:r.age!==-1&&t[r.age]?.toString().trim()||""}}deduplicateTourists(t,r){const n=new Set(t.map(a=>a.idNumber));return r.filter(a=>!n.has(a.idNumber))}}const G4=new qre;function b2({tourists:e=[],onTouristsChange:t}){const{showSuccess:r,showError:n,showWarning:a}=xa(),s=_.useRef(null),o=d=>{const h=e.filter((g,x)=>x!==d);t?.(h),r("已删除游客信息")},c=()=>{t?.([]),r("已清空所有游客信息")},f=d=>{const h=d.target.files[0];h&&(G4.parseFile(h).then(g=>{const x=G4.deduplicateTourists(e,g);if(x.length===0){a("没有新的游客数据可导入（可能存在重复）");return}t?.([...e,...x]),r(`成功导入${x.length}位游客信息`)}).catch(g=>{n(g.message)}),d.target.value="")};return m.jsx(nn,{children:m.jsxs(an,{children:[m.jsxs(Me,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[m.jsxs(Le,{variant:"h6",sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(yW,{color:"primary"}),"游客信息管理",e.length>0&&m.jsx(pr,{label:`${e.length}人`,color:"primary",size:"small"})]}),m.jsxs(Me,{display:"flex",gap:1,children:[m.jsx(Un,{title:"解析Excel文件",children:m.jsx(Tt,{variant:"outlined",startIcon:m.jsx(OW,{}),onClick:()=>s.current?.click(),size:"small",children:"解析Excel"})}),e.length>0&&m.jsx(Un,{title:"清空所有游客",children:m.jsx(Tt,{variant:"outlined",color:"error",startIcon:m.jsx(tW,{}),onClick:c,size:"small",children:"清空"})})]})]}),m.jsx(Mn,{severity:"info",sx:{mb:2},children:m.jsxs(Me,{display:"flex",alignItems:"center",gap:1,children:[m.jsx(O3,{fontSize:"small"}),m.jsx(Le,{variant:"body2",children:"支持标准Excel格式：游客姓名、性别、证件类型、证件号码、手机号码、国籍、来源地、年龄等字段"})]})}),m.jsx(Qa,{sx:{my:2}}),e.length>0?m.jsx(Ys,{component:zr,variant:"outlined",children:m.jsxs(Gs,{size:"small",children:[m.jsx(qs,{children:m.jsxs(Dr,{children:[m.jsx(je,{children:"序号"}),m.jsx(je,{children:"姓名"}),m.jsx(je,{children:"性别"}),m.jsx(je,{children:"证件类型"}),m.jsx(je,{children:"证件号码"}),m.jsx(je,{children:"国籍"}),m.jsx(je,{children:"来源地"}),m.jsx(je,{children:"手机号码"}),m.jsx(je,{children:"年龄"}),m.jsx(je,{align:"center",children:"操作"})]})}),m.jsx(Xs,{children:e.map((d,h)=>m.jsxs(Dr,{hover:!0,children:[m.jsx(je,{children:h+1}),m.jsx(je,{children:d.name}),m.jsx(je,{children:d.gender}),m.jsx(je,{children:d.idType}),m.jsx(je,{children:m.jsx(Le,{variant:"body2",sx:{fontFamily:"monospace"},children:d.idNumber})}),m.jsx(je,{children:d.nationality}),m.jsx(je,{children:d.origin}),m.jsx(je,{children:d.phone||"--"}),m.jsx(je,{children:d.age||"--"}),m.jsx(je,{align:"center",children:m.jsx(Un,{title:"删除",children:m.jsx(bn,{size:"small",color:"error",onClick:()=>o(h),children:m.jsx(Tp,{})})})})]},h))})]})}):m.jsx(Mn,{severity:"info",sx:{mt:2},children:"暂无游客信息，请解析Excel文件导入游客数据"}),m.jsx("input",{type:"file",ref:s,onChange:f,accept:".xlsx,.xls",style:{display:"none"}})]})})}function S2({value:e=5,onChange:t}){const r=n=>{const a=parseInt(n.target.value)||1;t?.(a)};return m.jsx(nn,{children:m.jsxs(an,{children:[m.jsxs(Le,{variant:"h6",sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[m.jsx(Sd,{color:"primary"}),"分组人数设置"]}),m.jsx(An,{type:"number",label:"每组人数",value:e,onChange:r,fullWidth:!0})]})})}function w2({selectedDates:e=[],tourists:t=[],touristGroups:r=null,ticketCalculator:n}){const[a,s]=_.useState({open:!1,type:"",name:"",tourists:[]}),o=x=>({child:m.jsx(eW,{color:"success"}),elderly:m.jsx(lW,{color:"warning"}),student:m.jsx(wW,{color:"info"}),adult:m.jsx(Bf,{color:"primary"}),passport:m.jsx(Bf,{color:"secondary"}),unknown:m.jsx(Bf,{color:"disabled"})})[x]||m.jsx(Bf,{}),c=(x,y,b)=>{s({open:!0,type:x,name:y,tourists:b})},f=()=>{s({open:!1,type:"",name:"",tourists:[]})},d=On.useMemo(()=>r||j3(t,e),[t,e,r]),g=n.calculateTouristInfo(t,d);return m.jsx(nn,{children:m.jsxs(an,{children:[m.jsxs(Le,{variant:"h6",gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(CW,{color:"primary"}),"订单摘要"]}),m.jsx(Me,{mb:3,children:m.jsxs(Jt,{container:!0,spacing:2,children:[m.jsx(Jt,{size:{xs:12,sm:6},children:m.jsxs(zr,{variant:"outlined",sx:{p:2},children:[m.jsxs(Le,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:[m.jsx(t0,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"选择日期"]}),e.length>0?e.map((x,y)=>m.jsxs(Le,{variant:"body1",children:[x.displayDate||x.date,x.hallName&&` (${x.hallName})`]},y)):m.jsx(Le,{variant:"body2",color:"error",children:"未选择日期"})]})}),m.jsx(Jt,{size:{xs:12,sm:6},children:m.jsxs(zr,{variant:"outlined",sx:{p:2},children:[m.jsxs(Le,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:[m.jsx(Sd,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"游客信息"]}),m.jsxs(Le,{variant:"body1",children:["总计 ",t.length," 人"]})]})})]})}),g.totalTourists>0&&m.jsxs(Me,{mb:3,children:[m.jsxs(Le,{variant:"subtitle2",gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Sd,{}),"游客分类明细"]}),m.jsx(zr,{variant:"outlined",children:m.jsx(cm,{dense:!0,children:g.breakdown.map(x=>m.jsxs($k,{onClick:()=>c(x.type,x.name,x.tourists),children:[m.jsx(ca,{children:o(x.type)}),m.jsx(Ca,{primary:x.name,secondary:`${x.count}人`}),m.jsx(pr,{label:`${x.count}人`,color:"primary",size:"small"}),m.jsx(Cp,{})]},x.type))})})]}),m.jsxs(ea,{open:a.open,onClose:f,maxWidth:"md",fullWidth:!0,children:[m.jsxs(ra,{children:[a.name," - 游客名单"]}),m.jsx(ta,{children:m.jsx(Ys,{component:zr,children:m.jsxs(Gs,{size:"small",children:[m.jsx(qs,{children:m.jsxs(Dr,{children:[m.jsx(je,{children:"序号"}),m.jsx(je,{children:"姓名"}),m.jsx(je,{children:"证件类型"}),m.jsx(je,{children:"证件号码"}),m.jsx(je,{children:"性别"}),m.jsx(je,{children:"国籍"})]})}),m.jsx(Xs,{children:a.tourists.map((x,y)=>m.jsxs(Dr,{children:[m.jsx(je,{children:y+1}),m.jsx(je,{children:x.name}),m.jsx(je,{children:x.idType}),m.jsx(je,{children:x.idNumber}),m.jsx(je,{children:x.gender}),m.jsx(je,{children:x.nationality})]},y))})]})})})]})]})})}function T2({enableAutoBooking:e=!1,onAutoBookingChange:t}){const r=n=>{t?.(n.target.checked)};return m.jsx(nn,{variant:"outlined",children:m.jsxs(an,{children:[m.jsxs(Le,{variant:"h6",gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(FE,{color:"primary"}),"自动抢票设置"]}),m.jsxs(Me,{display:"flex",alignItems:"center",gap:1,children:[m.jsx(xd,{control:m.jsx(Il,{checked:e,onChange:r}),label:"启用自动抢票"}),m.jsx(Un,{title:"自动抢票将在指定时间自动开启抢票，无需手动操作",children:m.jsx(bn,{size:"small",children:m.jsx(FE,{fontSize:"small"})})})]})]})})}function C2({enableAutoBooking:e=!1,onSubmit:t,disabled:r=!1,selectedDates:n=[],tourists:a=[]}){const s=()=>{t?.()},o=r||n.length===0;return m.jsx(Me,{display:"flex",justifyContent:"center",sx:{mt:2},children:m.jsx(Tt,{variant:"contained",size:"large",startIcon:m.jsx(TW,{}),onClick:s,disabled:o,sx:{minWidth:200},children:e?"创建自动抢票任务":"提交抢票订单"})})}class E2{calculateTouristInfo(t,r){throw new Error("calculateTouristInfo方法必须在子类中实现")}getTouristInfoStructure(){return{totalTourists:0,breakdown:[]}}}class Kre extends E2{constructor(){super(),this.categoryConfig={child:{name:"儿童票（8岁及以下）"},elderly:{name:"老年票（60岁及以上）"},student:{name:"学生票（9-22岁）"},adult:{name:"普通票（23-59岁及其他）"}}}calculateTouristInfo(t,r){if(!r||t.length===0)return this.getTouristInfoStructure();const n=[];r.child.length>0&&n.push({type:"child",name:this.categoryConfig.child.name,count:r.child.length,tourists:r.child}),r.elderly.length>0&&n.push({type:"elderly",name:this.categoryConfig.elderly.name,count:r.elderly.length,tourists:r.elderly}),r.student.length>0&&n.push({type:"student",name:this.categoryConfig.student.name,count:r.student.length,tourists:r.student});const a=[...r.adult,...r.passport,...r.unknown];return a.length>0&&n.push({type:"adult",name:this.categoryConfig.adult.name,count:a.length,tourists:a}),{totalTourists:t.length,breakdown:n}}}class Qre extends E2{constructor(){super(),this.categoryConfig={child:{name:"儿童票（7岁以下，无需购票）",price:0},student:{name:"学生票（7-22岁）",price:20},adult:{name:"普通票（22-59岁）",price:40},elderly:{name:"老年票（60岁及以上）",price:20},passport:{name:"护照（默认普通票）",price:40},unknown:{name:"其他证件",price:40}}}calculateTouristInfo(t,r){if(!r||t.length===0)return this.getTouristInfoStructure();const n=[];let a=0;if(r.child&&r.child.length>0&&n.push({type:"child",name:this.categoryConfig.child.name,count:r.child.length,price:this.categoryConfig.child.price,totalPrice:0,tourists:r.child}),r.student&&r.student.length>0){const s=this.categoryConfig.student.price,o=s*r.student.length;a+=o,n.push({type:"student",name:this.categoryConfig.student.name,count:r.student.length,price:s,totalPrice:o,tourists:r.student})}if(r.adult&&r.adult.length>0){const s=this.categoryConfig.adult.price,o=s*r.adult.length;a+=o,n.push({type:"adult",name:this.categoryConfig.adult.name,count:r.adult.length,price:s,totalPrice:o,tourists:r.adult})}if(r.elderly&&r.elderly.length>0){const s=this.categoryConfig.elderly.price,o=s*r.elderly.length;a+=o,n.push({type:"elderly",name:this.categoryConfig.elderly.name,count:r.elderly.length,price:s,totalPrice:o,tourists:r.elderly})}if(r.passport&&r.passport.length>0){const s=this.categoryConfig.passport.price,o=s*r.passport.length;a+=o,n.push({type:"passport",name:this.categoryConfig.passport.name,count:r.passport.length,price:s,totalPrice:o,tourists:r.passport})}if(r.unknown&&r.unknown.length>0){const s=this.categoryConfig.unknown.price,o=s*r.unknown.length;a+=o,n.push({type:"unknown",name:this.categoryConfig.unknown.name,count:r.unknown.length,price:s,totalPrice:o,tourists:r.unknown})}return{totalTourists:t.length,totalPrice:a,breakdown:n}}}class Zre extends E2{constructor(){super(),this.categoryConfig={all:{name:"天安门升旗观看",price:0,description:"所有游客统一处理，免费观看"}}}calculateTouristInfo(t,r){if(!t||t.length===0)return this.getTouristInfoStructure();const n=[{type:"all",name:this.categoryConfig.all.name,count:t.length,price:this.categoryConfig.all.price,totalPrice:0,description:this.categoryConfig.all.description,tourists:t}];return{totalTourists:t.length,totalPrice:0,isFreeTour:!0,productType:"flag_raising",breakdown:n}}getBookingModeDescription(t){return{11324:"团队购票模式 - 需要导游信息",11311:"散客购票模式 - 无需导游信息"}[t]||"未知购票模式"}getGroupingSuggestion(t,r=4){if(t===0)return{totalGroups:0,groupSize:r,lastGroupSize:0,suggestion:"请先添加游客信息"};const n=Math.ceil(t/r),a=t%r||r;return{totalGroups:n,groupSize:r,lastGroupSize:a,suggestion:n===1?`${t}位游客将作为1个团组提交`:`${t}位游客将分为${n}个团组，最后一组${a}人`}}}const Jre=new Kre,ene=new Qre,tne=new Zre;function rne(){const{showSuccess:e,showWarning:t}=xa(),[r,n]=Su({groupSize:5,enableAutoBooking:!1}),[a,s]=_.useState([]),[o,c]=_.useState([]),f=[{label:"首页",href:"/",icon:Ry},{label:"恭王府购票",current:!0}],d=On.useMemo(()=>HW(o,a),[o,a]),h=_.useCallback(v=>{s(v)},[]),g=_.useCallback(v=>{c(v)},[]),x=_.useCallback(v=>{n({groupSize:v})},[n]),y=_.useCallback(v=>{n({enableAutoBooking:v})},[n]),b=_.useCallback(async()=>{if(a.length===0){t("请选择购票日期和时段");return}if(o.length===0){t("请添加游客信息");return}await wd.createBatchOrders(a,o,d,r.enableAutoBooking,r.groupSize),r.enableAutoBooking?e("自动抢票订阅创建成功！"):e("订单提交成功！")},[a,o,d,r,t,e]);return m.jsxs(gy,{children:[m.jsx(Me,{mb:2,children:m.jsx(my,{separator:"›",children:f.map((v,w)=>v.current?m.jsx(Le,{color:"text.primary",children:v.label},w):m.jsx(Sy,{color:"inherit",href:v.href,sx:{textDecoration:"none"},children:v.label},w))})}),m.jsx(Le,{variant:"h4",gutterBottom:!0,sx:{mb:2},children:"恭王府购票"}),m.jsx(Me,{sx:{mb:2},children:m.jsx(XW,{selectedDates:a,onDatesChange:h})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(b2,{tourists:o,onTouristsChange:g})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(S2,{value:r.groupSize,onChange:x,touristCount:o.length})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(T2,{enableAutoBooking:r.enableAutoBooking,onAutoBookingChange:y})}),m.jsx(w2,{selectedDates:a,tourists:o,touristGroups:d,ticketCalculator:ene}),m.jsx(C2,{enableAutoBooking:r.enableAutoBooking,onSubmit:b,selectedDates:a,tourists:o})]})}function XR({value:e,onChange:t,platform:r="tamgw-team"}){const{showSuccess:n}=xa(),[a,s]=_.useState(!1),[o,c]=_.useState([]),[f,d]=_.useState(!1),[h,g]=_.useState(!1),[x,y]=_.useState("");_.useEffect(()=>{b()},[r]);const b=async()=>{s(!0);const O=(await Is.findAll({page:1,pageSize:1e3,platform:r==="all"?"":r}))?.items||[];c(O),s(!1)},v=async()=>{d(!0),await b(),d(!1)},w=async A=>{if(!A||!A.username)return!1;g(!0);const O=await Ep.getCurrentUserInfo(A.username);g(!1);const N=!!(O&&O.username);return N&&n(`账户 ${A.username} 验证通过，可以使用`),N},C=async A=>{const O=A.target.value,N=D().find(F=>F.id===O);if(N){const F=await w(N);t?.(N,F)}else t?.(null,!1)},k=A=>A?A.isAvailable&&!A.isUsing?{color:"success",text:"可用",icon:zo}:A.isAvailable?A.isUsing?{color:"warning",text:"使用中",icon:ix}:{color:"default",text:"未知",icon:ix}:{color:"error",text:"不可用",icon:A3}:{color:"default",text:"未知",icon:ix},E=A=>{const O=k(A);return m.jsx(Qr,{value:A.id,children:m.jsxs(Me,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[m.jsxs(Me,{display:"flex",alignItems:"center",gap:1,children:[m.jsx(wp,{fontSize:"small"}),m.jsxs(Me,{children:[m.jsx(Le,{variant:"body2",children:A.username}),A.tag&&m.jsx(Le,{variant:"caption",color:"text.secondary",children:A.tag})]})]}),m.jsx(pr,{size:"small",label:O.text,color:O.color,variant:"outlined",icon:On.createElement(O.icon,{fontSize:"small"})})]})},A.id)},D=()=>{if(!x.trim())return o;const A=x.toLowerCase();return o.filter(O=>O.username?.toLowerCase().includes(A)||O.tag?.toLowerCase().includes(A))},M=()=>o.filter(A=>A.isAvailable&&!A.isUsing).length;return a?m.jsx(nn,{children:m.jsx(an,{children:m.jsx(Me,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",children:m.jsx($n,{})})})}):m.jsx(nn,{children:m.jsxs(an,{children:[m.jsxs(Me,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[m.jsxs(Le,{variant:"h6",sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(wp,{color:"primary"}),"选择账户"]}),m.jsx(Me,{display:"flex",alignItems:"center",gap:1,children:m.jsx(Un,{title:"刷新账户列表",children:m.jsx(bn,{onClick:v,disabled:f,size:"small",children:m.jsx(Zo,{})})})})]}),m.jsx(An,{size:"small",placeholder:"搜索用户名或标签",value:x,onChange:A=>y(A.target.value),InputProps:{startAdornment:m.jsx(rB,{position:"start",children:m.jsx(cv,{fontSize:"small"})})},sx:{mb:2},fullWidth:!0}),m.jsxs(Mn,{severity:M()>0?"info":"warning",sx:{mb:2},children:["总共 ",o.length," 个账户，其中 ",M()," 个可用账户",x.trim()?`，过滤后显示 ${D().length} 个账户`:""]}),o.length>0?D().length>0?m.jsxs(Ra,{fullWidth:!0,children:[m.jsx(ki,{children:"请选择账户"}),m.jsxs(Oa,{value:e?.id||"",onChange:C,label:"请选择账户",disabled:f||h,children:[m.jsx(Qr,{value:"",children:m.jsx("em",{children:"请选择账户"})}),D().map(E)]})]}):m.jsx(Mn,{severity:"info",children:"没有符合筛选条件的账户，请调整筛选条件"}):m.jsx(Mn,{severity:"warning",children:"暂无可用账户，请先在账户管理中添加TAMGW账户"}),h&&m.jsxs(Me,{display:"flex",alignItems:"center",gap:1,mt:2,children:[m.jsx($n,{size:16}),m.jsx(Le,{variant:"body2",color:"text.secondary",children:"正在验证账户可用性..."})]}),e&&m.jsxs(Me,{mt:2,p:2,bgcolor:"grey.50",borderRadius:1,children:[m.jsx(Le,{variant:"subtitle2",gutterBottom:!0,sx:{fontWeight:"medium"},children:"已选择账户详情："}),m.jsxs(Me,{display:"flex",alignItems:"center",gap:2,children:[m.jsxs(Le,{variant:"body2",children:[m.jsx("strong",{children:"用户名："}),e.username]}),m.jsxs(Le,{variant:"body2",children:[m.jsx("strong",{children:"平台："}),e.platform]}),m.jsx(pr,{size:"small",label:k(e).text,color:k(e).color,variant:"filled",icon:On.createElement(k(e).icon,{fontSize:"small"})})]}),e.tag&&m.jsxs(Le,{variant:"body2",sx:{mt:1},children:[m.jsx("strong",{children:"标记："}),e.tag]}),e.orderCount>0&&m.jsxs(Le,{variant:"body2",children:[m.jsx("strong",{children:"订单数量："}),e.orderCount]}),e.lastLoginTime&&m.jsxs(Le,{variant:"body2",children:[m.jsx("strong",{children:"最后登录："}),new Date(e.lastLoginTime).toLocaleString()]})]})]})})}const au={GROUP:"11324",INDIVIDUAL:"11311"},nne={CANCELLED:"已取消",POLICE_CHECK_COMPLETE:"预约信息已审核，等待提交"};function YR(e){return nne[e]||e}function ane(e=[]){const t={adult:e,child:[],student:[],elderly:[],passport:[],unknown:[]};return{groups:e.length>0?[{type:"adult",label:"全部游客",tourists:e,count:e.length}]:[],totalCount:e.length,...t}}function ine(e){const t=[];return e?((!e.travelAgencyName||e.travelAgencyName.trim().length===0)&&t.push("请填写旅行社名称"),!e.guides||!Array.isArray(e.guides)||e.guides.length===0?t.push("请添加至少一位导游信息"):e.guides.forEach((r,n)=>{(!r.guideName||r.guideName.trim().length===0)&&t.push(`第${n+1}位导游姓名不能为空`),(!r.guideIdentify||r.guideIdentify.trim().length===0)&&t.push(`第${n+1}位导游证件号码不能为空`),(!r.guideNo||r.guideNo.trim().length===0)&&t.push(`第${n+1}位导游证号不能为空`),(!r.guideMobile||r.guideMobile.trim().length===0)&&t.push(`第${n+1}位导游手机号不能为空`)}),{isValid:t.length===0,errors:t}):(t.push("导游信息不能为空"),{isValid:!1,errors:t})}function sne(e,t,r){const n=[];(!e||e.length===0)&&n.push("请选择预约时间段");const a=ine(r);return a.isValid||n.push(...a.errors),{isValid:n.length===0,errors:n}}function one(e,t,r=4){const n=[];return(!e||e.length===0)&&n.push("请选择预约时间段"),(!t||t.length===0)&&n.push("请添加游客信息"),(r<1||r>20)&&n.push("分组人数应在1-20之间"),{isValid:n.length===0,errors:n}}function lne(e){return e===au.GROUP}function cne({value:e=au.GROUP,onChange:t}){const r=n=>{const a=n.target.value;t?.(a)};return m.jsx(Me,{sx:{mb:2},children:m.jsx(Ra,{component:"fieldset",children:m.jsxs(Vz,{value:e,onChange:r,row:!0,sx:{gap:3},children:[m.jsx(xd,{value:au.GROUP,control:m.jsx(iE,{}),label:"团队购票"}),m.jsx(xd,{value:au.INDIVIDUAL,control:m.jsx(iE,{}),label:"散客购票"})]})})})}class une{constructor(){this.baseEndpoint="/tamgw/booking",this.PRODUCT_IDS={GROUP:"11324",INDIVIDUAL:"11311"}}async getAvailableDates(t=this.PRODUCT_IDS.GROUP){return await bt.get(`${this.baseEndpoint}/dates/available`,{params:{product_id:t}})}async createBatchGroupOrders(t,r){return await bt.post(`${this.baseEndpoint}/batch-group-orders?phone_number=${t}`,r)}async createBatchIndividualOrders(t){return await bt.post(`${this.baseEndpoint}/batch-individual-orders`,t)}async checkGuideInfo(t,r){return await bt.post(`${this.baseEndpoint}/guides/check?phone_number=${t}`,r)}async getOrderStatus(t,r){return await bt.get(`${this.baseEndpoint}/orders/${r}/status`,{params:{phone_number:t}})}async getOrderList(t,r={pageIndex:1,pageSize:10}){return await bt.get(`${this.baseEndpoint}/orders`,{params:{phone_number:t,page_index:r.pageIndex,page_size:r.pageSize}})}async getPersonalOrderStatus(t,r,n){return await bt.get(`${this.baseEndpoint}/orders/${r}/${n}`,{params:{username:t}})}async cancelGroupOrder(t,r){return await bt.delete(`${this.baseEndpoint}/group-orders/${t}`,{params:{phone_number:r}})}#t(t,r,n,a=!1,s=null){const o=t.map(f=>f.isInferred?{guideMarks:n?.guideMarks||"",playDate:f.playDate,productId:f.skuId?.toString()||this.PRODUCT_IDS.GROUP,inferredType:"升旗"}:{guideMarks:n?.guideMarks||"",checkTime:f.typeNumber,playDate:f.playDate,productId:f.skuId?.toString()||this.PRODUCT_IDS.GROUP,channelId:"05",startTime:`${f.playDate} ${f.displayTimeStart}:00`,endTime:`${f.playDate} ${f.displayTimeEnd}:00`,gateNumber:f.gateNumber.toString(),submitType:1,delIds:[]}),c=r.map(f=>({name:f.name,idType:this.#e(f.idNumber),idNumber:f.idNumber,touristMobile:f.mobile||"",nationality:this.#e(f.idNumber)==="hz_card"?f.nationality||"美国":"",origin:f.origin||"",sex:this.#e(f.idNumber)==="hz_card"?"1":"",age:this.#e(f.idNumber)==="hz_card"?"32":""}));return{selectedDates:o,tourists:c,guideInfo:n?{travelAgencyName:n.travelAgencyName,agencyCheckGuides:n.guides||[]}:void 0,auto:a,exchangeOrderId:s||null}}#r(t,r,n=4,a=!1){const s=t.map(c=>c.isInferred?{playDate:c.playDate,productId:c.skuId?.toString()||this.PRODUCT_IDS.INDIVIDUAL,inferredType:"升旗"}:{checkTime:c.typeNumber,playDate:c.playDate,productId:c.skuId?.toString()||this.PRODUCT_IDS.INDIVIDUAL,channelId:"05",startTime:`${c.playDate} ${c.displayTimeStart}:00`,endTime:`${c.playDate} ${c.displayTimeEnd}:00`,gateNumber:c.gateNumber.toString()}),o=r.map(c=>({name:c.name,idType:this.#e(c.idNumber),idNumber:c.idNumber,touristMobile:c.mobile||"",nationality:this.#e(c.idNumber)==="hz_card"?c.nationality||"美国":"",origin:c.origin||"",sex:this.#e(c.idNumber)==="hz_card"?"1":"",age:this.#e(c.idNumber)==="hz_card"?"32":""}));return{selectedDates:s,tourists:o,groupSize:n,auto:a}}#e(t){return/^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(t)?"id_card":"hz_card"}async submitGroupOrder(t,r,n,a,s=!1,o=null){return await this.createBatchGroupOrders(t,this.#t(r,n,a,s,o))}async submitIndividualOrder(t,r,n=4,a=!1){return await this.createBatchIndividualOrders(this.#r(t,r,n,a))}}const Qs=new une,fne=e=>{const t=new Date(e);return new Date(t.getTime()+1440*60*1e3).toISOString().split("T")[0]};function dne({productId:e=au.GROUP,selectedAccount:t,onTimeSlotsChange:r}){const[n,a]=_.useState(!1),[s,o]=_.useState({}),[c,f]=_.useState([]),[d,h]=_.useState([]),g=()=>{const N={...s},F=Object.keys(s).sort();if(F.length>0){const P=F[F.length-1],j=fne(P),R=s[P];R&&R.timeLine.some(W=>W.type.includes("升旗"))&&(N[j]={showName:j,showFriendName:GW(j),status:"kyy",isInferred:!0,timeLine:[{type:"升旗",status:"Y",playDate:j}]})}return N},x=()=>{const N=[],F=g();return c.forEach(P=>{if(F[P]){const j=F[P],R=j.timeLine.map(W=>({...W,date:P,dateDisplay:j.showFriendName}));N.push({date:P,dateDisplay:j.showFriendName,timeSlots:R,isInferred:j.isInferred})}}),N},y=()=>{const N=g();return Object.keys(N).sort().map(F=>({date:F,info:N[F]}))};_.useEffect(()=>{f([]),h([]),o({}),b()},[e,t]);const b=async()=>{if(a(!0),!e){a(!1);return}const N=await Qs.getAvailableDates(parseInt(e,10));o(N||{});const F=g(),P=Object.keys(F).find(j=>F[j].status==="kyy");P?(f([P]),setTimeout(()=>{v(N,[P])},100)):f([]),a(!1)},v=(N,F)=>{if(F.length===0)return;const P=[];F.forEach(j=>{if(N[j]){const R=N[j],W=R.timeLine.filter(Y=>Y.type.includes("升旗")).map(Y=>({...Y,date:j,dateDisplay:R.showFriendName,type:Y.type}));P.push(...W)}}),P.forEach(j=>{d.some(R=>R.id===j.id&&R.date===j.date)||h(R=>[...R,j])}),P.length>0&&setTimeout(()=>{A(F,[...d,...P.filter(j=>!d.some(R=>R.id===j.id&&R.date===j.date))])},100)},w=N=>c.includes(N),C=N=>{const F=w(N);let P,j;F?(P=c.filter(R=>R!==N),j=E(N)):(P=[...c,N],j=d),f(P),F?A(P,j):setTimeout(()=>{k(N)},100)},k=N=>{if(!s[N])return;const F=s[N],P=F.timeLine.filter(j=>j.type.includes("升旗")).map(j=>({...j,date:N,dateDisplay:F.showFriendName,type:"升旗"}));P.forEach(j=>{d.some(R=>R.id===j.id&&R.date===j.date)||h(R=>[...R,j])}),P.length>0&&setTimeout(()=>{A(c,[...d,...P.filter(j=>!d.some(R=>R.id===j.id&&R.date===j.date))])},100)},E=N=>{const F=d.filter(P=>P.date!==N);return h(F),F},D=N=>N.date?d.some(F=>F.id===N.id&&F.date===N.date):d.some(F=>F.id===N.id),M=N=>{const F=D(N);let P;if(F)P=d.filter(j=>!(j.id===N.id&&j.date===N.date));else{const R=g()[N.date],W={...N,isInferred:R?.isInferred||!1};P=[...d,W]}h(P),A(c,P)},A=(N,F)=>{r?.({selectedDates:N,selectedTimeSlots:F})},O=()=>{f([]),h([]),o({}),b()};return m.jsx(nn,{children:m.jsxs(an,{children:[m.jsxs(Me,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,children:[m.jsx(Le,{variant:"h6",children:"选择预约参观日期和时段"}),m.jsx(Un,{title:"刷新日期数据",children:m.jsx(bn,{onClick:O,disabled:n,size:"small",color:"primary",children:m.jsx(Zo,{})})})]}),n&&m.jsx(Uk,{color:"primary",sx:{mt:1}}),!n&&m.jsxs(Me,{children:[m.jsxs(Me,{sx:{mt:2},children:[m.jsx(Le,{variant:"subtitle1",gutterBottom:!0,children:"选择预约参观日期"}),m.jsx(Jt,{container:!0,spacing:1,children:y().map(N=>{const F=w(N.date),P=N.info.status==="bky",j=N.info.isInferred;return m.jsx(Jt,{size:"auto",children:m.jsx(nn,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"visible",border:F?"2px solid":"1px solid",borderColor:F?"success.main":j?"info.main":P?"grey.400":"grey.300",bgcolor:j?F?"rgba(33, 150, 243, 0.1)":"rgba(33, 150, 243, 0.05)":P?"grey.100":"background.paper",opacity:P?.5:1,boxShadow:F?"0 8px 24px rgba(76, 175, 80, 0.15)":"none",transform:F?"translateY(-4px) scale(1.02)":"translateY(0) scale(1)","&:hover":P?{}:{transform:F?"translateY(-6px) scale(1.03)":"translateY(-2px) scale(1.01)",boxShadow:F?"0 12px 32px rgba(76, 175, 80, 0.2)":"0 4px 12px rgba(0, 0, 0, 0.1)",borderColor:F?"success.main":j?"info.light":"primary.light"},"&::before":F?{content:'""',position:"absolute",top:-2,left:-2,right:-2,bottom:-2,background:"linear-gradient(45deg, #4CAF50, #81C784)",borderRadius:1,zIndex:-1,opacity:.1}:{}},onClick:()=>C(N.date),children:m.jsxs(an,{sx:{textAlign:"center",p:1,minHeight:"80px",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[m.jsxs(Me,{children:[m.jsxs(Le,{variant:"caption",display:"block",children:[N.info.showFriendName.split("年")[0],"年"]}),m.jsx(Le,{variant:"h6",sx:{fontWeight:"bold"},children:N.info.showFriendName.split("年")[1]})]}),m.jsx(Me,{children:m.jsx(Le,{variant:"caption",display:"block",sx:{color:j?"info.main":N.info.status==="kyy"?"success.main":"error.main"},children:j?"推断可约":N.info.status==="kyy"?"可预约":"不可约"})}),F&&m.jsx(Me,{sx:{position:"absolute",top:-8,right:-8,width:32,height:32,bgcolor:"success.main",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(76, 175, 80, 0.4)",border:"2px solid white",zIndex:2},children:m.jsx(zo,{sx:{color:"white",fontSize:18}})})]})})},N.date)})})]}),m.jsx(Qa,{sx:{my:3}}),m.jsxs(Me,{children:[m.jsx(Le,{variant:"subtitle1",gutterBottom:!0,children:"选择预约参观时段"}),c.length===0&&m.jsxs(Me,{sx:{textAlign:"center",py:8},children:[m.jsx(YH,{sx:{fontSize:64,color:"grey.400",mb:2}}),m.jsx(Le,{variant:"h6",color:"text.secondary",gutterBottom:!0,children:"请先选择参观日期"}),m.jsx(Le,{variant:"body2",color:"text.secondary",children:"选择日期后将显示可预约的时间段"})]}),c.length>0&&m.jsx(Me,{children:x().map(N=>m.jsxs(Me,{sx:{mb:4},children:[m.jsxs(Le,{variant:"subtitle1",sx:{mb:2,color:N.isInferred?"info.main":"primary.main",display:"flex",alignItems:"center"},children:[m.jsx(t0,{color:"primary",sx:{mr:1}}),N.dateDisplay,N.isInferred&&m.jsx(pr,{label:"推断",color:"info",size:"small",variant:"outlined",sx:{ml:1}})]}),m.jsx(Jt,{container:!0,spacing:2,children:N.timeSlots.map(F=>{const P=D(F),j=F.status==="Y";return m.jsx(Jt,{size:"auto",children:m.jsx(nn,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"visible",border:P?"2px solid":"1px solid",borderColor:P?"success.main":N.isInferred?"info.main":"grey.300",bgcolor:P?N.isInferred?"rgba(33, 150, 243, 0.1)":"rgba(76, 175, 80, 0.1)":N.isInferred?"rgba(33, 150, 243, 0.05)":"background.paper",opacity:j?1:.6,boxShadow:P?"0 8px 24px rgba(76, 175, 80, 0.15)":"none",transform:P?"translateY(-2px) scale(1.01)":"translateY(0) scale(1)","&:hover":j?{transform:P?"translateY(-3px) scale(1.02)":"translateY(-1px) scale(1.005)",boxShadow:P?"0 12px 32px rgba(76, 175, 80, 0.2)":"0 4px 12px rgba(0, 0, 0, 0.1)",borderColor:P?"success.main":N.isInferred?"info.light":"primary.light"}:{},"&::before":P?{content:'""',position:"absolute",top:-2,left:-2,right:-2,bottom:-2,background:"linear-gradient(45deg, #4CAF50, #81C784)",borderRadius:1,zIndex:-1,opacity:.1}:{}},onClick:()=>M(F),children:m.jsxs(an,{sx:{textAlign:"center",p:1},children:[m.jsx(Le,{variant:"caption",display:"block",children:F.type}),m.jsx(Le,{variant:"caption",display:"block",sx:{color:N.isInferred?"info.main":j?"success.main":"error.main"},children:N.isInferred?"推断可约":j?"可预约":"不可约"}),!N.isInferred&&m.jsxs(Le,{variant:"body2",sx:{mt:1},children:[F.displayTimeStart,"-",F.displayTimeEnd]}),P&&m.jsx(Me,{sx:{position:"absolute",top:-8,right:-8,width:28,height:28,bgcolor:"success.main",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(76, 175, 80, 0.4)",border:"2px solid white",zIndex:2},children:m.jsx(zo,{sx:{color:"white",fontSize:16}})})]})})},F.id)})})]},N.date))})]})]})]})})}const ko=()=>({guideName:"",cardType:"id_card",guideIdentify:"",guideNo:"",guideMobile:"",masterStatus:1}),X4=e=>{if(!e||!e.properties)return null;const t=e.properties;if(!t.travel_agency_name||!t.agency_check_guides)return null;const r=t.agency_check_guides.map(n=>({guideName:n.guide_name,guideIdentify:n.guide_identify,guideNo:n.guide_no,guideMobile:n.guide_mobile,masterStatus:n.master_status||1,cardType:n.card_type||"id_card"}));return{username:e.username,account:e,travelAgencyName:t.travel_agency_name,guides:r,guideMarks:"",updatedAt:new Date().toISOString()}};function hne({selectedAccount:e,onGuideInfoChange:t,initialGuide:r=null,isEditMode:n=!1}){const{showSuccess:a,showWarning:s}=xa(),[o,c]=_.useState(null),[f,d]=_.useState(!1),[h,g]=_.useState(!1),[x,y]=_.useState(""),[b,v]=_.useState([ko()]),w=()=>{if(n&&r)v([{...r}]),d(!0);else if(o)if(o.username===e?.username)y(o.travelAgencyName),v(o.guides.map(R=>({...R}))),d(!1);else if(c(null),t?.(null,!1),e){const R=X4(e);R?(c(R),y(R.travelAgencyName),v(R.guides.map(W=>({...W}))),d(!1),t?.(R,!0)):(y(""),v([ko()]),d(!0))}else y(""),v([ko()]),d(!0);else if(e){const j=X4(e);j?(c(j),y(j.travelAgencyName),v(j.guides.map(R=>({...R}))),d(!1),t?.(j,!0)):(y(""),v([ko()]),d(!0))}else y(""),v([ko()]),d(!0)};_.useEffect(()=>{w()},[e,n,r]);const C=()=>{n?(w(),d(!1)):(y(""),v([ko()]))},k=()=>{v(j=>[...j,ko()])},E=j=>{b.length>1&&v(R=>R.filter((W,Y)=>Y!==j))},D=(j,R,W)=>{v(Y=>Y.map((Z,B)=>B===j?{...Z,[R]:W}:Z))},M=()=>{o&&(y(o.travelAgencyName),v(o.guides.map(j=>({...j}))),d(!0))},A=()=>{y(""),v([ko()]),d(!0)},O=()=>{d(!1)},N=()=>{e&&o&&window.confirm("确定要删除此导游记录吗？此操作无法撤销。")&&(c(null),C(),d(!0),t?.(null,!1),a("导游记录已删除"))},F=async()=>{if(!e){s("请先选择账户");return}if(!n&&!x){s("请输入旅行社名称");return}if(!b||b.length===0){s("请至少添加一位导游信息");return}for(const R of b)if(!R.guideName||!R.guideIdentify||!R.guideNo||!R.guideMobile){s("请填写完整的导游信息");return}g(!0);const j={travelAgencyName:x,agencyCheckGuides:b.map(R=>({...R,masterStatus:R.masterStatus??1}))};try{const R=await Qs.checkGuideInfo(e.username,j),W={username:e.username,account:e,travelAgencyName:x,guides:b,guideMarks:R.guideMarks,updatedAt:new Date().toISOString()};c(W),d(!1),t?.(W,!0),a("导游信息验证成功！")}finally{g(!1)}},P=f||!o;return m.jsxs(Me,{children:[o&&m.jsx(nn,{sx:{mb:2},variant:"outlined",children:m.jsxs(an,{children:[m.jsxs(Le,{variant:"subtitle1",sx:{display:"flex",alignItems:"center",mb:2},children:[m.jsx(zo,{color:"success",sx:{mr:1}}),"已保存的导游信息"]}),m.jsxs(Me,{sx:{mb:2},children:[m.jsx("strong",{children:"旅行社名称："}),o.travelAgencyName]}),m.jsxs(Me,{sx:{mb:2},children:[m.jsx("strong",{children:"导游数量："}),o.guides.length," 人"]}),o.guideMarks&&m.jsxs(Me,{sx:{mb:2},children:[m.jsx("strong",{children:"导游标识："}),m.jsx(pr,{color:"primary",size:"small",label:o.guideMarks,sx:{ml:1}})]}),m.jsxs(Me,{sx:{mb:2},children:[m.jsx("strong",{children:"更新时间："}),uv(o.updatedAt)]}),m.jsx(Me,{sx:{mt:2},children:o.guides.map((j,R)=>m.jsxs(zx,{variant:"outlined",children:[m.jsx(Hx,{expandIcon:m.jsx(Cp,{}),children:m.jsx(Le,{children:`导游 ${R+1}: ${j.guideName}`})}),m.jsx(Ux,{children:m.jsxs(Jt,{container:!0,spacing:1,children:[m.jsxs(Jt,{size:6,children:[m.jsx("strong",{children:"姓名："}),j.guideName]}),m.jsxs(Jt,{size:6,children:[m.jsx("strong",{children:"身份证号码："}),j.guideIdentify]}),m.jsxs(Jt,{size:6,children:[m.jsx("strong",{children:"导游证号："}),j.guideNo]}),m.jsxs(Jt,{size:6,children:[m.jsx("strong",{children:"手机号："}),j.guideMobile]}),m.jsxs(Jt,{size:6,children:[m.jsx("strong",{children:"主要状态："}),j.masterStatus]})]})})]},R))}),m.jsxs(Me,{sx:{display:"flex",gap:1,mt:2,flexWrap:"wrap"},children:[m.jsx(Tt,{color:"primary",startIcon:m.jsx(k3,{}),size:"small",variant:"outlined",onClick:M,children:"编辑此记录"}),m.jsx(Tt,{color:"secondary",startIcon:m.jsx(ME,{}),size:"small",variant:"outlined",onClick:A,children:"添加新记录"}),m.jsx(Tt,{color:"error",startIcon:m.jsx(Tp,{}),size:"small",variant:"outlined",onClick:N,children:"删除记录"})]})]})}),P&&m.jsxs(nn,{children:[m.jsxs(an,{children:[m.jsxs(Le,{variant:"h6",sx:{display:"flex",alignItems:"center",mb:2},children:[m.jsx(Oy,{sx:{mr:1}}),n?"编辑导游信息":"填写导游信息"]}),m.jsxs(Me,{component:"form",onSubmit:j=>{j.preventDefault(),F()},children:[!n&&m.jsx(Jt,{container:!0,sx:{mb:3},children:m.jsx(Jt,{size:12,children:m.jsx(An,{fullWidth:!0,label:"旅行社名称",value:x,onChange:j=>y(j.target.value),placeholder:"请输入旅行社名称",required:!0,variant:"outlined"})})}),b.map((j,R)=>m.jsxs(Me,{children:[!n&&R>0&&m.jsx(Qa,{sx:{my:2}}),!n&&b.length>1&&m.jsxs(Me,{sx:{display:"flex",alignItems:"center",mb:2},children:[m.jsx(pr,{size:"small",color:"primary",label:R+1,sx:{mr:1}}),m.jsxs(Le,{variant:"subtitle1",sx:{fontWeight:"medium"},children:["导游信息 ",R+1]})]}),m.jsxs(Jt,{container:!0,spacing:2,sx:{mb:2},children:[m.jsx(Jt,{size:{xs:12,md:6},children:m.jsx(An,{fullWidth:!0,label:"导游姓名",value:j.guideName,onChange:W=>D(R,"guideName",W.target.value),placeholder:"请输入导游姓名",required:!0,variant:"outlined"})}),m.jsx(Jt,{size:{xs:12,md:6},children:m.jsx(An,{fullWidth:!0,label:"导游手机号码",value:j.guideMobile,onChange:W=>D(R,"guideMobile",W.target.value),placeholder:"请输入导游手机号码",required:!0,variant:"outlined"})}),m.jsx(Jt,{size:{xs:12,md:6},children:m.jsx(An,{fullWidth:!0,label:"身份证号码",value:j.guideIdentify,onChange:W=>D(R,"guideIdentify",W.target.value),placeholder:"请输入身份证号码",required:!0,variant:"outlined"})}),m.jsx(Jt,{size:{xs:12,md:6},children:m.jsx(An,{fullWidth:!0,label:"导游证号码",value:j.guideNo,onChange:W=>D(R,"guideNo",W.target.value),placeholder:"请输入导游证号码",required:!0,variant:"outlined"})})]}),!n&&m.jsx(Me,{sx:{display:"flex",justifyContent:"flex-end",mt:1},children:m.jsx(Tt,{color:"error",disabled:b.length===1,startIcon:m.jsx(Tp,{}),size:"small",variant:"outlined",onClick:()=>E(R),children:"删除此导游"})})]},R))]})]}),m.jsx(QL,{sx:{px:0,pt:2},children:m.jsxs(Me,{sx:{display:"flex",flexWrap:"wrap",gap:2,width:"100%"},children:[!n&&m.jsx(Tt,{color:"primary",startIcon:m.jsx(ME,{}),variant:"outlined",onClick:k,children:"添加导游"}),o&&m.jsx(Tt,{color:"inherit",startIcon:m.jsx(qH,{}),variant:"outlined",onClick:O,children:"收回表单"}),m.jsx(Me,{sx:{flexGrow:1}}),m.jsx(Tt,{color:"inherit",startIcon:m.jsx(Zo,{}),variant:"text",onClick:C,children:n?"取消编辑":"重置表单"}),m.jsx(Tt,{color:"success",disabled:!e||h,startIcon:h?m.jsx($n,{size:16}):m.jsx(zo,{}),type:"submit",variant:"contained",onClick:F,children:h?"提交中...":n?"保存修改":"检查并保存导游信息"})]})})]})]})}const pne=({orders:e=[],selectedOrder:t="",onOrderSelect:r,loading:n=!1,getOrderStatusText:a=o=>o,canRefund:s=()=>!0})=>{const o=c=>{const f=c.target.value;r&&r(f)};return n?m.jsx(Le,{children:"加载中..."}):e.length===0?m.jsx(Le,{children:"暂无订单数据"}):m.jsx(Me,{children:m.jsxs(Ra,{fullWidth:!0,sx:{mb:2},children:[m.jsx(ki,{children:"选择订单"}),m.jsx(Oa,{value:t,onChange:o,label:"选择订单",children:e.map(c=>m.jsx(Qr,{value:c.id,disabled:!s(c),children:m.jsxs(Me,{sx:{width:"100%"},children:[m.jsxs(Le,{variant:"body2",fontWeight:"bold",children:["订单ID: ",c.id]}),m.jsxs(Le,{variant:"caption",color:"textSecondary",children:["游玩日期: ",c.playDate," | 创建时间: ",fv(c.dateCreated)," | 状态: ",a(c.orderStatus),!s(c)&&" (不可退票)"]})]})},c.id))})]})})},mne=({selectedAccount:e,onChange:t})=>{const[r,n]=_.useState(!1),[a,s]=_.useState([]),[o,c]=_.useState(!1),[f,d]=_.useState(""),{showError:h}=xa();_.useEffect(()=>{n(!1),s([]),d(""),t&&t("")},[e?.username,t]);const g=async()=>{if(!e?.username){h("请先选择账户");return}c(!0);const b=await Qs.getOrderList(e.username);s(b.data?.list||[]),c(!1)},x=b=>{const v=b.target.checked;n(v),v?g():(s([]),d(""),t&&t(""))},y=b=>{d(b),t&&t(b)};return m.jsx(nn,{children:m.jsxs(an,{children:[m.jsx(Le,{variant:"h6",gutterBottom:!0,children:"换票"}),m.jsx(xd,{control:m.jsx(Il,{checked:r,onChange:x,disabled:!e}),label:"选择更换的订单号"}),r&&m.jsxs(Me,{sx:{mt:2},children:[m.jsx(Le,{variant:"subtitle1",gutterBottom:!0,children:"订单列表"}),m.jsx(pne,{orders:a,selectedOrder:f,onOrderSelect:y,loading:o,getOrderStatusText:YR})]})]})})};function gne(){const{showSuccess:e,showWarning:t,showError:r}=xa(),[n,a]=Su({productId:au.GROUP,groupSize:4,enableAutoBooking:!1}),[s,o]=_.useState(null),[c,f]=_.useState(null),[d,h]=_.useState(!1),[g,x]=_.useState([]),[y,b]=_.useState([]),[v,w]=_.useState(null),C=[{label:"首页",href:"/",icon:Ry},{label:"天安门升旗购票",current:!0}],k=lne(n.productId),E=On.useMemo(()=>ane(y),[y]),D=_.useCallback(P=>{o(null),f(null),h(!1),x([]),a({productId:P})},[a]),M=_.useCallback(P=>{o(P),f(null),h(!1)},[]),A=_.useCallback((P,j)=>{f(P),h(j)},[]),O=_.useCallback(P=>{x(P.selectedTimeSlots||[])},[]),N=_.useCallback(P=>{w(P),P&&b([])},[]),F=_.useCallback(async()=>{if(k){const P=sne(g,y,c);if(!P.isValid){t(P.errors.join(`
`));return}if(!s){t("请选择账户");return}if(!d){t("请先验证导游信息");return}await Qs.submitGroupOrder(s.username,g,y,c,n.enableAutoBooking,v),e(n.enableAutoBooking?"团队自动抢票订阅创建成功！":"团队预约提交成功！")}else{const P=one(g,y,n.groupSize);if(!P.isValid){t(P.errors.join(`
`));return}await Qs.submitIndividualOrder(g,y,n.groupSize,n.enableAutoBooking),e(n.enableAutoBooking?"散客自动抢票订阅创建成功！":"散客预约提交成功！")}},[k,g,y,c,s,d,n,e,t,r]);return m.jsxs(gy,{children:[m.jsx(Me,{mb:2,children:m.jsx(my,{separator:"›",children:C.map((P,j)=>P.current?m.jsx(Le,{color:"text.primary",children:P.label},j):m.jsx(Sy,{color:"inherit",href:P.href,sx:{textDecoration:"none"},children:P.label},j))})}),m.jsx(Le,{variant:"h4",gutterBottom:!0,sx:{mb:2},children:"天安门升旗购票"}),m.jsx(Me,{sx:{mb:2},children:m.jsx(cne,{value:n.productId,onChange:D})}),k&&m.jsx(Me,{sx:{mb:2},children:m.jsx(XR,{value:s,onChange:M,platform:"tamgw-team"})}),k&&s&&m.jsx(Me,{sx:{mb:2},children:m.jsx(hne,{selectedAccount:s,onGuideInfoChange:A})}),k&&m.jsx(Me,{sx:{mb:2},children:m.jsx(mne,{selectedAccount:s,onChange:N})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(dne,{productId:n.productId,selectedAccount:s,onTimeSlotsChange:O})}),!k&&m.jsx(Me,{sx:{mb:2},children:m.jsx(S2,{value:n.groupSize,onChange:P=>a({groupSize:P}),touristCount:y.length})}),!v&&m.jsx(Me,{sx:{mb:2},children:m.jsx(b2,{tourists:y,onTouristsChange:b})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(T2,{enableAutoBooking:n.enableAutoBooking,onAutoBookingChange:P=>a({enableAutoBooking:P})})}),m.jsx(w2,{selectedDates:g,tourists:y,touristGroups:E,ticketCalculator:tne,productId:n.productId,groupSize:k?void 0:n.groupSize}),m.jsx(C2,{enableAutoBooking:n.enableAutoBooking,onSubmit:F,selectedDates:g,tourists:v?[]:y,disabled:k&&(!s||!d)})]})}class xne{constructor(){this.baseEndpoint="/cstm/booking"}#t(t,r){return r?r.child.some(n=>n.idNumber===t.idNumber)?37:r.elderly.some(n=>n.idNumber===t.idNumber)?38:r.student.some(n=>n.idNumber===t.idNumber)?36:(r.adult.some(n=>n.idNumber===t.idNumber),35):35}async getAvailableDates(){return await bt.get(`${this.baseEndpoint}/dates/available`)}async createBatchOrders(t,r,n,a=!1,s=!1,o=5){const c=this.#r(t,r,n,a,s,o);return await bt.post(`${this.baseEndpoint}/batch-orders`,c)}#r(t,r,n,a=!1,s=!1,o=5){if(t.length===0)throw new Error("请选择购票日期");if(r.length===0)throw new Error("请添加游客信息");const f=t[0].date,d=`${f} 00:00:00`,h=r.map(y=>{const b=this.#t(y,n),v=$W(y.idType),w=n?n.child.some(C=>C.idNumber===y.idNumber):!1;return{ticketPriceId:b,idNumber:y.idNumber,idType:v,name:y.name,useDate:d,isChildFreeTicket:w?1:0}}),g=n?n.child.length:0,x={ticketNum:r.length,date:f,childTicketNum:g,tourists:h,isCandidateOrder:a,groupSize:o,auto:s};if(s){const y=t[0],b=y.hallId?y.hallId:1;return{...x,selectedDate:{date:y.date,hallId:b}}}return x}}const qR=new xne;function vne({onDatesChange:e}){const t=O=>({"-10":"未放票","-1":"暂停售票",0:"闭馆",2:"暂无余票",3:"售罄",4:"正常售票"})[O]||"未知状态",r=O=>({"-10":"default","-1":"grey",0:"grey",2:"error",3:"warning",4:"success"})[O]||"grey",n=O=>O===-1?"票量充足":`余票: ${O}`,a=O=>O===1?"展厅":"影院",s=O=>O===1?"blue":"purple",[o,c]=_.useState(!1),[f,d]=_.useState([]),[h,g]=_.useState(""),[x,y]=_.useState(null),[b,v]=_.useState(!1),w=f.find(O=>O.currentDate===h)||null;_.useEffect(()=>{C()},[]);const C=async()=>{c(!0);const O=await qR.getAvailableDates(),N=Array.isArray(O)?O:[];d(N),c(!1)},k=async()=>{v(!0),await C(),v(!1)},E=O=>{g(O.currentDate),y(null),e?.([]),M(O)},D=O=>{x===O.hallId?(y(null),M(w)):(y(O.hallId),A(O.hallId))},M=O=>{if(!h)return;const N={id:`${h}-default`,date:h,currentDate:h,displayDate:Jc(h),weekday:jE(h),amCount:O.ticketPool===-1?999:O.ticketPool,pmCount:void 0,available:O.status===4,hallId:1,hallName:"主展厅",hallType:1,status:O.status,ticketPool:O.ticketPool};e?.([N])},A=O=>{if(!h||!w)return;const N=w.hallTicketPoolVOS?.find(P=>P.hallId===O);if(!N)return;const F={id:`${h}-${O}`,date:h,currentDate:h,displayDate:Jc(h),weekday:jE(h),amCount:N.ticketPool===-1?999:N.ticketPool,pmCount:void 0,available:N.status===4,hallId:N.hallId,hallName:N.name,hallType:N.hallType,status:N.status,ticketPool:N.ticketPool};e?.([F])};return o?m.jsx(nn,{children:m.jsx(an,{children:m.jsx(Me,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",children:m.jsx($n,{})})})}):m.jsx(nn,{children:m.jsxs(an,{children:[m.jsxs(Me,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[m.jsxs(Le,{variant:"h6",sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(t0,{color:"primary"}),"选择参观日期"]}),m.jsx(Me,{display:"flex",alignItems:"center",gap:1,children:m.jsx(Un,{title:"刷新日期数据",children:m.jsx(bn,{onClick:k,disabled:b,size:"small",children:m.jsx(Zo,{})})})})]}),f.length>0?m.jsx(Me,{mb:3,children:m.jsx(Jt,{container:!0,spacing:1,children:f.map(O=>m.jsx(Jt,{size:{xs:12,sm:6,md:4},children:m.jsx(nn,{variant:h===O.currentDate?"elevation":"outlined",sx:{cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"visible",border:h===O.currentDate?"2px solid":"1px solid",borderColor:h===O.currentDate?"success.main":"grey.300",bgcolor:(h===O.currentDate,"background.paper"),boxShadow:h===O.currentDate?"0 8px 24px rgba(76, 175, 80, 0.15)":"none",transform:h===O.currentDate?"translateY(-4px) scale(1.02)":"translateY(0) scale(1)","&:hover":{transform:h===O.currentDate?"translateY(-6px) scale(1.03)":"translateY(-2px)",boxShadow:h===O.currentDate?"0 12px 32px rgba(76, 175, 80, 0.2)":2},"&::before":h===O.currentDate?{content:'""',position:"absolute",top:-2,left:-2,right:-2,bottom:-2,background:"linear-gradient(45deg, #4CAF50, #81C784)",borderRadius:1,zIndex:-1,opacity:.1}:{}},onClick:()=>E(O),children:m.jsxs(an,{sx:{textAlign:"center",py:2},children:[m.jsx(Le,{variant:"h6",gutterBottom:!0,sx:{color:h===O.currentDate?"success.main":"text.primary",fontWeight:h===O.currentDate?600:500,transition:"color 0.3s ease"},children:Jc(O.currentDate)}),m.jsxs(Me,{mb:1,children:[m.jsx(pr,{label:t(O.status),color:r(O.status),size:"small",variant:(h===O.currentDate,"filled"),sx:{fontWeight:h===O.currentDate?600:400,transition:"all 0.3s ease"}}),O.status===3&&m.jsx(pr,{label:"可候补",color:"info",size:"small",variant:"outlined",sx:{ml:.5,fontSize:"0.7rem",height:"20px"}})]}),O.ticketPool!==0&&m.jsx(Le,{variant:"caption",color:"success.main",sx:{fontWeight:"medium"},children:n(O.ticketPool)}),h===O.currentDate&&m.jsx(Me,{sx:{position:"absolute",top:-8,right:-8,width:32,height:32,bgcolor:"success.main",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(76, 175, 80, 0.4)",border:"2px solid white",zIndex:2},children:m.jsx(zo,{sx:{color:"white",fontSize:18}})})]})})},O.currentDate))})}):m.jsx(Mn,{severity:"warning",sx:{mt:2},children:"暂无可预订日期"}),w&&w.hallTicketPoolVOS&&m.jsxs(m.Fragment,{children:[m.jsx(Qa,{sx:{my:3}}),m.jsx(Le,{variant:"subtitle1",gutterBottom:!0,sx:{fontWeight:"medium"},children:"可选场馆"}),m.jsx(Jt,{container:!0,spacing:1,children:w.hallTicketPoolVOS.map(O=>m.jsx(Jt,{size:{xs:12,sm:6,md:4},children:m.jsx(nn,{variant:x===O.hallId?"elevation":"outlined",sx:{cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"visible",border:x===O.hallId?"2px solid":"1px solid",borderColor:x===O.hallId?"success.main":"grey.300",bgcolor:(x===O.hallId,"background.paper"),boxShadow:x===O.hallId?"0 8px 24px rgba(76, 175, 80, 0.15)":"none",transform:x===O.hallId?"translateY(-4px) scale(1.02)":"translateY(0) scale(1)","&:hover":{transform:x===O.hallId?"translateY(-6px) scale(1.03)":"translateY(-1px)",boxShadow:x===O.hallId?"0 12px 32px rgba(76, 175, 80, 0.2)":1},"&::before":x===O.hallId?{content:'""',position:"absolute",top:-2,left:-2,right:-2,bottom:-2,background:"linear-gradient(45deg, #4CAF50, #81C784)",borderRadius:1,zIndex:-1,opacity:.1}:{}},onClick:()=>D(O),children:m.jsxs(an,{sx:{textAlign:"center",py:2},children:[m.jsx(Le,{variant:"h6",gutterBottom:!0,sx:{color:x===O.hallId?"success.main":"text.primary",fontWeight:x===O.hallId?600:500,transition:"color 0.3s ease"},children:O.name}),m.jsxs(Me,{mb:1,children:[m.jsx(pr,{label:a(O.hallType),color:s(O.hallType),size:"small",variant:x===O.hallId?"filled":"outlined",sx:{mr:1,fontWeight:x===O.hallId?600:400,transition:"all 0.3s ease"}}),m.jsx(pr,{label:t(O.status),color:r(O.status),size:"small",variant:(x===O.hallId,"filled"),sx:{fontWeight:x===O.hallId?600:400,transition:"all 0.3s ease"}}),O.status===3&&m.jsx(pr,{label:"可候补",color:"info",size:"small",variant:"outlined",sx:{ml:.5,fontSize:"0.7rem",height:"20px"}})]}),O.ticketPool!==0&&m.jsx(Le,{variant:"caption",color:"success.main",sx:{fontWeight:"medium"},children:n(O.ticketPool)}),x===O.hallId&&m.jsx(Me,{sx:{position:"absolute",top:-8,right:-8,width:32,height:32,bgcolor:"success.main",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(76, 175, 80, 0.4)",border:"2px solid white",zIndex:2},children:m.jsx(zo,{sx:{color:"white",fontSize:18}})})]})})},O.hallId))})]})]})})}function yne({isCandidateOrder:e=!1,onCandidateOrderChange:t}){const r=n=>{t?.(n.target.checked)};return m.jsx(nn,{variant:"outlined",children:m.jsxs(an,{children:[m.jsxs(Le,{variant:"h6",gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(_3,{color:"warning"}),"候选票设置"]}),m.jsxs(Me,{display:"flex",alignItems:"center",gap:1,children:[m.jsx(xd,{control:m.jsx(Il,{checked:e,onChange:r}),label:"是否为候选票"}),m.jsx(Un,{title:"候选票是指当正常票售完时，可能有机会获得的备选票",children:m.jsx(bn,{size:"small",children:m.jsx(O3,{})})})]})]})})}function bne(){const{showSuccess:e,showWarning:t}=xa(),[r,n]=Su({groupSize:5,isCandidateOrder:!1,enableAutoBooking:!1}),[a,s]=_.useState([]),[o,c]=_.useState([]),f=[{label:"首页",href:"/",icon:Ry},{label:"北京科技馆购票",current:!0}],d=On.useMemo(()=>j3(o,a),[o,a]),h=_.useCallback(w=>{s(w)},[]),g=_.useCallback(w=>{c(w)},[]),x=_.useCallback(w=>{n({groupSize:w})},[n]),y=_.useCallback(w=>{n({isCandidateOrder:w})},[n]),b=_.useCallback(w=>{n({enableAutoBooking:w})},[n]),v=_.useCallback(async()=>{if(a.length===0){t("请选择订票日期");return}if(o.length===0){t("请添加游客信息");return}await qR.createBatchOrders(a,o,d,r.isCandidateOrder,r.enableAutoBooking,r.groupSize),r.enableAutoBooking?e("自动抢票订阅创建成功！"):e("订单提交成功！")},[a,o,d,r,t,e]);return m.jsxs(gy,{children:[m.jsx(Me,{mb:2,children:m.jsx(my,{separator:"›",children:f.map((w,C)=>w.current?m.jsx(Le,{color:"text.primary",children:w.label},C):m.jsx(Sy,{color:"inherit",href:w.href,sx:{textDecoration:"none"},children:w.label},C))})}),m.jsx(Le,{variant:"h4",gutterBottom:!0,sx:{mb:2},children:"北京科技馆购票"}),m.jsx(Me,{sx:{mb:2},children:m.jsx(vne,{selectedDates:a,onDatesChange:h})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(b2,{tourists:o,onTouristsChange:g})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(S2,{value:r.groupSize,onChange:x,touristCount:o.length})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(yne,{isCandidateOrder:r.isCandidateOrder,onCandidateOrderChange:y})}),m.jsx(Me,{sx:{mb:2},children:m.jsx(T2,{enableAutoBooking:r.enableAutoBooking,onAutoBookingChange:b})}),m.jsx(w2,{selectedDates:a,tourists:o,touristGroups:d,ticketCalculator:Jre}),m.jsx(C2,{enableAutoBooking:r.enableAutoBooking,onSubmit:v,selectedDates:a,tourists:o})]})}function Sne({open:e,onClose:t,title:r="查询结果",data:n}){return m.jsxs(ea,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,children:[m.jsx(ra,{children:r}),m.jsx(ta,{children:n?m.jsxs(zr,{elevation:1,sx:{p:2},children:[m.jsx(Le,{variant:"subtitle2",gutterBottom:!0,children:"查询结果："}),m.jsx(Me,{component:"pre",sx:{fontFamily:"monospace",fontSize:"0.875rem",backgroundColor:"grey.100",p:2,borderRadius:1,overflow:"auto",maxHeight:400,whiteSpace:"pre-wrap"},children:JSON.stringify(n,null,2)})]}):m.jsx(Le,{variant:"body2",color:"text.secondary",children:"暂无数据显示"})}),m.jsx(pa,{children:m.jsx(Tt,{onClick:t,children:"关闭"})})]})}class wne{constructor(){this.baseEndpoint="/order-records"}async findAll({page:t=1,pageSize:r=10,status:n,platform:a,visitDate:s,keyword:o}){const c=new URLSearchParams;return c.append("page",t.toString()),c.append("size",r.toString()),n&&c.append("status",n),a&&c.append("platform",a),s&&c.append("visitDate",s),o&&c.append("keyword",o),await bt.get(`${this.baseEndpoint}?${c.toString()}`)}async updateBatchStatus(t,r){return await bt.put(`${this.baseEndpoint}/status`,{ids:t,status:r})}async batchDelete(t){const r=t.map(n=>n.toString());return await bt.delete(`${this.baseEndpoint}/batch`,{data:r})}async deleteAll(){return await this.batchDelete(["all"])}}const Sx=new wne,Tne=e=>{if(typeof e=="string"){const t=(()=>{try{return JSON.parse(e)}catch{return null}})();return t?JSON.stringify(t,null,2):e}else if(e&&typeof e=="object")return JSON.stringify(e,null,2);return String(e)};function Cne({open:e,onClose:t,order:r,onPaymentLinkCopy:n=null}){const{showSuccess:a}=xa(),[s,o]=_.useState(new Set),c=async(d,h)=>{d&&(await navigator.clipboard.writeText(d),o(g=>new Set([...g,h])),a("支付链接已复制到剪贴板"),n&&n(d,h))},f=d=>s.has(d);return r?m.jsxs(ea,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,slotProps:{paper:{sx:{maxHeight:"90vh"}}},children:[m.jsxs(ra,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:["订单详情",m.jsx(bn,{onClick:t,size:"small",children:m.jsx(Ay,{})})]}),m.jsx(ta,{dividers:!0,children:m.jsxs(cm,{children:[m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(dW,{})}),m.jsx(Ca,{primary:"订单ID",secondary:r.id||"未知"})]}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(kW,{})}),m.jsx(Ca,{primary:"订单号",secondary:r.orderId||"未知"})]}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(AW,{})}),m.jsx(Ca,{primary:"状态",secondary:qf[r.status]||"未知"}),m.jsx(pr,{color:M3[r.status]||"default",size:"small",label:qf[r.status]||"未知"})]}),m.jsx(Qa,{sx:{my:1}}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(QH,{})}),m.jsx(Ca,{primary:"平台",secondary:da[r.platform]||r.platform}),m.jsx(pr,{color:xm[r.platform]||"default",size:"small",label:da[r.platform]||r.platform})]}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(Bf,{})}),m.jsx(Ca,{primary:"账号",secondary:r.account||"未知"})]}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(pW,{})}),m.jsx(Ca,{primary:"密码",secondary:r.password||"未知"})]}),m.jsx(Qa,{sx:{my:1}}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(t0,{})}),m.jsx(Ca,{primary:"创建时间",secondary:uv(r.createdAt)})]}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(RW,{})}),m.jsx(Ca,{primary:"更新时间",secondary:uv(r.updatedAt)})]}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(cW,{})}),m.jsx(Ca,{primary:"游玩日期",secondary:`${r.visitDate||"未知"} ${r.visitPeriod||""}`})]}),m.jsx(Qa,{sx:{my:1}}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(KH,{})}),m.jsx(Ca,{primary:"价格",secondary:`${r.totalPrice||"0"}元`})]}),m.jsxs(Ta,{sx:{alignItems:"flex-start"},children:[m.jsx(ca,{children:m.jsx(mW,{})}),m.jsxs(Me,{sx:{flex:1},children:[m.jsx(Le,{variant:"body2",color:"text.secondary",sx:{mb:1},children:"支付链接"}),r.paymentLink?m.jsxs(Me,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Le,{component:"a",href:r.paymentLink,target:"_blank",rel:"noopener noreferrer",sx:{color:f(r.id)?"error.main":"primary.main",fontWeight:f(r.id)?"bold":"normal",textDecoration:f(r.id)?"underline":"none",maxWidth:"400px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block",fontSize:"0.875rem"},children:r.paymentLink}),m.jsx(bn,{size:"small",color:f(r.id)?"error":"primary",onClick:()=>c(r.paymentLink,r.id),children:m.jsx(nW,{fontSize:"small"})}),f(r.id)&&m.jsx(Le,{variant:"caption",color:"success.main",children:"复制成功！"})]}):m.jsx(Le,{variant:"body2",color:"text.disabled",children:"未知"})]})]}),m.jsx(Qa,{sx:{my:1}}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(Sd,{})}),m.jsx(Ca,{primary:"游客信息",secondary:"详细游客信息如下"})]}),m.jsx(Me,{sx:{px:2,pb:2},children:r.tourists&&r.tourists.length>0?r.tourists.map((d,h)=>m.jsxs(Me,{sx:{mb:2,p:2,border:"1px dashed",borderColor:"divider",borderRadius:1,backgroundColor:"action.hover"},children:[m.jsxs(Le,{variant:"subtitle2",color:"primary",sx:{mb:1},children:["游客 ",h+1]}),m.jsxs(Me,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[m.jsxs(Le,{variant:"body2",children:[m.jsx("strong",{children:"姓名:"})," ",d.name]}),m.jsxs(Le,{variant:"body2",sx:{wordBreak:"break-all"},children:[m.jsx("strong",{children:"证件号:"})," ",d.idNumber||d.id_number]})]})]},h)):m.jsx(Le,{variant:"body2",color:"text.disabled",children:"无游客信息"})}),m.jsx(Qa,{sx:{my:1}}),m.jsxs(Ta,{children:[m.jsx(ca,{children:m.jsx(A3,{color:"error"})}),m.jsx(Ca,{primary:"错误信息",secondary:r.errorMessages&&r.errorMessages.length>0?`共 ${r.errorMessages.length} 条错误`:"无错误信息"})]}),r.errorMessages&&r.errorMessages.length>0&&m.jsx(Me,{sx:{px:2,pb:2},children:r.errorMessages.map((d,h)=>m.jsxs(Mn,{severity:"error",sx:{mb:1},children:[m.jsxs(Le,{variant:"subtitle2",sx:{mb:1},children:["错误 ",h+1]}),m.jsx(Me,{component:"pre",sx:{fontFamily:"monospace",fontSize:"0.85rem",whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"auto",backgroundColor:"rgba(0, 0, 0, 0.03)",p:1,borderRadius:1,borderLeft:"3px solid",borderLeftColor:"error.main",margin:0},children:Tne(d)})]},h))})]})}),m.jsx(pa,{children:m.jsx(Tt,{onClick:t,variant:"outlined",children:"关闭"})})]}):null}function Ene({orders:e=[],onRefundSuccess:t,variant:r="outlined",size:n="small",autoOpen:a=!1}){const[s,o]=_.useState(!1),[c,f]=_.useState(!1),{showMessage:d}=xa(),h=v=>v.platform===er.POC&&(v.status===Yn.COMPLETED||v.status===Yn.DUPLICATED),g=Array.isArray(e)?e.filter(h):h(e)?[e]:[];_.useEffect(()=>{a&&g.length>0&&o(!0)},[a,g.length]);const x=()=>{o(!0)},y=async()=>{f(!0);const v=g.map(C=>({orderRecordId:C.id,phoneNumber:null,orderId:null})),w=await wd.cancelOrders(v);d(`退票请求已提交成功，任务ID: ${w}`,"success"),o(!1),t&&t(),f(!1)};if(g.length===0)return null;const b=g.length>1;return m.jsxs(m.Fragment,{children:[!a&&m.jsxs(Tt,{variant:r,size:n,color:"warning",startIcon:m.jsx(xW,{}),onClick:x,disabled:c,children:["退票",b?` (${g.length})`:""]}),m.jsxs(ea,{open:s,onClose:()=>!c&&o(!1),children:[m.jsx(ra,{children:"确认退票"}),m.jsx(ta,{children:m.jsxs(Ik,{children:["您确定要退票 ",g.length," 个POC订单吗？此操作无法撤销。"]})}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:()=>o(!1),disabled:c,children:"取消"}),m.jsx(Tt,{onClick:y,color:"warning",disabled:c,startIcon:c&&m.jsx($n,{size:16}),children:c?"退票中...":"确认退票"})]})]})]})}const _ne=({refundData:e,onDataChange:t,loading:r})=>{const n=a=>s=>{t({...e,[a]:s.target.value})};return m.jsxs(Me,{children:[m.jsx(Le,{variant:"body2",color:"textSecondary",sx:{mb:2},children:"请输入恭王府订单的退票相关信息。此操作无法撤销。"}),m.jsx(An,{autoFocus:!0,margin:"dense",label:"手机号码",type:"tel",fullWidth:!0,variant:"outlined",value:e.phoneNumber||"",onChange:n("phoneNumber"),disabled:r,sx:{mb:2},placeholder:"请输入手机号码"}),m.jsx(An,{margin:"dense",label:"订单号",type:"text",fullWidth:!0,variant:"outlined",value:e.orderId||"",onChange:n("orderId"),disabled:r,placeholder:"请输入订单号"})]})},kne=({selectedAccount:e,onAccountChange:t,selectedOrder:r,onOrderChange:n,loading:a})=>{const[s,o]=_.useState([]),[c,f]=_.useState(!1),d=async g=>{if(t(g),n(""),o([]),g?.username){f(!0);try{const y=((await Qs.getOrderList(g.username)).data?.list||[]).filter(b=>b.orderStatus!=="CANCELLED");o(y)}finally{f(!1)}}},h=g=>{n(g.target.value)};return m.jsxs(Me,{children:[m.jsx(Le,{variant:"body2",color:"textSecondary",sx:{mb:2},children:"选择账户和订单进行升旗团队订单退票。此操作无法撤销。"}),m.jsx(Me,{sx:{mb:2},children:m.jsx(XR,{value:e,onChange:d,platform:"tamgw-team",disabled:a})}),e&&m.jsxs(Ra,{fullWidth:!0,children:[m.jsx(ki,{children:"选择订单"}),m.jsx(Oa,{value:r,onChange:h,label:"选择订单",disabled:a||c,children:c?m.jsx(Qr,{disabled:!0,children:"加载中..."}):s.length===0?m.jsx(Qr,{disabled:!0,children:"暂无可退票订单"}):s.map(g=>m.jsx(Qr,{value:g.id,children:m.jsxs(Me,{children:[m.jsx(Le,{variant:"body2",fontWeight:"bold",children:g.id}),m.jsxs(Le,{variant:"caption",color:"textSecondary",children:[g.playDate," | ",YR(g.orderStatus)]})]})},g.id))})]})]})},Hi={POC:"poc",TAMGW_TEAM:"tamgw-team"},Y4={[Hi.POC]:"恭王府",[Hi.TAMGW_TEAM]:"升旗-团队"};function Ane({onRefundSuccess:e,variant:t="outlined",size:r="small"}){const[n,a]=_.useState(!1),[s,o]=_.useState(!1),[c,f]=_.useState(Hi.POC),[d,h]=_.useState({phoneNumber:"",orderId:""}),[g,x]=_.useState(null),[y,b]=_.useState(""),{showSuccess:v,showError:w}=xa(),C=()=>{a(!0)},k=()=>{s||(a(!1),E())},E=()=>{h({phoneNumber:"",orderId:""}),x(null),b("")},D=(P,j)=>{f(j),E()},M=async()=>{if(!d.phoneNumber.trim()||!d.orderId.trim())return w("请填写完整的手机号和订单号"),!1;const P=[{orderRecordId:null,phoneNumber:d.phoneNumber.trim(),orderId:d.orderId.trim()}],j=await wd.cancelOrders(P);return v(`恭王府手动退票请求已提交成功，任务ID: ${j}`),!0},A=async()=>g?y?(await Qs.cancelGroupOrder(y,g.username),v("升旗团队订单退票成功"),!0):(w("请选择要退票的订单"),!1):(w("请选择账户"),!1),O=async()=>{o(!0);try{let P=!1;c===Hi.POC?P=await M():c===Hi.TAMGW_TEAM&&(P=await A()),P&&(k(),e&&e())}finally{o(!1)}},N=P=>{x(P),b("")},F=P=>{b(P)};return m.jsxs(m.Fragment,{children:[m.jsx(Tt,{variant:t,size:r,color:"secondary",startIcon:m.jsx(oW,{}),onClick:C,disabled:s,children:"手动退票"}),m.jsxs(ea,{open:n,onClose:k,maxWidth:"md",fullWidth:!0,children:[m.jsx(ra,{children:"手动退票"}),m.jsxs(ta,{children:[m.jsx(Me,{sx:{borderBottom:1,borderColor:"divider",mb:2},children:m.jsxs(u$,{value:c,onChange:D,"aria-label":"platform tabs",children:[m.jsx(cE,{label:Y4[Hi.POC],value:Hi.POC}),m.jsx(cE,{label:Y4[Hi.TAMGW_TEAM],value:Hi.TAMGW_TEAM})]})}),c===Hi.POC&&m.jsx(_ne,{refundData:d,onDataChange:h,loading:s}),c===Hi.TAMGW_TEAM&&m.jsx(kne,{selectedAccount:g,onAccountChange:N,selectedOrder:y,onOrderChange:F,loading:s})]}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:k,disabled:s,children:"取消"}),m.jsx(Tt,{onClick:O,color:"warning",disabled:s,startIcon:s&&m.jsx($n,{size:16}),children:s?"退票中...":"确认退票"})]})]})]})}const Rne=[{label:"全部",value:""},{label:"处理中",value:"processing"},{label:"已完成",value:"completed"},{label:"有重复单",value:"duplicated"},{label:"全部重复",value:"all_duplicated"},{label:"失败",value:"failed"},{label:"已取消",value:"cancelled"},{label:"取消失败",value:"cancel_failed"}];function One(){const[e,t]=_.useState({items:[],total:0,pages:0}),[r,n]=_.useState(!1),[a,s]=_.useState([]),[o,c]=_.useState(null),[f,d]=_.useState(null),[h,g]=_.useState(!1),[x,y]=_.useState(null),[b,v]=_.useState(new Set),[w,C]=_.useState(!1),[k,E]=_.useState(!1),[D,M]=_.useState(null),[A,O]=_.useState(!1),[N,F]=_.useState(""),[P,j]=_.useState(null),{showMessage:R}=_.useContext(vu),[W,Y]=Su({status:"",platform:"",visitDate:"",keyword:"",page:1,pageSize:15}),Z=async()=>{n(!0);const ve=await Sx.findAll({page:W.page,pageSize:W.pageSize,status:W.status||void 0,platform:W.platform||void 0,visitDate:W.visitDate||void 0,keyword:W.keyword||void 0});t(ve),n(!1),j(null)};_.useEffect(()=>{Z()},[W]);const B=(ve,Ge)=>{Y({[ve]:Ge||"",page:1})},ne=(ve,Ge)=>{Y({page:Ge+1})},ce=ve=>{Y({pageSize:parseInt(ve.target.value,10),page:1})},U=ve=>{ve.target.checked?s(e.items.map(Ge=>Ge.id)):s([]),j(null)},H=(ve,Ge,Ae)=>{if(Ae?.shiftKey&&P!==null){const st=Math.min(P,Ge),yt=Math.max(P,Ge),Ct=e.items.slice(st,yt+1).map(mt=>mt.id);s(mt=>{const qe=new Set(mt);return Ct.forEach(Ut=>qe.add(Ut)),Array.from(qe)})}else s(st=>st.includes(ve)?st.filter(yt=>yt!==ve):[...st,ve]),j(Ge)},ie=(ve,Ge)=>{c(ve.currentTarget),d(Ge)},z=()=>{c(null),d(null)},K=ve=>ve?ve.platform===er.TAMGW||ve.platform===er.TAMGW_TEAM||ve.platform===er.TAMGW_INDIVIDUAL&&ve.orderId:!1,Q=async ve=>{if(!(!ve||!ve.account)){O(!0),M(null),E(!0),z();try{let Ge;ve.platform===er.TAMGW_INDIVIDUAL?Ge=await Qs.getPersonalOrderStatus(ve.account,ve.visitDate,ve.orderId):Ge=await Qs.getOrderList(ve.account),M(Ge)}finally{O(!1)}}},ee=()=>{E(!1),M(null)},ae=()=>{if(a.length===0){R("请先选择要删除的记录","warning");return}F("batch"),C(!0)},xe=()=>{F("all"),C(!0)},ye=async()=>{N==="batch"?await Sx.batchDelete(a):N==="all"&&await Sx.deleteAll(),s([]),R("成功删除了记录","success"),C(!1),F(""),Z()},Te=()=>{C(!1),F("")},he=ve=>{y(ve),g(!0),z()},Ve=ve=>ve?new Date(ve).toLocaleString("zh-CN"):"-",te=async(ve,Ge)=>{ve&&(await navigator.clipboard.writeText(ve),v(Ae=>new Set([...Ae,Ge])),R("支付链接已复制到剪贴板","success"))},rt=ve=>b.has(ve),Ue=async()=>{if(a.length===0){R("请先选择要导出的订单","warning");return}const Ge=a.map(vt=>e.items.find(Et=>Et.id===vt)).filter(vt=>vt!==void 0).filter(vt=>vt.orderId);if(Ge.length===0){R("选中的订单中没有可导出的有效订单数据","warning");return}const Ae=[];Ge.forEach(vt=>{vt.tourists&&Array.isArray(vt.tourists)?vt.tourists.forEach(Et=>{Ae.push({游客姓名:Et.name||"",证件号码:Et.idNumber||Et.id_number||"",购买账号:vt.account||"",订单号:vt.orderId||"",购买日期:vt.visitDate||"",游玩时段:vt.visitPeriod||"",支付链接:vt.paymentLink||"",订单状态:qf[vt.status]||vt.status,附件:Array.isArray(vt.attachments)?vt.attachments.join(", "):""})}):Ae.push({游客姓名:"",证件号码:"",购买账号:vt.account||"",订单号:vt.orderId||"",购买日期:vt.visitDate||"",游玩时段:vt.visitPeriod||"",支付链接:vt.paymentLink||"",订单状态:qf[vt.status]||vt.status,附件:Array.isArray(vt.attachments)?vt.attachments.join(", "):""})});const st=ap.json_to_sheet(Ae),yt=[{wch:12},{wch:25},{wch:15},{wch:30},{wch:12},{wch:15},{wch:50},{wch:10},{wch:30}];st["!cols"]=yt;const Ct=ap.book_new();ap.book_append_sheet(Ct,st,"选中订单数据");const mt=new Date,qe=`${mt.getFullYear()}${(mt.getMonth()+1).toString().padStart(2,"0")}${mt.getDate().toString().padStart(2,"0")}`,Ut=`${mt.getHours().toString().padStart(2,"0")}${mt.getMinutes().toString().padStart(2,"0")}`,Dt=`选中订单数据_${qe}_${Ut}.xlsx`;Ire(Ct,Dt),R(`已成功导出 ${Ge.length} 个选中订单的数据`,"success")};return m.jsxs(zr,{sx:{p:3},children:[m.jsx(Le,{variant:"h4",gutterBottom:!0,children:"订单记录"}),m.jsxs(Jt,{container:!0,spacing:2,sx:{mb:3},children:[m.jsx(Jt,{size:{xs:12,sm:6,md:3},children:m.jsxs(Ra,{fullWidth:!0,size:"small",children:[m.jsx(ki,{children:"状态过滤"}),m.jsx(Oa,{value:W.status,label:"状态过滤",onChange:ve=>B("status",ve.target.value),sx:{minWidth:120},children:Rne.map(ve=>m.jsx(Qr,{value:ve.value,children:ve.label},ve.value))})]})}),m.jsx(Jt,{size:{xs:12,sm:6,md:3},children:m.jsxs(Ra,{fullWidth:!0,size:"small",children:[m.jsx(ki,{children:"筛选平台"}),m.jsx(Oa,{value:W.platform,label:"筛选平台",onChange:ve=>B("platform",ve.target.value),sx:{minWidth:140},children:F3.map(ve=>m.jsx(Qr,{value:ve.value,children:ve.label},ve.value))})]})}),m.jsx(Jt,{size:{xs:12,sm:6,md:3},children:m.jsx(An,{fullWidth:!0,size:"small",label:"参观日期",type:"date",value:W.visitDate,onChange:ve=>B("visitDate",ve.target.value),slotProps:{inputLabel:{shrink:!0}}})}),m.jsx(Jt,{size:{xs:12,sm:6,md:3},children:m.jsx(An,{fullWidth:!0,size:"small",label:"关键字搜索",placeholder:"搜索订单号、账号等",value:W.keyword,onChange:ve=>B("keyword",ve.target.value),slotProps:{input:{startAdornment:m.jsx(cv,{sx:{mr:1,color:"action.active"}})}}})})]}),m.jsxs(Me,{sx:{mb:2,display:"flex",gap:1,flexWrap:"wrap",justifyContent:"space-between"},children:[m.jsxs(Me,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[m.jsx(Tt,{variant:"outlined",startIcon:m.jsx(Zo,{}),onClick:Z,disabled:r,children:"刷新"}),m.jsxs(Tt,{variant:"outlined",color:"error",startIcon:m.jsx(Tp,{}),onClick:ae,disabled:a.length===0,children:["删除选中 (",a.length,")"]}),m.jsx(Tt,{variant:"outlined",color:"error",onClick:xe,children:"清空全部"}),m.jsx(Ene,{orders:a.map(ve=>e.items.find(Ge=>Ge.id===ve)).filter(Boolean),onRefundSuccess:Z,variant:"outlined",size:"medium"})]}),m.jsxs(Me,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[m.jsx(Ane,{onRefundSuccess:Z,variant:"outlined",size:"small"}),m.jsxs(Tt,{variant:"outlined",color:"success",startIcon:m.jsx(uW,{}),onClick:Ue,disabled:a.length===0,children:["导出选中 (",a.length,")"]})]})]}),m.jsx(Ys,{component:zr,children:m.jsxs(Gs,{size:"small",children:[m.jsx(qs,{children:m.jsxs(Dr,{children:[m.jsx(je,{padding:"checkbox",children:m.jsx(Il,{indeterminate:a.length>0&&a.length<e.items.length,checked:e.items.length>0&&a.length===e.items.length,onChange:U})}),m.jsx(je,{children:"ID"}),m.jsx(je,{children:"平台"}),m.jsx(je,{children:"创建时间"}),m.jsx(je,{children:"状态"}),m.jsx(je,{children:"参观日期"}),m.jsx(je,{children:"总价格"}),m.jsx(je,{children:"订单号"}),m.jsx(je,{children:"支付链接"}),m.jsx(je,{children:"附件"}),m.jsx(je,{children:"账号"}),m.jsx(je,{children:"操作"})]})}),m.jsx(Xs,{children:r?m.jsx(Dr,{children:m.jsx(je,{colSpan:12,align:"center",children:m.jsx(Le,{children:"加载中..."})})}):e.items.length===0?m.jsx(Dr,{children:m.jsx(je,{colSpan:12,align:"center",children:m.jsx(Le,{color:"textSecondary",children:"暂无数据"})})}):e.items.map((ve,Ge)=>m.jsxs(Dr,{selected:a.includes(ve.id),hover:!0,children:[m.jsx(je,{padding:"checkbox",children:m.jsx(Il,{checked:a.includes(ve.id),onClick:Ae=>{Ae.stopPropagation(),H(ve.id,Ge,Ae)},onChange:()=>{}})}),m.jsx(je,{children:ve.id}),m.jsx(je,{children:da[ve.platform]||ve.platform}),m.jsx(je,{children:Ve(ve.createdAt)}),m.jsx(je,{children:m.jsx(pr,{label:qf[ve.status]||ve.status,color:M3[ve.status]||"default",size:"small"})}),m.jsx(je,{children:ve.visitDate||"-"}),m.jsx(je,{children:ve.totalPrice?`¥${ve.totalPrice}`:"-"}),m.jsx(je,{children:m.jsx(Un,{title:ve.orderId||"-",children:m.jsx(Le,{variant:"body2",sx:{maxWidth:100,overflow:"hidden",textOverflow:"ellipsis"},children:ve.orderId||"-"})})}),m.jsx(je,{children:ve.paymentLink?m.jsx(Un,{title:`点击复制支付链接: ${ve.paymentLink}`,children:m.jsx(Le,{variant:"body2",component:"span",onClick:()=>te(ve.paymentLink,ve.id),sx:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",display:"block",color:rt(ve.id)?"error.main":"primary.main",cursor:"pointer",textDecoration:(rt(ve.id),"none"),fontWeight:rt(ve.id)?"bold":"normal","&:hover":{textDecoration:"underline"}},children:ve.paymentLink})}):"-"}),m.jsx(je,{children:ve.attachments&&Array.isArray(ve.attachments)&&ve.attachments.length>0?m.jsx(Me,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:ve.attachments.map((Ae,st)=>m.jsx(pr,{label:Ae,size:"small",variant:"outlined",color:"primary",sx:{fontSize:"0.75rem"}},st))}):m.jsx(Le,{variant:"body2",color:"text.secondary",children:"-"})}),m.jsx(je,{children:ve.account||"-"}),m.jsx(je,{children:m.jsxs(Me,{sx:{display:"flex",gap:.5},children:[K(ve)&&m.jsx(Un,{title:"查询TAMGW订单",children:m.jsx(bn,{size:"small",onClick:()=>Q(ve),color:"primary",children:m.jsx(cv,{})})}),m.jsx(bn,{size:"small",onClick:Ae=>ie(Ae,ve.id),children:m.jsx(vW,{})})]})})]},ve.id))})]})}),m.jsxs(Me,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:2,flexWrap:"wrap",gap:2},children:[m.jsxs(Le,{variant:"body2",color:"text.secondary",children:["共 ",e.total," 条记录，第 ",W.page," / ",e.pages," 页"]}),m.jsxs(Me,{sx:{display:"flex",alignItems:"center",gap:2},children:[m.jsxs(Ra,{size:"small",sx:{minWidth:100},children:[m.jsx(ki,{children:"每页显示"}),m.jsxs(Oa,{value:W.pageSize,label:"每页显示",onChange:ce,children:[m.jsx(Qr,{value:15,children:"15 条"}),m.jsx(Qr,{value:20,children:"20 条"}),m.jsx(Qr,{value:50,children:"50 条"}),m.jsx(Qr,{value:100,children:"100 条"})]})]}),m.jsx(Kk,{count:e.pages,page:W.page,onChange:(ve,Ge)=>ne(ve,Ge-1),color:"primary",shape:"rounded",showFirstButton:!0,showLastButton:!0,siblingCount:1,boundaryCount:1})]})]}),m.jsx(Gk,{anchorEl:o,open:!!o,onClose:z,children:m.jsxs(Qr,{onClick:()=>{const ve=e.items.find(Ge=>Ge.id===f);ve&&he(ve)},children:[m.jsx(D3,{sx:{mr:1}}),"查看详情"]})}),m.jsx(Cne,{open:h,onClose:()=>g(!1),order:x}),m.jsxs(ea,{open:w,onClose:Te,children:[m.jsx(ra,{children:N==="batch"?"确认批量删除":"确认清空全部"}),m.jsx(ta,{children:m.jsx(Ik,{children:N==="batch"?`您确定要删除选中的 ${a.length} 条订单记录吗？此操作无法撤销。`:"您确定要清空所有订单记录吗？此操作将删除数据库中的所有订单记录，无法撤销。"})}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:Te,children:"取消"}),m.jsx(Tt,{onClick:ye,color:"error",variant:"contained",children:N==="batch"?"确认删除":"确认清空"})]})]}),m.jsx(Sne,{open:k,onClose:ee,title:"TAMGW订单查询结果",data:D})]})}function Dne(){return m.jsx(Me,{children:m.jsx(One,{})})}const Mne=async(e=null)=>{const t=new URLSearchParams;e&&t.append("platform",e);const r=t.toString()?`/tasks/monitors?${t.toString()}`:"/tasks/monitors";return await bt.get(r)},Fne=async(e=null)=>{const t=new URLSearchParams;e&&t.append("platform",e);const r=t.toString()?`/tasks/subscribers?${t.toString()}`:"/tasks/subscribers";return await bt.get(r)},KR=async e=>await bt.post(`/tasks/monitors/${e}/stop`),QR=async(e,t)=>await bt.delete(`/tasks/subscribers/${e}/${t}`),ZR={findAllMonitors:Mne,findAllSubscribers:Fne,stopMonitor:KR,cancelSubscription:QR};function Nne({platformFilter:e=null}){const{showSuccess:t,showError:r}=xa(),[n,a]=_.useState([]),[s,o]=_.useState(!1),[c,f]=_.useState({open:!1,loading:!1,platform:""}),d=[{id:"platform",label:"平台",minWidth:100},{id:"monitorId",label:"监控器ID",minWidth:150},{id:"isRunning",label:"运行状态",minWidth:120},{id:"isActive",label:"活跃状态",minWidth:120},{id:"subscriberCount",label:"订阅者数量",minWidth:120},{id:"intervalSeconds",label:"检查间隔",minWidth:120},{id:"actions",label:"操作",minWidth:100}],h=_.useCallback(async()=>{o(!0);const v=await ZR.findAllMonitors(e);a(v),o(!1)},[e]);_.useEffect(()=>{h()},[h]);const g=_.useMemo(()=>e?n.filter(v=>v.platform===e):n,[n,e]),x=_.useCallback(v=>v?v<60?`${v}秒`:v===60?"1分钟":v<3600?`${Math.round(v/60)}分钟`:`${Math.round(v/3600)}小时`:"未知",[]),y=_.useCallback(v=>{f({open:!0,loading:!1,platform:v})},[]),b=_.useCallback(async()=>{f(w=>({...w,loading:!0}));const v=await KR(c.platform);v?.message?(t(v.message),h()):r("监控器停止失败"),f({open:!1,loading:!1,platform:""})},[c.platform,t,r,h]);return m.jsxs(m.Fragment,{children:[m.jsxs(Me,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsx(Le,{variant:"h6",children:"监控器状态"}),m.jsx(Un,{title:"刷新监控器状态",children:m.jsx(bn,{onClick:h,disabled:s,size:"small",color:"primary",children:m.jsx(Zo,{})})})]}),m.jsx(Ys,{component:zr,sx:{mb:4},children:m.jsxs(Gs,{size:"small",children:[m.jsx(qs,{children:m.jsx(Dr,{children:d.map(v=>m.jsx(je,{sx:{minWidth:v.minWidth},children:v.label},v.id))})}),m.jsx(Xs,{children:s?m.jsx(Dr,{children:m.jsx(je,{colSpan:d.length,align:"center",children:m.jsx($n,{})})}):g.length===0?m.jsx(Dr,{children:m.jsx(je,{colSpan:d.length,align:"center",children:"暂无监控器数据"})}):g.map((v,w)=>m.jsxs(Dr,{children:[m.jsx(je,{children:m.jsx(pr,{label:da[v.platform]||v.platform,color:xm[v.platform]||"default",size:"small"})}),m.jsx(je,{children:v.monitorId}),m.jsx(je,{children:m.jsx(pr,{label:v.isRunning?"运行中":"已停止",color:v.isRunning?"success":"error",size:"small"})}),m.jsx(je,{children:m.jsx(pr,{label:v.isActive?"活跃":"非活跃",color:v.isActive?"primary":"default",size:"small"})}),m.jsx(je,{children:v.subscriberCount}),m.jsx(je,{children:x(v.intervalSeconds)}),m.jsx(je,{children:m.jsx(Un,{title:"停止监控器",children:m.jsx("span",{children:m.jsx(bn,{size:"small",color:"error",disabled:!v.isRunning,onClick:()=>y(v.platform),style:v.isRunning?{}:{pointerEvents:"none"},children:m.jsx(_W,{})})})})})]},w))})]})}),m.jsxs(ea,{open:c.open,onClose:()=>!c.loading&&f(v=>({...v,open:!1})),maxWidth:"sm",fullWidth:!0,children:[m.jsx(ra,{children:"确认停止监控器"}),m.jsxs(ta,{children:["您确定要停止 ",da[c.platform]||c.platform," 平台的监控器吗？ 停止后将不再进行库存监控。"]}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:()=>f(v=>({...v,open:!1})),disabled:c.loading,children:"取消"}),m.jsx(Tt,{onClick:b,color:"error",variant:"contained",disabled:c.loading,children:c.loading?m.jsx($n,{size:20}):"确认"})]})]})]})}function Pne({open:e,onClose:t,subscriber:r}){if(!r)return null;const n=r.tourists||[];return m.jsxs(ea,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,slotProps:{paper:{sx:{maxHeight:"80vh"}}},children:[m.jsx(ra,{children:m.jsxs(Me,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Sd,{}),m.jsx(Le,{variant:"h6",component:"span",children:"游客详细信息"}),m.jsx(pr,{label:`订阅ID: ${r.subscriptionId}`,color:"info",size:"small"})]})}),m.jsx(ta,{children:n.length>0?m.jsxs(m.Fragment,{children:[m.jsxs(Mn,{severity:"info",sx:{mb:2},children:["以下是此次监控任务提交的游客信息，共 ",n.length," 位游客"]}),m.jsx(Ys,{component:zr,children:m.jsxs(Gs,{size:"small",children:[m.jsx(qs,{children:m.jsxs(Dr,{children:[m.jsx(je,{sx:{minWidth:60,fontWeight:"bold"},children:"序号"}),m.jsx(je,{sx:{minWidth:100,fontWeight:"bold"},children:"姓名"}),m.jsx(je,{sx:{minWidth:180,fontWeight:"bold"},children:"证件号码"}),m.jsx(je,{sx:{minWidth:100,fontWeight:"bold"},children:"证件类型"})]})}),m.jsx(Xs,{children:n.map((a,s)=>m.jsxs(Dr,{children:[m.jsx(je,{children:s+1}),m.jsx(je,{children:a.name}),m.jsx(je,{children:m.jsx("code",{style:{fontSize:"0.75rem"},children:a.idNumber})}),m.jsx(je,{children:a.idType?m.jsx(pr,{label:a.idType,color:"info",size:"small"}):m.jsx(Le,{variant:"body2",color:"text.secondary",children:"未知"})})]},s))})]})})]}):m.jsx(Mn,{severity:"warning",children:"此订阅任务暂无游客信息"})}),m.jsx(pa,{children:m.jsx(Tt,{onClick:t,variant:"text",children:"关闭"})})]})}const jne={waiting:"等待库存",running:"正在执行",error:"执行错误",completed:"执行完成",cancelled:"已取消"},Lne={waiting:"warning",running:"info",error:"error",completed:"success",cancelled:"default"};function Ine({platformFilter:e=null}){const{showSuccess:t,showError:r}=xa(),[n,a]=_.useState([]),[s,o]=_.useState(!1),[c,f]=_.useState({open:!1,loading:!1,platform:"",subscriptionId:""}),[d,h]=_.useState({open:!1,subscriber:null}),g=[{id:"subscriptionId",label:"订阅ID",minWidth:120},{id:"platform",label:"平台",minWidth:100},{id:"status",label:"状态",minWidth:120},{id:"requestSummary",label:"请求摘要",minWidth:200},{id:"touristInfo",label:"游客信息",minWidth:120},{id:"errorMessage",label:"错误信息",minWidth:200},{id:"createdAt",label:"创建时间",minWidth:180},{id:"updatedAt",label:"上次运行时间",minWidth:180},{id:"actions",label:"操作",minWidth:100}],x=_.useMemo(()=>e?n.filter(k=>k.platform===e):n,[n,e]),y=_.useCallback(async()=>{o(!0);const k=await ZR.findAllSubscribers(e);a(k),o(!1)},[e]);_.useEffect(()=>{y()},[y]);const b=_.useCallback(k=>k.tourists?.length||0,[]),v=_.useCallback(k=>{h({open:!0,subscriber:k})},[]),w=_.useCallback((k,E)=>{f({open:!0,loading:!1,platform:k,subscriptionId:E})},[]),C=_.useCallback(async()=>{f(E=>({...E,loading:!0}));const k=await QR(c.platform,c.subscriptionId);k?.message?(t(k.message),y()):r("取消订阅失败"),f({open:!1,loading:!1,platform:"",subscriptionId:""})},[c.platform,c.subscriptionId,t,r,y]);return m.jsxs(m.Fragment,{children:[m.jsxs(Me,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsx(Le,{variant:"h6",children:"订阅者信息"}),m.jsx(Un,{title:"刷新订阅者信息",children:m.jsx(bn,{onClick:y,disabled:s,size:"small",color:"primary",children:m.jsx(Zo,{})})})]}),m.jsx(Ys,{component:zr,children:m.jsxs(Gs,{size:"small",children:[m.jsx(qs,{children:m.jsx(Dr,{children:g.map(k=>m.jsx(je,{sx:{minWidth:k.minWidth},children:k.label},k.id))})}),m.jsx(Xs,{children:s?m.jsx(Dr,{children:m.jsx(je,{colSpan:g.length,align:"center",children:m.jsx($n,{})})}):x.length===0?m.jsx(Dr,{children:m.jsx(je,{colSpan:g.length,align:"center",children:"暂无订阅者数据"})}):x.map((k,E)=>m.jsxs(Dr,{children:[m.jsx(je,{children:k.subscriptionId}),m.jsx(je,{children:m.jsx(pr,{label:da[k.platform]||k.platform,color:xm[k.platform]||"default",size:"small"})}),m.jsx(je,{children:m.jsx(pr,{label:jne[k.status]||k.status,color:Lne[k.status]||"default",size:"small"})}),m.jsx(je,{children:m.jsx(Me,{sx:{maxWidth:200,wordBreak:"break-word"},children:k.requestSummary?.split("|").map((D,M)=>m.jsx("div",{children:D.trim()},M))||"无"})}),m.jsx(je,{children:b(k)>0?m.jsxs(Me,{children:[m.jsx(pr,{label:`${b(k)}位游客`,color:"info",size:"small",sx:{mr:1}}),m.jsx(Tt,{size:"small",variant:"text",startIcon:m.jsx(D3,{}),onClick:()=>v(k),children:"查看详情"})]}):m.jsx(pr,{label:"无游客信息",color:"default",size:"small"})}),m.jsx(je,{children:k.errorMessage?m.jsx(Me,{sx:{maxWidth:200},children:m.jsx(Mn,{severity:"error",sx:{fontSize:"0.75rem",padding:"4px 8px",".MuiAlert-message":{fontSize:"inherit"}},children:k.errorMessage})}):"-"}),m.jsx(je,{children:fv(k.createdAt)}),m.jsx(je,{children:fv(k.updatedAt)}),m.jsx(je,{children:m.jsx(Un,{title:"取消订阅",children:m.jsx(bn,{size:"small",color:"error",onClick:()=>w(k.platform,k.subscriptionId),children:m.jsx(ZH,{})})})})]},E))})]})}),m.jsxs(ea,{open:c.open,onClose:()=>!c.loading&&f({open:!1,loading:!1,platform:"",subscriptionId:""}),children:[m.jsx(ra,{children:"确认取消订阅"}),m.jsxs(ta,{children:["确定要取消平台 ",m.jsx("strong",{children:da[c.platform]||c.platform})," 的订阅 ",m.jsx("strong",{children:c.subscriptionId})," 吗？"]}),m.jsxs(pa,{children:[m.jsx(Tt,{onClick:()=>f({open:!1,loading:!1,platform:"",subscriptionId:""}),disabled:c.loading,children:"取消"}),m.jsx(Tt,{onClick:C,color:"error",variant:"contained",disabled:c.loading,children:c.loading?m.jsx($n,{size:20}):"确认取消"})]})]}),m.jsx(Pne,{open:d.open,onClose:()=>h({open:!1,subscriber:null}),subscriber:d.subscriber})]})}function Bne(){const[e,t]=Su({platform:null}),r=_.useCallback(n=>{const a=n.target.value==="null"?null:n.target.value;t({platform:a})},[t]);return m.jsxs(nn,{children:[m.jsx(o7,{avatar:m.jsx(aW,{}),title:"库存监控管理",subheader:"查看和管理库存监控器状态及订阅信息"}),m.jsxs(an,{children:[m.jsx(Jt,{container:!0,spacing:2,sx:{mb:3},children:m.jsx(Jt,{size:{xs:12,sm:6,md:4},children:m.jsxs(Ra,{fullWidth:!0,size:"small",children:[m.jsx(ki,{children:"筛选平台"}),m.jsx(Oa,{value:e.platform||"null",onChange:r,startAdornment:m.jsx(fW,{sx:{mr:1,color:"text.secondary"}}),label:"筛选平台",children:MW.map(n=>m.jsx(Qr,{value:n.value||"null",children:n.label},n.value||"null"))})]})})}),m.jsx(Nne,{platformFilter:e.platform}),m.jsx(Ine,{platformFilter:e.platform})]})]})}function zne(){return m.jsxs(Me,{children:[m.jsx(Le,{variant:"h4",gutterBottom:!0,children:"库存监控"}),m.jsx(Le,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"在此页面可以查看和管理您的库存监控任务"}),m.jsx(Bne,{})]})}const Une=dD([{path:"/",element:m.jsx(DW,{}),children:[{index:!0,element:m.jsx(PE,{})},{path:"account-management",element:m.jsx(UW,{})},{path:"poc-booking",element:m.jsx(rne,{})},{path:"tamgw-booking",element:m.jsx(gne,{})},{path:"cstm-booking",element:m.jsx(bne,{})},{path:"order-records",element:m.jsx(Dne,{})},{path:"inventory-monitor",element:m.jsx(zne,{})},{path:"*",element:m.jsx(PE,{})}]}]),$ne=[{id:"account-management",label:"账号管理",path:"/account-management",icon:"AccountCircle"},{id:"poc-booking",label:"恭王府购票",path:"/poc-booking",icon:"ConfirmationNumber"},{id:"tamgw-booking",label:"天安门升旗购票",path:"/tamgw-booking",icon:"Flag"},{id:"cstm-booking",label:"北京科技馆购票",path:"/cstm-booking",icon:"Science"},{id:"order-records",label:"订单记录",path:"/order-records",icon:"Receipt"},{id:"inventory-monitor",label:"库存监控",path:"/inventory-monitor",icon:"Inventory"}],Hne=tm({palette:{mode:"light",primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0",contrastText:"#ffffff"},secondary:{main:"#dc004e",light:"#f73378",dark:"#9a0036",contrastText:"#ffffff"},background:{default:"#fafafa",paper:"#ffffff"}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif"].join(",")},shape:{borderRadius:8},spacing:8});function Wne(){return m.jsxs(hP,{theme:Hne,children:[m.jsx(Pk,{}),m.jsx(g$,{children:m.jsx("div",{className:"App",children:m.jsx(ED,{router:Une})})})]})}const Vne=p8.createRoot(document.getElementById("root"));Vne.render(m.jsx(On.StrictMode,{children:m.jsx(Wne,{})}));
